You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by wxlund <wa...@accenture.com> on 2008/11/05 00:10:34 UTC

RE: Maven/OS X Development Question

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven/OS X Development Question

Posted by wxlund <wa...@accenture.com>.
I didn't describe the issue well enough.  I am using m2eclipse but that's not
pertinent to the issue.  The same errors were appearing and related to
whether I had the JDK set to 1.5 or 1.6.  I was trying to debug the errors
from the command line.  So I think it really does belong on this forum.  I
did actually get further by specifying JDK 1.6 for launching the mvn
commands but I run into another very different problem when trying to launch
the RCP with 1.6 set.  It was swt-carbon-3349 jar missing and I need to be
able to run on JDK 1.5 anyway so I haven't yet tracked down that issue.  

All of these maven issues I read related to mvn command line invocations
that work in JDK 1.6 and break with JDK 1.5.  Any ideas?

Wayne

Eugene Kuleshov wrote:
> 
> 
> wxlund wrote:
>> 
>> 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:
>> [skip]
>> 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?
>> 
> 
>   Wayne, from your description it is unclear what issue you have with
> m2eclipse. For custom Maven launch configurations you can specify what JRE
> and Maven runtime is used. You can also see what command line is used by
> m2eclipse to launch Maven. See
> http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-HowtoretrieveanactualcommandlineusedtostartJVMandMaven
> 
>   Please also note that recent m2eclipse builds provide wizards to create
> new projects using archetypes and to install artifacts to the local Maven
> repository. See
> http://docs.codehaus.org/display/M2ECLIPSE/New+and+Noteworthy
> 
>   BTW, it is better to ask questions related to m2eclipse in its own
> mailing list. See http://m2eclipse.codehaus.org/mail-lists.html
> 
>   Thanks
> 
>   Eugene
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-OS-X-Development-Question-tp19334759p20355105.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven/OS X Development Question

Posted by Eugene Kuleshov <eu...@md.pp.ru>.

wxlund wrote:
> 
> 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:
> [skip]
> 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?
> 

  Wayne, from your description it is unclear what issue you have with
m2eclipse. For custom Maven launch configurations you can specify what JRE
and Maven runtime is used. You can also see what command line is used by
m2eclipse to launch Maven. See
http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-HowtoretrieveanactualcommandlineusedtostartJVMandMaven

  Please also note that recent m2eclipse builds provide wizards to create
new projects using archetypes and to install artifacts to the local Maven
repository. See
http://docs.codehaus.org/display/M2ECLIPSE/New+and+Noteworthy

  BTW, it is better to ask questions related to m2eclipse in its own mailing
list. See http://m2eclipse.codehaus.org/mail-lists.html

  Thanks

  Eugene


-- 
View this message in context: http://www.nabble.com/Maven-OS-X-Development-Question-tp19334759p20354201.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org