Re: [sonar-dev] How to compile a SVN checked out plugin using Maven?
Thanks! That worked (partially)
The last step fails and in this case it doesn't matter, since I just needed one .class file generated to overwrite in the lib/stylecop-runner.jar
This goes wroing to be complete:
Failed to execute goal on project sonar-csharp-rules-plugin: Could not resolve dependencies for project org.codehaus.sonar-plugins.dotnet.csharp:sonar-csharp-rules-plugin:sonar-plugin:1.4-SNAPSHOT: Failure to find com.sonarsource.csharp:sonar-csharp-squid-plugin:jar:1.1.1 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
probably easy to solve and not now..
The output I get now when running analysis using Stylecop v4.7:
13:01:13.578 DEBUG MsBuildFileGenerator - version found: v4.7
13:01:13.578 DEBUG MsBuildFileGenerator - Using StyleCop.dll for analysis.
I just made a really simple parser which looks for a 'v' and from that point on adds the remaning numbers and '.' to a StringBuilder. Next a really simple (ugly) match occurs if it matches v4.7|4.6 or v4.6..
It's not the most elegant solution and yet for me it works; at least the generated stylecop-msbuild.xml gets propagated with 'StyleCop.dll' when it matches the found version.
And then the analysis still fails.. So I think best thing is to wait untill v4.7 gets embedded.