I've been having some trouble with the CodeNarc Maven Plugin. I decided I would try hacking on the source a bit to see if I could improve things, but I can't even get it to install into my local Maven repo when building from the master branch.
This appears to be the main issue:
[INFO] Building: basic-1\pom.xml
[DEBUG] Using invoker properties:
[DEBUG] invoker.buildResult = success
[DEBUG] invoker.debug = true
[DEBUG] invoker.goals = -X clean compile site
[DEBUG] build log initialized in: E:\Git\codenarc-maven-plugin\target\it\basic-1\build.log
[DEBUG] Using MAVEN_OPTS: null
[DEBUG] Executing: cmd.exe /X /C ""C:\Program Files (x86)\apache-maven-2.2.1\bin\mvn.bat" -B -V -D maven.repo.local=E:\Git\codenarc-maven-plugin\target\local-repo -s E:\Git\codenarc-maven-plugin\target\it\interpolated-settings.xml -X clean compile site"
[DEBUG] Running script with GroovyScriptInterpreter: E:\Git\codenarc-maven-plugin\target\it\basic-1\verify.groovy
[DEBUG] Error evaluating post-build script E:\Git\codenarc-maven-plugin\target\it\basic-1\verify.groovy, java.lang.AssertionError: Expression: codenarcHtml.exists()
java.lang.AssertionError: Expression: codenarcHtml.exists()
at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:393)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:683)
at Script1.run(Script1.groovy:20)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:543)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:518)
at org.apache.maven.plugin.invoker.GroovyScriptInterpreter.evaluateScript(GroovyScriptInterpreter.java:83)
at org.apache.maven.plugin.invoker.ScriptRunner.run(ScriptRunner.java:201)
at org.apache.maven.plugin.invoker.AbstractInvokerMojo.runBuild(AbstractInvokerMojo.java:1323)
at org.apache.maven.plugin.invoker.AbstractInvokerMojo.runBuild(AbstractInvokerMojo.java:1029)
at org.apache.maven.plugin.invoker.AbstractInvokerMojo.runBuilds(AbstractInvokerMojo.java:955)
at org.apache.maven.plugin.invoker.AbstractInvokerMojo.execute(AbstractInvokerMojo.java:618)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ..FAILED (5.8 s)
[INFO] The post-build script did not succeed. Expression: codenarcHtml.exists()```
I've been having some trouble with the CodeNarc Maven Plugin. I decided I would try hacking on the source a bit to see if I could improve things, but I can't even get it to install into my local Maven repo when building from the master branch.
This appears to be the main issue:
See the full output: https://gist.github.com/xnickmx/5749826
My environment: E:\Git\codenarc-maven-plugin>mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700) Java version: 1.7.0_09 Java home: C:\Program Files\Java\jdk1.7.0_09\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
I tried this on a second machine with a similar setup and got what looks like the same result.