Maven Compiler Output

I'm using IntelliJ 7's Maven plug-in.

When I encounter a compilation error during the compile phase of the Maven lifecycle I get the following error in the Maven Thread Runner Output window
but no information about the compilation error itself.

Where does the compiler console output appear?



Compiling 53 source files to C:\xxxxxxxx\target\classes
Maven Embedder execution error: Compilation failure
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:636)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:320)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:148)
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody4(MavenEmbedder.java:827)
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody5$advice(MavenEmbedder.java:304)
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
org.jetbrains.idea.maven.runner.executor.MavenEmbeddedExecutor.execute(MavenEmbeddedExecutor.java:94)
org.jetbrains.idea.maven.runner.MavenRunnerImpl$2.run(MavenRunnerImpl.java:112)
com.intellij.openapi.progress.impl.ProgressManagerImpl$5.run(ProgressManagerImpl.java:2)
com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:8)
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:50)
com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:5)
com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:9)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
java.lang.Thread.run(Thread.java:619)
com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:1)

5 comments
Comment actions Permalink

i've noticed some of maven's output (not sure if it's out or err though) may get to IDEA's console itself.

Try starting IDEA using the bat file (if you're running on windows) instead of the exe

0
Comment actions Permalink

We'll fix the problem soon. There is a relevant issue: http://www.jetbrains.net/jira/browse/IDEA-18712.
As a workaround you may use external maven for compilation.

0
Comment actions Permalink

Do you think you can fix this one? It does not work in IntelliJ, but does work from the command line.

Scanning for projects...
Reactor build order:
Commander's Dash Board - Demonstration Portlet
CDB - Demonstration Portlet - WS Client Jar
CDB - Demonstration Portlet - Portlet War
-


Building Commander's Dash Board - Demonstration Portlet

Id: mil.army.usaac.cdb.portlets:demo_portlet:pom:1.0-SNAPSHOT
task-segment:
-



-


Building CDB - Demonstration Portlet - WS Client Jar

Id: mil.army.usaac.cdb.portlets.demo:wsClient:jar:1.0-SNAPSHOT
task-segment:
-


Maven Embedder execution error
org.apache.maven.wagon.observers.ChecksumObserver.transferStarted(ChecksumObserver.java:68)
org.apache.maven.wagon.events.TransferEventSupport.fireTransferStarted(TransferEventSupport.java:106)
org.apache.maven.wagon.AbstractWagon.fireGetStarted(AbstractWagon.java:528)
org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:293)
org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:274)
org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:97)
org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
org.apache.maven.artifact.manager.DefaultWagonManager.verifyChecksum(DefaultWagonManager.java:733)
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:577)
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:424)
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:341)
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:167)
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:82)
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:552)
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:233)
org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:132)
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:509)
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:539)
org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:132)
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:347)
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:321)
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:289)
org.apache.maven.plugin.DefaultPluginManager.getPluginArtifacts(DefaultPluginManager.java:436)
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:279)
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:211)
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:186)
org.apache.maven.plugin.loader.DefaultPluginLoader.loadPlugin(DefaultPluginLoader.java:79)
org.apache.maven.plugin.loader.DefaultPluginLoader.loadPlugin(DefaultPluginLoader.java:52)
org.apache.maven.lifecycle.plan.DefaultBuildPlanner.loadPluginDescriptor(DefaultBuildPlanner.java:322)
org.apache.maven.lifecycle.plan.DefaultBuildPlanner.findForkModifiers(DefaultBuildPlanner.java:192)
org.apache.maven.lifecycle.plan.DefaultBuildPlanner.addForkedLifecycleModifiers(DefaultBuildPlanner.java:179)
org.apache.maven.lifecycle.plan.DefaultBuildPlanner.constructBuildPlan_aroundBody0(DefaultBuildPlanner.java:117)
org.apache.maven.lifecycle.plan.DefaultBuildPlanner.constructBuildPlan_aroundBody1$advice(DefaultBuildPlanner.java:403)
org.apache.maven.lifecycle.plan.DefaultBuildPlanner.constructBuildPlan(DefaultBuildPlanner.java:1)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getLifecycleBindings(DefaultLifecycleExecutor.java:400)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:235)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
org.jetbrains.idea.maven.embedder.MavenEmbedderWrapper.execute(MavenEmbedderWrapper.java:84)
org.jetbrains.idea.maven.runner.executor.MavenEmbeddedExecutor.execute(MavenEmbeddedExecutor.java:97)
org.jetbrains.idea.maven.runner.MavenRunner$2.run(MavenRunner.java:121)
com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:1)
com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:10)
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:20)
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:87)
com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:17)
com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:9)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
java.lang.Thread.run(Thread.java:619)
com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:8)



Attachment(s):
pom.xml
pom.xml
pom.xml
0
Comment actions Permalink

This seems to be a Maven Embedder's problem.
I've submitted a bug report http://jira.codehaus.org/browse/MNG-3670.
Hopefully it will be fixed in one of the next releases.
Anyway, I'm inclined to think that using the embedder to run configurations is a bad idea.

Edited by: Anton Makeev on Jul 18, 2008 1:41 PM

0
Comment actions Permalink

AM> This seems to be a Maven Embedder's problem.

Fwiw, I've also seen this (maven failing compile and nothing on the console)
in eclipse somewhat often. Redoing the mvn compile in a command prompt shows
the errors.

Haven't used maven in idea to compare.

Carlos


0

Please sign in to leave a comment.