You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David J. M. Karlsen (JIRA)" <ji...@codehaus.org> on 2006/05/11 19:38:41 UTC

[jira] Lukket: (MCOMPILER-31) forking to a custom compiler does not work

     [ http://jira.codehaus.org/browse/MCOMPILER-31?page=all ]
     
David J. M. Karlsen closed MCOMPILER-31:
----------------------------------------

    Resolution: Duplicate

Duplicates MCOMPILER-22

> forking to a custom compiler does not work
> ------------------------------------------
>
>          Key: MCOMPILER-31
>          URL: http://jira.codehaus.org/browse/MCOMPILER-31
>      Project: Maven 2.x Compiler Plugin
>         Type: Bug

>     Versions: 2.0.1
>  Environment: winXP / Sun JDK
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
>     Reporter: David J. M. Karlsen

>
>
> The following configuration will fail:
> plugin>
> 	            <groupId>org.apache.maven.plugins</groupId>
> 	            <artifactId>maven-compiler-plugin</artifactId>
> 	            <configuration>
> 	            	<fork>true</fork>
> 	            	<compiler-version>1.3</compiler-version>
> 	            	<executable>C:/temp/java/bin/javac.exe</executable>
> 	            	<target>1.3</target>
> 	            </configuration>
> 	         </plugin>
> like this:
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
> Failure executing javac,  but could not parse the error:
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.BuildFailureException: Compilation failure
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47
> 5)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
> a:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         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)
> Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
>         at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:505)
>         at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         ... 16 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 13 seconds
> [INFO] Finished at: Fri Apr 07 14:02:37 CEST 2006
> [INFO] Final Memory: 4M/8M
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira