clojure-maven-plugin icon indicating copy to clipboard operation
clojure-maven-plugin copied to clipboard

Compile errors don't indicate where the error is in INFO level

Open deaddowney opened this issue 11 years ago • 5 comments

When the clojure compile step fails, all I see is:

ERROR] Failed to execute goal com.theoryinpractise:clojure-maven-plugin:1.3.19:compile (compile) on project MyProj: Clojure failed. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.theoryinpractise:clojure-maven-plugin:1.3.19:compile (compile) on project MyProj: Clojure failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318) ......

If I switch to DEBUG level in Maven, I DO see the error. Can we bump up this error to a higher log level? DEBUG puts far too much crap in the logs and we should see the compilation error.

deaddowney avatar Feb 21 '14 11:02 deaddowney

Definitely! Will bump this up and do another release. Or maybe parse out the error and throw it upstream as a MojoException to be handled more visibly.

talios avatar Mar 04 '14 00:03 talios

Actually, surprised no ones actually mentioned that before now...

talios avatar Mar 04 '14 00:03 talios

+1

strongh avatar Sep 19 '14 18:09 strongh

+1

Parth-Brahmbhatt avatar Dec 17 '14 19:12 Parth-Brahmbhatt

Almost a year and no fix :( I feel like you all must hate me! The christmas holidays are here so I'll try and find some time to look at this. Does anyone have more of the stacktrace? I assume there's a wrapped exception coming out of Clojure or the plugin somewhere? The posted one doesn't actually include any code from the plugin...

talios avatar Dec 18 '14 04:12 talios