I'm getting a very similar problem.  I'm running eclipse and maven and
working with the new m2eclipse plugin on OS X doing RCP development with
Maven.  When I try and install my jars with JDK 5.0 configured I get the
following:

=====  setup =========
wayne-lunds-macbook-pro:jars wxlund$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

echo $MAVEN_HOME 
/opt/apache-maven-2.0.9

========= and error in mvn install:install-file ==========
vn install:install-file -Dfile="activation.jar" -DgroupId=skyway
-DartifactId=activation -Dversion=1.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Invalid task 'groupId=skyway': you must specify a valid lifecycle
phase, or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Nov 04 15:02:28 PST 2008
[INFO] Final Memory: 1M/3M
[INFO]
------------------------------------------------------------------------
============================

I validated the same error with appfuse.  

mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-core
-DremoteRepositories=http://static.appfuse.org/releases
-DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Invalid task 'archetypeArtifactId=appfuse-core': you must specify a
valid lifecycle phase, or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Nov 04 15:04:51 PST 2008
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------

Now I switch to JDK 6.0 and run it again. 

==========   setup java home to JDK 6.0
wayne-lunds-macbook-pro:jars wxlund$ echo $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

mvn install:install-file -Dfile="activation.jar" -DgroupId=skyway
-DartifactId=activation -Dversion=1.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [install:install-file] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [install:install-file]
[INFO] Installing
/Users/wxlund/skyway/workspace/ce-6.1/org.accenture.fa.maven.archetype/jars/activation.jar
to /Users/wxlund/.m2/repository/skyway/activation/1.0/activation-1.0.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Nov 04 15:06:07 PST 2008
[INFO] Final Memory: 5M/15M
[INFO]
------------------------------------------------------------------------

============  and the appfuse archetype =============

vn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-core
-DremoteRepositories=http://static.appfuse.org/releases
-DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[..... clipped ...]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Nov 04 15:08:55 PST 2008
[INFO] Final Memory: 12M/28M
[INFO]
------------------------------------------------------------------------

=========================


Now you'd think I'd be a happy camper except that for project reasons I must
have my JDK set to JDK 5.0.  When I execute the mvn commands from m2eclipse
I get the same errors as I show from the command line.  Does anybody know
what I have to do to get JDK 5.0 working with maven?

Thanks,

Wayne
-- 
View this message in context: 
http://www.nabble.com/Maven-OS-X-Development-Question-tp19334759p20333332.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]

Reply via email to