You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by cailie <ca...@gmail.com> on 2007/12/12 23:46:54 UTC

eclipse projects + multiple modules

I have a parent project (POM packaging) with that has 3 modules: EJB, WAR,
and EAR

So the folder structure is like this:

POM Project Folder
  -- EAR Project Folder
  -- EJB Project Folder
  -- WAR Project Folder

I am using Eclipse, and I would like to import the parent project, and have
it recognized by Eclipse as one big happy Java project. Right now, if I edit
any of the Java files from within the parent project, I get the usual "This
compilation unit is not on the build path of a Java project". My workaround
is to open up the EJB and WAR modules as separate Java projects.

Does anybody have advice on how to configure this multi-module project such
that Eclipse recognizes it as a Java project?






-- 
View this message in context: http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: eclipse projects + multiple modules

Posted by Siarhei Dudzin <si...@gmail.com>.
I think it's possible with m2eclipse plugin but you wont be able to use WTP
then

Siarhei

On 12/12/07, cailie <ca...@gmail.com> wrote:
>
>
> I have a parent project (POM packaging) with that has 3 modules: EJB, WAR,
> and EAR
>
> So the folder structure is like this:
>
> POM Project Folder
>   -- EAR Project Folder
>   -- EJB Project Folder
>   -- WAR Project Folder
>
> I am using Eclipse, and I would like to import the parent project, and
> have
> it recognized by Eclipse as one big happy Java project. Right now, if I
> edit
> any of the Java files from within the parent project, I get the usual
> "This
> compilation unit is not on the build path of a Java project". My
> workaround
> is to open up the EJB and WAR modules as separate Java projects.
>
> Does anybody have advice on how to configure this multi-module project
> such
> that Eclipse recognizes it as a Java project?
>
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: eclipse projects + multiple modules

Posted by Arnaud HERITIER <ah...@gmail.com>.
I thought it was impossible to open in eclipse a project and a subproject
(eclipse checks that it's not in an existing project path when it import a
new one).
If it's possible, it's cool

Arnaud

On Dec 13, 2007 12:37 AM, cailie <ca...@gmail.com> wrote:

>
> Thanks for your response... actually, I've got the parent project open too
> --
> for a total of 4 projects open in Eclipse.
>
>
> Arnaud HERITIER wrote:
> >
> > It's not possible, I think.
> > Eclipse doesn't support the logic of modules.
> > You'll have 3 projects in eclipse.
> > The problem is that you'll not have the parent pom.
> >
> > Arnaud
> >
> > On Dec 12, 2007 11:46 PM, cailie <ca...@gmail.com> wrote:
> >
> >>
> >> I have a parent project (POM packaging) with that has 3 modules: EJB,
> >> WAR,
> >> and EAR
> >>
> >> So the folder structure is like this:
> >>
> >> POM Project Folder
> >>  -- EAR Project Folder
> >>  -- EJB Project Folder
> >>  -- WAR Project Folder
> >>
> >> I am using Eclipse, and I would like to import the parent project, and
> >> have
> >> it recognized by Eclipse as one big happy Java project. Right now, if I
> >> edit
> >> any of the Java files from within the parent project, I get the usual
> >> "This
> >> compilation unit is not on the build path of a Java project". My
> >> workaround
> >> is to open up the EJB and WAR modules as separate Java projects.
> >>
> >> Does anybody have advice on how to configure this multi-module project
> >> such
> >> that Eclipse recognizes it as a Java project?
> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> > ...........................................................
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14306661.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: eclipse projects + multiple modules

Posted by cailie <ca...@gmail.com>.
Thanks for your response... actually, I've got the parent project open too --
for a total of 4 projects open in Eclipse.


Arnaud HERITIER wrote:
> 
> It's not possible, I think.
> Eclipse doesn't support the logic of modules.
> You'll have 3 projects in eclipse.
> The problem is that you'll not have the parent pom.
> 
> Arnaud
> 
> On Dec 12, 2007 11:46 PM, cailie <ca...@gmail.com> wrote:
> 
>>
>> I have a parent project (POM packaging) with that has 3 modules: EJB,
>> WAR,
>> and EAR
>>
>> So the folder structure is like this:
>>
>> POM Project Folder
>>  -- EAR Project Folder
>>  -- EJB Project Folder
>>  -- WAR Project Folder
>>
>> I am using Eclipse, and I would like to import the parent project, and
>> have
>> it recognized by Eclipse as one big happy Java project. Right now, if I
>> edit
>> any of the Java files from within the parent project, I get the usual
>> "This
>> compilation unit is not on the build path of a Java project". My
>> workaround
>> is to open up the EJB and WAR modules as separate Java projects.
>>
>> Does anybody have advice on how to configure this multi-module project
>> such
>> that Eclipse recognizes it as a Java project?
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
> ...........................................................
> 
> 

-- 
View this message in context: http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14306661.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: eclipse projects + multiple modules

Posted by Arnaud HERITIER <ah...@gmail.com>.
It's not possible, I think.
Eclipse doesn't support the logic of modules.
You'll have 3 projects in eclipse.
The problem is that you'll not have the parent pom.

Arnaud

On Dec 12, 2007 11:46 PM, cailie <ca...@gmail.com> wrote:

>
> I have a parent project (POM packaging) with that has 3 modules: EJB, WAR,
> and EAR
>
> So the folder structure is like this:
>
> POM Project Folder
>  -- EAR Project Folder
>  -- EJB Project Folder
>  -- WAR Project Folder
>
> I am using Eclipse, and I would like to import the parent project, and
> have
> it recognized by Eclipse as one big happy Java project. Right now, if I
> edit
> any of the Java files from within the parent project, I get the usual
> "This
> compilation unit is not on the build path of a Java project". My
> workaround
> is to open up the EJB and WAR modules as separate Java projects.
>
> Does anybody have advice on how to configure this multi-module project
> such
> that Eclipse recognizes it as a Java project?
>
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/eclipse-projects-%2B-multiple-modules-tp14305809s177p14305809.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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
...........................................................