Thanks, I have actually tried the suggestions in the link, but am having the same problem. I am happily doing the maven stuff from command line. Unless all the maven goals are also accessible from within the IDE, I see no value in doing it from eclipse anyway.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Raible Sent: 08 June 2007 12:55 PM To: [email protected] Subject: Re: [appfuse-user] Can't run maven goals from within eclipse There was a similar question/answer posted to this mailing list yesterday: http://www.nabble.com/candy-4-appfuse-tf3879414s2369.html#a10995904 Matt On 6/8/07, Travers Snyman <[EMAIL PROTECTED]> wrote: > > > > > Hi has anyone got this going ? > > I have eclipse 3.2.2, appfuse 2.0 m5 and maven 2.0.6 > > > > I created a project (basic struts archtype) command line and followed all > instructions for eclipse integration. > > Running > > mvn eclipse:eclipse > > mvn -Declipse.workspace=C:\Source eclipse:add-maven-repo > > Installing maven plugin in eclipse > > Imported project succesfully into eclipse > > > > When trying for example to compile from within eclipse project > run as > > maven build and then using lifecycle goal compile, I get the following > error: > > [INFO] Error for project: AppFuse Struts 2 Application (during compile) > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Failed to resolve artifact. > > > > Missing: > > ---------- > > 1) com.sun:tools:jar:1.5.0 > > > > Try downloading the file manually from the project website. > > > > Then, install it using the command: > > mvn install:install-file -DgroupId=com.sun -DartifactId=tools \ > > -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file > > > > Path to dependency: > > 1) cam:camstrutsbasic:war:1.0-SNAPSHOT > > 2) org.appfuse:appfuse-struts:warpath:2.0-m5 > > 3) org.apache.struts:struts2-core:jar:2.0.6 > > > 4) com.sun:tools:jar:1.5.0 > > > > I have tried to install the tools.jar into the maven local repository using > > mvn install:install-file -DgroupId=com.sun -DartifactId=tools > -Dversion=1.5.0 -Dpackaging=jar > -Dfile=%JAVA_HOME%\lib\tools.jar > > > > I also tried running eclipse from jdk where the tools.jar is rather than the > jre eclipse -vm %JAVA_HOME%\bin\javaw.exe > > > > > Is it at all possible to do this or should I stick to command line maven. > > > > I also tried candy with no luck. It looks like java.home in eclipse is the > problem but I have no idea as to resolve this > > > > Thanks > > Travers > > > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
