You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John <li...@johndubchak.com> on 2008/09/05 18:20:30 UTC

Maven/OS X Development Question

Hi,

Is anyone developing using Maven and Java 5 on OS X Leopard with a first 
generation Macbook Pro (MBP) Core Duo?

I am experiencing an odd issue that only seems present on a Core Duo and 
I've tried it on a Core 2 Duo (MBP/OS X Leopard), Windows XP and RHEL 
Linux and only the first gen Core Duo has the issue.

Just curious if anyone else is using a MBP Core Duo for development...

Thanks,
John

---------------------------------------------------------------------
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 Gert Wohlgemuth <be...@gmail.com>.
well everything works with mine

maven 2.0.9
java 1.5
osx leopard
1 gb ram


gert wohlgemuth

blog
http://berlinguyinca.blogspot.com

work:
http://fiehnlab.ucdavis.edu/staff/wohlgemuth


On Sep 5, 2008, at 9:20 AM, John <li...@johndubchak.com> wrote:

> Hi,
>
> Is anyone developing using Maven and Java 5 on OS X Leopard with a  
> first generation Macbook Pro (MBP) Core Duo?
>
> I am experiencing an odd issue that only seems present on a Core Duo  
> and I've tried it on a Core 2 Duo (MBP/OS X Leopard), Windows XP and  
> RHEL Linux and only the first gen Core Duo has the issue.
>
> Just curious if anyone else is using a MBP Core Duo for development...
>
> Thanks,
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
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 Martin Gainty <mg...@hotmail.com>.
that will only compound the problem as your "user-friendly" MAC will suddenly re-appear on your desk
with even more bugs than it had before 

try
mvn -e install

Martin
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 


> Date: Fri, 5 Sep 2008 12:22:17 -0500
> From: lists@johndubchak.com
> To: users@maven.apache.org
> Subject: Re: Maven/OS X Development Question
> 
> Hi Scott,
> 
> Thanks for the reply.  I am able to do "regular" java development 
> (Elipse, IntelliJ, ant, JBoss, Tomcat, Geronimo, webapps, ears, jar 
> files etc).  However, when I use *any* version of Maven and perform a 
> "mvn install", I get an error.
> 
> I've documented it here 
> (http://discussions.apple.com/thread.jspa?threadID=1695479&tstart=15) 
> and have spent considerable (far too much) time on it already.
> 
> I've even updated the Java version from the Apple site.  About the only 
> other thing I can think to do, besides throwing my computer from the top 
> of the highest building I can find, is to reinstall OS X.
> 
> Thanks again,
> John
> 
> Scott Ryan wrote:
> > I have exactly that configuration and it has been working fine for over a
> > year.  You might try to see if Appfuse works on it.  Appfuse has an
> > Archetype that will build a totally new self contained running application
> > for you.  Anything I can do to help let me know.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

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


RE: Maven/OS X Development Question

Posted by wxlund <wa...@accenture.com>.
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 Sean Hennessy <sh...@astutenetworks.com>.
Hi John,

I did not see if the expected  "java -version" matches that of your mvn -x output shared.
I recall a link operation ( ln -s ) was required on Mac volume to get newer JDK hooked up correctly.

Sean

-----Original Message-----
From: John [mailto:lists@johndubchak.com]
Sent: Friday, September 05, 2008 10:22 AM
To: Maven Users List
Subject: Re: Maven/OS X Development Question


Hi Scott,

Thanks for the reply.  I am able to do "regular" java development (Elipse, IntelliJ, ant, JBoss, Tomcat, Geronimo, webapps, ears, jar files etc).  However, when I use *any* version of Maven and perform a "mvn install", I get an error.

I've documented it here
(http://discussions.apple.com/thread.jspa?threadID=1695479&tstart=15)
and have spent considerable (far too much) time on it already.

I've even updated the Java version from the Apple site.  About the only other thing I can think to do, besides throwing my computer from the top of the highest building I can find, is to reinstall OS X.

Thanks again,
John

Scott Ryan wrote:
> I have exactly that configuration and it has been working fine for
> over a year.  You might try to see if Appfuse works on it.  Appfuse
> has an Archetype that will build a totally new self contained running
> application for you.  Anything I can do to help let me know.

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


---------------------------------------------------------------------
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 John <li...@johndubchak.com>.
Hi Scott,

Thanks for the reply.  I am able to do "regular" java development 
(Elipse, IntelliJ, ant, JBoss, Tomcat, Geronimo, webapps, ears, jar 
files etc).  However, when I use *any* version of Maven and perform a 
"mvn install", I get an error.

I've documented it here 
(http://discussions.apple.com/thread.jspa?threadID=1695479&tstart=15) 
and have spent considerable (far too much) time on it already.

I've even updated the Java version from the Apple site.  About the only 
other thing I can think to do, besides throwing my computer from the top 
of the highest building I can find, is to reinstall OS X.

Thanks again,
John

Scott Ryan wrote:
> I have exactly that configuration and it has been working fine for over a
> year.  You might try to see if Appfuse works on it.  Appfuse has an
> Archetype that will build a totally new self contained running application
> for you.  Anything I can do to help let me know.

---------------------------------------------------------------------
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 Scott Ryan <sc...@theryansplace.com>.
I have exactly that configuration and it has been working fine for over a
year.  You might try to see if Appfuse works on it.  Appfuse has an
Archetype that will build a totally new self contained running application
for you.  Anything I can do to help let me know.

Scott Ryan
President/CTO
Soaring Eagle L.L.C.
Highlands Ranch, Co. 80129
(303) 263-3044
scott@theryansplace.com
www.soaringeagleco.com


On Fri, Sep 5, 2008 at 10:20 AM, John <li...@johndubchak.com> wrote:

> Hi,
>
> Is anyone developing using Maven and Java 5 on OS X Leopard with a first
> generation Macbook Pro (MBP) Core Duo?
>
> I am experiencing an odd issue that only seems present on a Core Duo and
> I've tried it on a Core 2 Duo (MBP/OS X Leopard), Windows XP and RHEL Linux
> and only the first gen Core Duo has the issue.
>
> Just curious if anyone else is using a MBP Core Duo for development...
>
> Thanks,
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>