Hi
I installed maven 2.0.9 on my red had 5 machine
And when I run it I get the following error
mvn --version
+ Error stacktraces are turned on.
Maven version: 2.0.9
Java version: 1.6.0_29
OS name: "linux" version: "2.6.18-238.el5" arch: "amd64" Family: "unix"
[DEBUG] Building Maven user-level plugin registry from:
'/home/oracle/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/home/oracle/apache-maven-2.0.9/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Invalid task 'MAVEN_OPTS=-Xms512m': you must specify a valid
lifecycle phase, or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: Invalid task 'MAVEN_OPTS=-Xms512m':
you must specify a valid lifecycle phase, or a goal in the format
plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1521)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
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:287)
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:597)
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)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Dec 01 09:09:22 IST 2011
[INFO] Final Memory: 2M/245M
[INFO]
------------------------------------------------------------------------
I have JAVA_HOME properly configured
Thanks
Ron
--
View this message in context:
http://maven.40175.n5.nabble.com/Error-using-Maven-in-Red-Hat-5-tp5037792p5037792.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]