You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Ralf Barkow <Ra...@web.de> on 2004/05/19 13:32:18 UTC
Re: Eclipse issue -- maven eclipse
Thanks Patrick for the attached .launch file.!
Thanks David for 'refactoring' and posting the improved shell script.!
Yes Patrick, I want it to run against 'live' code.
Patrick Mueller wrote:
[.launch file]
> However ... I suspect what you want is to run against 'live' code, not
> the maven built jars. This is going to be more work. The easiest
> thing to do is to use Eclipse for editing/launching/debugging, but not
> for build. Do your builds outside of eclipse.
Currently building outside of eclipse in ~/incubator-geronimo and using
David's shell script to do a "maven eclipse" with the
maven-eclipse-plugin in each of geronimo's modules. In Eclipse you do
an "Import | Existing Project into Workspace" for every module you want
to look at.
Consider using Mevenide (no typo) http://mevenide.codehaus.org/ to
integrate Maven into Eclipse. This gives you --among other things--
Maven launcher integration into Eclipse External Tools.
To be able to use Patrick's .launch file with David's approach, you
perform the following steps in Eclipse :-
(1) Create incubator-geronimo as a top-level project in Eclipse with
"New | Project" and the Java Project wizard.
(2) Add a "New | Folder" named: target to that project.
(3) "Import ..." from File System
From directory ~/incubator-geronimo/target into the freshly
created target folder.
Note: "Create selected folders only".
(4) Copy Geronimo-jars.launch to your eclipse workspace:
/incubator-geronimo/Geronimo-jars.launch
(5) "Add Projects..." geronimo-system et al to the "Source Lookup Path"
of that Geronimo-jars configuration.
(6) Run the pre-built DebugConsole configuration and/or debug it inside
Eclipse -- and have fun ...
Find attached a slightly modified Geronimo-jars.launch file for the
1.0-SNAPSHOT. Note: Not all modules were added to the Source Lookup
Path, only geronimo-system for the moment.
Cheers,
--
/rgb
Re: Eclipse issue -- maven eclipse
Posted by David Blevins <da...@visi.com>.
On Wed, May 19, 2004 at 01:32:18PM +0200, Ralf Barkow wrote:
>
> Thanks Patrick for the attached .launch file.!
> Thanks David for 'refactoring' and posting the improved shell script.!
>
Wow. You said refactoring and shell script in the same sentence. In
public, no less. You're all kinds of brave.
Ralf, you're my hero :)
Thanks much for the launch file. At first glance, it looks easy
enough to generate. If I ever hack something together, I'll make sure
and post it to the list.
-David
Re: Eclipse issue -- maven eclipse
Posted by Patrick Mueller <pm...@yahoo.com>.
Ralf Barkow wrote:
> Thanks Patrick for the attached .launch file.!
> Thanks David for 'refactoring' and posting the improved shell script.!
>
> Yes Patrick, I want it to run against 'live' code.
I haven't figured this out yet. At least, how you can run against code
compiled by Eclipse assuming you have set everything up so it's directly
compilable by Eclipse. I get various sorts of exceptions when running.
I believe that there must be some non-.class file resources that are
built by maven, stuck in the associated jars, that can't be found.
Either that, or there is just a general classpath problem, as the way I
have tried the launches is to put everything on the classpath when
running (ie, it may be that a certain classpath hierarchy/graph is
required to run correctly).
I'm sort of torn between figuring this out vs. trying to get Eclipse to
just run maven as part of it's build process. Essentially a double
compile (I still want Eclipse to build it's versions of the .class
files, to be able to get instant feed back on errors, get exact code
completion, and get all the introspective stuff working).
I'll report back when I find something useful. As I'm not actually
developing Geronimo code ... for now ... it's not a critical issue for
me at the moment ... sorry.
--
Patrick Mueller
pmuellr@yahoo.com
Re: Eclipse issue -- maven eclipse
Posted by Eric Le Goff <er...@gicm.fr>.
Ralf Barkow wrote:
>
> Thanks Patrick for the attached .launch file.!
> Thanks David for 'refactoring' and posting the improved shell script.!
There is a page on wiki
(http://wiki.apache.org/geronimo/FrequentlyAskedQuestions) where you
could document your "howto use Eclipse/maven"
(The Eclipse issue is at 4.4.2 on this page)
Currently there is only David's bash script, but I guess Patrick's
method could be there too ;)
Eric
--
=Q=u=o=t=e===o=f===t=h=e===d=a=y=====================================
"The Avis WIZARD decides if you get to drive a car. Your head won't touch the
pillow of a Sheraton unless their computer says it's okay."
-- Arthur Miller