You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Fei Fei <mi...@hotmail.com> on 2007/01/27 10:58:13 UTC

Re: Build geronimo failed..(Resolved )

Now.I can see following message:

E:\workspace\openejb\openejb3>mvn -e eclipse:eclipse
.............
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 10 minutes 31 seconds
[INFO] Finished at: Sat Jan 27 16:49:54 CST 2007
[INFO] Final Memory: 19M/35M
[INFO] 
------------------------------------------------------------------------

That is means build successful of project openejb.sure you know too.
Now.I will list my operation step following,maybe can help novice(like me):

1.
maven 2.0.4 cannot work at JDK1.6 platform,only 1.5,so you should edit file 
mvn.bat(in %MVN_HOME%/bin/) and add command(dose not contains the double 
quotation marks ) "set JAVA_HOME=E:\JDK150"(of course this path is jdk1.5 
home dir in you system) at previous line of this command line: if not 
"%JAVA_HOME%" == "" goto OkJHome.
this prob resolved can resolve many another prob.

2.
I found dir name is "maven-clipse-plugin" in dir 
.m2\repository\org\apache\maven\plugins\,NOTE that is not 
"maven-eclipse-plugin",and the maven runtime used is 
maven-clipse-plugin,(why?I don't know,maybe you can tell me,thanks.),so I 
guess the contents should is contents in 
.m2\repository\org\apache\maven\plugins\maven-eclipse-plugin,because I do 
search with google use keyword "maven-clipse-plugin" cannot found any 
result. I copy the contents of dir 
.m2\repository\org\apache\maven\plugins\maven-eclipse-plugin to 
.m2\repository\org\apache\maven\plugins\maven-clipse-plugin,It working very 
good.

another :
Maven runtime cannot load class org\apache\tools\ant\launch\AntMain,I copy 
the ant.jar,ant-launcher.jar from E:\IDE\Ant170\lib to 
E:\IDE\Maven204\lib,the result is it work now.

I hope write more.But my english ability is very bad.
If you know my meaning from above,Congratulate you.

-A Fei-

_________________________________________________________________
FREE online classifieds from Windows Live Expo – buy and sell with people 
you know 
http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://expo.live.com?s_cid=Hotmail_tagline_12/06


Re: Build geronimo failed..(Resolved )

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 1/27/07, Fei Fei <mi...@hotmail.com> wrote:

> E:\workspace\openejb\openejb3>mvn -e eclipse:eclipse
> .............
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL

Congratulation! I hope your working with Geronimo won't be that hard
any longer! :P

> 1.
> maven 2.0.4 cannot work at JDK1.6 platform,only 1.5,so you should edit file
> mvn.bat(in %MVN_HOME%/bin/) and add command(dose not contains the double
> quotation marks ) "set JAVA_HOME=E:\JDK150"(of course this path is jdk1.5
> home dir in you system) at previous line of this command line: if not
> "%JAVA_HOME%" == "" goto OkJHome.
> this prob resolved can resolve many another prob.

...or better yet, set JAVA_HOME in your environment whenever you want
to work with m2. I'm doing it all the time in Cygwin where I set a
couple of aliases that change JAVA_HOME to what the project is
supposed to work with.

> 2.
> I found dir name is "maven-clipse-plugin" in dir
> .m2\repository\org\apache\maven\plugins\

That's strange. I have never come across it before. Worth to keep it
in archive in case it will happen again. Thanks for reporting!

> Maven runtime cannot load class org\apache\tools\ant\launch\AntMain,I copy
> the ant.jar,ant-launcher.jar from E:\IDE\Ant170\lib to
> E:\IDE\Maven204\lib,the result is it work now.

I'd not had to do it as you did. Are you sure your m2 is not broken?
I'd suggest that you delete m2 and install it again. You'd be better
off checking your environment variables, too. Even if it works for you
now, chances are other errors may surface in the not-so-distant future
due to the steps you did, but you shouldn't have done.

> If you know my meaning from above,Congratulate you.

You see - he's talking about me! Wish me lack with other readings I've
got on my plate ;-)

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl