Thanks for all the information!

If you happen to rememeber the goals you could not run, I'll be interested
in taking a look at them and see what can be done.


Travers Snyman wrote:
> 
> Thanks Abel,
> At some stage, with maven from Candy, and setting the Java runtime to a
> jdk, I actually got to a point where I could create applications using
> Candy. I then had problems running some maven goals from within eclipse. I
> tried installed the maven 2.06 plugin with no luck. I then re-installed
> eclipse without candy this time and only the maven plugin. I created the
> application from runtime and tried running maven from within eclipse (with
> java set to jdk) and still got all these missing artifact stuff.
> Unfortunately at that point, I had to move on with a project and reverted
> to command line.
> 
> Candy looked very cool and once I have a bit more time on hand I will
> definitely give it another good go. 
> 
> Travers
> 
> -----Original Message-----
> From: Abel Muiño [mailto:[EMAIL PROTECTED] 
> Sent: 12 June 2007 04:57 PM
> To: [email protected]
> Subject: [appfuse-user] RE: Can't run maven goals from within eclipse
> 
> 
> I had a similar problem and it worked fine by doing a different thing:
> I've
> changed the eclipse's Default Runtime to a JDK, instead of the JRE
> detected
> by default (in Preferences > Java > Installed JRE). I'm using the version
> of
> the eclipse maven plugin bundled with Candy for AppFuse (I don't know if
> it
> works with any other released version).
> 
> I guess that the problem you are experiencing in eclipse is not showing up
> in the command line because you use a JDK for running maven, but only give
> eclipse a JRE to do the same job ;) .
> 
> 
> Travers Snyman wrote:
>> 
>> 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]
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Can%27t-run-maven-goals-from-within-eclipse-tf3889042s2369.html#a11080435
> Sent from the AppFuse - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can%27t-run-maven-goals-from-within-eclipse-tf3889042s2369.html#a11085345
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to