Hi,
I tried using the -e option... and also moving it to a separate folder.
Still doesn't work...
The stack trace...
D:\MavenDownload\my-app>mvn -e compile
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [compile]
[INFO]
------------------------------------------------------------------------
-
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 1 source file to D:\MavenDownload\my-app\target\classes
[INFO]
------------------------------------------------------------------------
-
---
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Fatal error compiling
Embedded error: Error while executing the compiler.
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Fatal error
compiling
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:544)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:137)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
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: Fatal error
compiling
at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:412)
at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:110)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:519)
... 16 more
Caused by: org.codehaus.plexus.compiler.CompilerException: Error while
executing
the compiler.
at
org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(Jav
acCompiler.java:378)
at
org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompile
r.java:136)
at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:407)
... 19 more
Caused by: java.lang.NoSuchMethodException: compile
at java.lang.Class.getMethod0(Class.java:1742)
at java.lang.Class.getMethod(Class.java:951)
at
org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(Jav
acCompiler.java:370)
... 21 more
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Total time: 1 second
[INFO] Finished at: Thu Dec 22 09:23:10 GMT+05:30 2005
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------
-
---
-----Original Message-----
From: Christopher Cobb [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 8:37 PM
To: 'Maven Users List'
Subject: RE: Need help in installing Maven
As a matter of style, I would create a directory named D:\MavenProjects
and
put my projects in there, and leave the maven-2.0 directory untouched.
Oh yeah, and use the -e option.
-----Original Message-----
From: Pagadala Baskar, Kiran Kumar (Cognizant)
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 8:37 AM
To: Maven Users List
Subject: Need help in installing Maven
Hi All,
I am new to Maven. Could someone help me figure out why I am getting
this error? I could create the archetype but when I tried to compile the
same, I am getting this error. Also, I am using sun JDK1.4.0_02.
Thanks and Regards,
Kiran
D:\MavenDownload\maven-2.0\my-app>mvn compile
[INFO] Scanning for projects...
[INFO]
-----------------------------------------------------------------------
---
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [compile]
[INFO]
-----------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 1 source file to
D:\MavenDownload\maven-2.0\my-app\target\classes
[INFO]
-----------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO]
-----------------------------------------------------------------------
---
[INFO] Fatal error compiling
Embedded error: Error while executing the compiler.
[INFO]
-----------------------------------------------------------------------
---
[INFO] For more information, run Maven with the -e switch
[INFO]
-----------------------------------------------------------------------
---
[INFO] Total time: 1 second
[INFO] Finished at: Wed Dec 21 19:02:15 GMT+05:30 2005
[INFO] Final Memory: 2M/5M
[INFO]
-----------------------------------------------------------------------
---
This e-mail and any files transmitted with it are for the sole use of
the
intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by
reply
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this
e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-----------------------------------------
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material. If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing
or copying of this email or any action taken in reliance on this e-mail is
strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]