You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by deckrider <de...@gmail.com> on 2008/02/16 05:09:28 UTC

multi module eclipse:eclipse mewbie

Sorry for the silly question but I'm trying to understand the best way
to use Eclipse with Maven2 multi module projects.

Here is my understanding:

1. Check out the project, but don't use Eclipse to check it out.

2. Run 'mvn elicpse:eclipse' from the parent.

3. Now start Eclipse and import the existing project.

This results in all the children coming into Eclipse as separate
modules. However the parent is not available.

Is this expected?  Am I doing something non-standard?  How am I
supposed to work on the parent project?

Thanks in advance for your help and understanding.

-- 
ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
    Information:  http://www.expita.com/nomime.html

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


Re: multi module eclipse:eclipse mewbie

Posted by Siarhei Dudzin <si...@gmail.com>.
Looks like your parent project is just of pom type. In this case there wont
be an eclipse project generated since there is not artifact to deliver.
There are 2 things you can do:

1. Fire a feture request in JIRA so that simple eclipe project type is
created from pom type porject.
2. Create a simple project in eclipse manually. Since it wont change (just a
placeholder to hold other projects) you will be ok.

Eclipse starting from version 3.3 is able to deal nested projects so you
will be able to have parent and child projects in the same workspace easily.
If you have an older eclipse you can create a separate workspace (I call it
integration workspace) and work with the parent project from there.


Siarhei

On Feb 16, 2008 5:09 AM, deckrider <de...@gmail.com> wrote:

> Sorry for the silly question but I'm trying to understand the best way
> to use Eclipse with Maven2 multi module projects.
>
> Here is my understanding:
>
> 1. Check out the project, but don't use Eclipse to check it out.
>
> 2. Run 'mvn elicpse:eclipse' from the parent.
>
> 3. Now start Eclipse and import the existing project.
>
> This results in all the children coming into Eclipse as separate
> modules. However the parent is not available.
>
> Is this expected?  Am I doing something non-standard?  How am I
> supposed to work on the parent project?
>
> Thanks in advance for your help and understanding.
>
> --
> ASCII ribbon campaign:
> ()  against HTML email
> /\  against Microsoft attachments
>    Information:  http://www.expita.com/nomime.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: multi module eclipse:eclipse mewbie

Posted by deckrider <de...@gmail.com>.
Yes, Eclipse 3.3



On 2/17/08, Arnaud HERITIER <ah...@gmail.com> wrote:
> Do you have eclipse 3.3 ??
>
> On Feb 17, 2008 6:28 PM, deckrider <de...@gmail.com> wrote:
>
> > On Feb 15, 2008 10:59 PM, Wendy Smoak <ws...@gmail.com> wrote:
> > > On Feb 15, 2008 9:09 PM, deckrider <de...@gmail.com> wrote:
> > >
> > > > 1. Check out the project, but don't use Eclipse to check it out.
> > > >
> > > > 2. Run 'mvn elicpse:eclipse' from the parent.
> > > >
> > > > 3. Now start Eclipse and import the existing project.
> > > >
> > > > This results in all the children coming into Eclipse as separate
> > > > modules. However the parent is not available.
> > > >
> > > > Is this expected?  Am I doing something non-standard?  How am I
> > > > supposed to work on the parent project?
> > >
> > > Eclipse apparently can't deal with the pom one level up from the
> > > modules.  What I do is File -> New -> File, find the pom, click
> > > 'Advanced' and check 'Link to file on the filesystem'.  That at least
> > > makes it available for editing.
> >
> > Odd, that I can't click 'OK' (its grayed out) when I try this.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> ..........................................................
> Arnaud HERITIER
> ..........................................................
> OCTO Technology - aheritier AT octo DOT com
> www.octo.com | blog.octo.com
> ..........................................................
> ASF - aheritier AT apache DOT org
> www.apache.org | maven.apache.org
> ...........................................................
>


-- 
ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
    Information:  http://www.expita.com/nomime.html

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


Re: multi module eclipse:eclipse mewbie

Posted by Arnaud HERITIER <ah...@gmail.com>.
Do you have eclipse 3.3 ??

On Feb 17, 2008 6:28 PM, deckrider <de...@gmail.com> wrote:

> On Feb 15, 2008 10:59 PM, Wendy Smoak <ws...@gmail.com> wrote:
> > On Feb 15, 2008 9:09 PM, deckrider <de...@gmail.com> wrote:
> >
> > > 1. Check out the project, but don't use Eclipse to check it out.
> > >
> > > 2. Run 'mvn elicpse:eclipse' from the parent.
> > >
> > > 3. Now start Eclipse and import the existing project.
> > >
> > > This results in all the children coming into Eclipse as separate
> > > modules. However the parent is not available.
> > >
> > > Is this expected?  Am I doing something non-standard?  How am I
> > > supposed to work on the parent project?
> >
> > Eclipse apparently can't deal with the pom one level up from the
> > modules.  What I do is File -> New -> File, find the pom, click
> > 'Advanced' and check 'Link to file on the filesystem'.  That at least
> > makes it available for editing.
>
> Odd, that I can't click 'OK' (its grayed out) when I try this.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................

Re: multi module eclipse:eclipse mewbie

Posted by deckrider <de...@gmail.com>.
On Feb 15, 2008 10:59 PM, Wendy Smoak <ws...@gmail.com> wrote:
> On Feb 15, 2008 9:09 PM, deckrider <de...@gmail.com> wrote:
>
> > 1. Check out the project, but don't use Eclipse to check it out.
> >
> > 2. Run 'mvn elicpse:eclipse' from the parent.
> >
> > 3. Now start Eclipse and import the existing project.
> >
> > This results in all the children coming into Eclipse as separate
> > modules. However the parent is not available.
> >
> > Is this expected?  Am I doing something non-standard?  How am I
> > supposed to work on the parent project?
>
> Eclipse apparently can't deal with the pom one level up from the
> modules.  What I do is File -> New -> File, find the pom, click
> 'Advanced' and check 'Link to file on the filesystem'.  That at least
> makes it available for editing.

Odd, that I can't click 'OK' (its grayed out) when I try this.

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


Re: multi module eclipse:eclipse mewbie

Posted by Wendy Smoak <ws...@gmail.com>.
On Feb 15, 2008 9:09 PM, deckrider <de...@gmail.com> wrote:

> 1. Check out the project, but don't use Eclipse to check it out.
>
> 2. Run 'mvn elicpse:eclipse' from the parent.
>
> 3. Now start Eclipse and import the existing project.
>
> This results in all the children coming into Eclipse as separate
> modules. However the parent is not available.
>
> Is this expected?  Am I doing something non-standard?  How am I
> supposed to work on the parent project?

Eclipse apparently can't deal with the pom one level up from the
modules.  What I do is File -> New -> File, find the pom, click
'Advanced' and check 'Link to file on the filesystem'.  That at least
makes it available for editing.

You might take a look at q4e or m2eclipse (the Eclipse plugins) to see
if they've found a way to deal with this annoyance.

-- 
Wendy

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