You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ganesh gowtham (JIRA)" <ji...@codehaus.org> on 2009/03/27 11:51:12 UTC

[jira] Created: (MNG-4111) compilation issue in maven 1.2.0-M1 in windows Vista no such compliler 'javac'

compilation issue in maven 1.2.0-M1 in windows Vista no such compliler 'javac'
------------------------------------------------------------------------------

                 Key: MNG-4111
                 URL: http://jira.codehaus.org/browse/MNG-4111
             Project: Maven 2
          Issue Type: Bug
          Components: Plugins and Lifecycle
    Affects Versions: 2.1.0-M1
         Environment: Windows Vitsa Business version: "6.0" arch: "x86" family: "windows"  Maven version: 2.1.0-M1
Java version: 1.5.0_04
            Reporter: ganesh gowtham
            Priority: Blocker


when running mvn install i am getting the following error 

JAVA_HOME and maven\bin in PATH is properly set .

Maven download's all pom's and jars but compilation fails .Even i ahd used Cygwin compilation fails with  *no such compiler 'javac'*.

infact i can able to compile java code from command line also .

Below is the stach trace with -e option .


D:\SVN-Projects\gt>mvn install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building my sample prj
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] No such compiler 'javac'.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: No such compiler 'javac
.
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
ultLifecycleExecutor.java:701)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
fecycle(DefaultLifecycleExecutor.java:538)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
ltLifecycleExecutor.java:517)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
dleFailures(DefaultLifecycleExecutor.java:369)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
ts(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
fecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.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.MojoExecutionException: No such compiler 'ja
ac'.
        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompile
Mojo.java:271)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
nManager.java:458)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
ultLifecycleExecutor.java:676)
        ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Mar 27 11:16:24 GMT 2009
[INFO] Final Memory: 6M/12M
[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

        

[jira] Moved: (MCOMPILER-96) compilation issue in maven 1.2.0-M1 in windows Vista no such compliler 'javac'

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCOMPILER-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann moved MNG-4111 to MCOMPILER-96:
-------------------------------------------------

    Affects Version/s:     (was: 2.1.0-M1)
                       2.0.2
          Component/s:     (was: Plugins and Lifecycle)
           Complexity:   (was: Intermediate)
                  Key: MCOMPILER-96  (was: MNG-4111)
              Project: Maven 2.x Compiler Plugin  (was: Maven 2)

> compilation issue in maven 1.2.0-M1 in windows Vista no such compliler 'javac'
> ------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-96
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-96
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows Vitsa Business version: "6.0" arch: "x86" family: "windows"  Maven version: 2.1.0-M1
> Java version: 1.5.0_04
>            Reporter: ganesh gowtham
>            Priority: Blocker
>
> when running mvn install i am getting the following error 
> JAVA_HOME and maven\bin in PATH is properly set .
> Maven download's all pom's and jars but compilation fails .Even i ahd used Cygwin compilation fails with  *no such compiler 'javac'*.
> infact i can able to compile java code from command line also .
> Below is the stach trace with -e option .
> D:\SVN-Projects\gt>mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building my sample prj
> [INFO]    task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] No such compiler 'javac'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: No such compiler 'javac
> .
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
> ultLifecycleExecutor.java:701)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
> fecycle(DefaultLifecycleExecutor.java:538)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
> ltLifecycleExecutor.java:517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
> dleFailures(DefaultLifecycleExecutor.java:369)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
> ts(DefaultLifecycleExecutor.java:330)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
> fecycleExecutor.java:181)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> sorImpl.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.MojoExecutionException: No such compiler 'ja
> ac'.
>         at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompile
> Mojo.java:271)
>         at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
> nManager.java:458)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
> ultLifecycleExecutor.java:676)
>         ... 16 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Fri Mar 27 11:16:24 GMT 2009
> [INFO] Final Memory: 6M/12M
> [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

        

[jira] Commented: (MNG-4111) compilation issue in maven 1.2.0-M1 in windows Vista no such compliler 'javac'

Posted by "ganesh gowtham (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=171213#action_171213 ] 

ganesh gowtham commented on MNG-4111:
-------------------------------------

Sorry there is a typo ised *Maven version: 2.1.0-M1 *


> compilation issue in maven 1.2.0-M1 in windows Vista no such compliler 'javac'
> ------------------------------------------------------------------------------
>
>                 Key: MNG-4111
>                 URL: http://jira.codehaus.org/browse/MNG-4111
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.1.0-M1
>         Environment: Windows Vitsa Business version: "6.0" arch: "x86" family: "windows"  Maven version: 2.1.0-M1
> Java version: 1.5.0_04
>            Reporter: ganesh gowtham
>            Priority: Blocker
>
> when running mvn install i am getting the following error 
> JAVA_HOME and maven\bin in PATH is properly set .
> Maven download's all pom's and jars but compilation fails .Even i ahd used Cygwin compilation fails with  *no such compiler 'javac'*.
> infact i can able to compile java code from command line also .
> Below is the stach trace with -e option .
> D:\SVN-Projects\gt>mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building my sample prj
> [INFO]    task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] No such compiler 'javac'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: No such compiler 'javac
> .
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
> ultLifecycleExecutor.java:701)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
> fecycle(DefaultLifecycleExecutor.java:538)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
> ltLifecycleExecutor.java:517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
> dleFailures(DefaultLifecycleExecutor.java:369)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
> ts(DefaultLifecycleExecutor.java:330)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
> fecycleExecutor.java:181)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> sorImpl.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.MojoExecutionException: No such compiler 'ja
> ac'.
>         at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompile
> Mojo.java:271)
>         at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
> nManager.java:458)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
> ultLifecycleExecutor.java:676)
>         ... 16 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Fri Mar 27 11:16:24 GMT 2009
> [INFO] Final Memory: 6M/12M
> [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

        

[jira] Closed: (MCOMPILER-96) compilation issue in maven 1.2.0-M1 in windows Vista no such compliler 'javac'

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCOMPILER-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MCOMPILER-96.
--------------------------------------

      Assignee: Benjamin Bentmann
    Resolution: Duplicate

> compilation issue in maven 1.2.0-M1 in windows Vista no such compliler 'javac'
> ------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-96
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-96
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows Vitsa Business version: "6.0" arch: "x86" family: "windows"  Maven version: 2.1.0-M1
> Java version: 1.5.0_04
>            Reporter: ganesh gowtham
>            Assignee: Benjamin Bentmann
>            Priority: Blocker
>
> when running mvn install i am getting the following error 
> JAVA_HOME and maven\bin in PATH is properly set .
> Maven download's all pom's and jars but compilation fails .Even i ahd used Cygwin compilation fails with  *no such compiler 'javac'*.
> infact i can able to compile java code from command line also .
> Below is the stach trace with -e option .
> D:\SVN-Projects\gt>mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building my sample prj
> [INFO]    task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] No such compiler 'javac'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: No such compiler 'javac
> .
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
> ultLifecycleExecutor.java:701)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
> fecycle(DefaultLifecycleExecutor.java:538)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
> ltLifecycleExecutor.java:517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
> dleFailures(DefaultLifecycleExecutor.java:369)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
> ts(DefaultLifecycleExecutor.java:330)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
> fecycleExecutor.java:181)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> sorImpl.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.MojoExecutionException: No such compiler 'ja
> ac'.
>         at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompile
> Mojo.java:271)
>         at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
> nManager.java:458)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
> ultLifecycleExecutor.java:676)
>         ... 16 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Fri Mar 27 11:16:24 GMT 2009
> [INFO] Final Memory: 6M/12M
> [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