Re: how to use multi-projects with eclipse

2003-11-20 Thread Jeffrey Bonevich


Nicolas De Loof wrote:
Thank's for reply.

Using this, how do you use multiproject goals ?

Is it enough to set maven.multiproject.includes=../subproject1/project.xml, ../subproject2/project.xml  ?
Yep, although I customize a lot in project.properties (particularly you 
can set 'goal=' and multiproject:goal will run that set of goals for 
each project).  I used to hack maven.xml a bit too, but multiproject 
just makes it all too damn easy ;-)

Nico.



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


Re: how to use multi-projects with eclipse

2003-11-20 Thread dion
"Nicolas De Loof" <[EMAIL PROTECTED]> wrote on 20/11/2003 11:33:58 
PM:

> Thank's for reply.
> 
> Using this, how do you use multiproject goals ?
> 
> Is it enough to set maven.multiproject.includes=..
> /subproject1/project.xml, ../subproject2/project.xml  ?
> 
> Nico.

We do that, as well as exclude the 'master-project/project.xml'.


> 
> 
> - Original Message - 
> From: "Jeffrey Bonevich" <[EMAIL PROTECTED]>
> To: "Maven Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 20, 2003 11:25 AM
> Subject: Re: how to use multi-projects with eclipse
> 
> 
> > eclipse don't workm that way (unless root is the eclipse project and 
the
> > subprojects are just directories under that, in which case you would
> > only end up with one jar file, one .classpath, one .project).  I do 
this
> > like so:
> >
> > (workspace)
> >|--master-project
> >||-project.xml etc.
> >|--subproject1
> >||-project.xml (extends 
${basedir}/../master-project/project.xml
> >|--subproject2
> >||-project.xml (extends 
${basedir}/../master-project/project.xml
> >
> > This is pretty simple and works well.  You can easily add a third
> > subproject for common utilities shared by both the other 
subprojects...
[snip]
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/





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



Re: how to use multi-projects with eclipse

2003-11-20 Thread Nicolas De Loof
Thank's for reply.

Using this, how do you use multiproject goals ?

Is it enough to set maven.multiproject.includes=../subproject1/project.xml, 
../subproject2/project.xml  ?

Nico.


- Original Message - 
From: "Jeffrey Bonevich" <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 20, 2003 11:25 AM
Subject: Re: how to use multi-projects with eclipse


> eclipse don't workm that way (unless root is the eclipse project and the
> subprojects are just directories under that, in which case you would
> only end up with one jar file, one .classpath, one .project).  I do this
> like so:
>
> (workspace)
>|--master-project
>||-project.xml etc.
>|--subproject1
>||-project.xml (extends ${basedir}/../master-project/project.xml
>|--subproject2
>||-project.xml (extends ${basedir}/../master-project/project.xml
>
> This is pretty simple and works well.  You can easily add a third
> subproject for common utilities shared by both the other subprojects...
>
> jeff
>
> Nicolas De Loof wrote:
> > Hi all,
> >
> > I'm using maven on a project involving two jars and I understood to late I should 
> > use multi-projects to do that. Not
a
> > big problem, but I would like some suggestions for the next project that will use 
> > mave :
> >
> > We use eclipse for java developments. I would like to define a multi-project this 
> > way :
> >
> > (root)
> > /project.xml
> > /maven.xml
> > /project.properties
> >
> > /subproject1 (an ejb for example)
> > /src/java
> > /src/test
> > /project.xml (extends ../project.xml)
> >
> > /subproject2 (webapp for example)
> > /src/java
> > /src/test
> > /src/web
> > /project.xml (extends ../project.xml)
> >
> > (If something seems stupid, please tell me !)
> >
> >
> > On eclipse, I would like to import "root" project from CVS  *AND* child projects 
> > so that  independant eclipse
> > .classpath/.project can be defined for subprojects.
> >
> > Without that, I'm sure I'll find some code in ejb project that uses webapp 
> > classes, for example date or format
utils.
> >
> > Do you have any suggestion on the way to make all of this work on eclipse with *as 
> > simple as possible* configuration
?
> >
> > Nico.
> >
> >
> >
> >
> >
> > -
> > 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]


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



Re: how to use multi-projects with eclipse

2003-11-20 Thread Jeffrey Bonevich
eclipse don't workm that way (unless root is the eclipse project and the 
subprojects are just directories under that, in which case you would 
only end up with one jar file, one .classpath, one .project).  I do this 
like so:

(workspace)
  |--master-project
  ||-project.xml etc.
  |--subproject1
  ||-project.xml (extends ${basedir}/../master-project/project.xml
  |--subproject2
  ||-project.xml (extends ${basedir}/../master-project/project.xml
This is pretty simple and works well.  You can easily add a third 
subproject for common utilities shared by both the other subprojects...

jeff

Nicolas De Loof wrote:
Hi all,

I'm using maven on a project involving two jars and I understood to late I should use 
multi-projects to do that. Not a
big problem, but I would like some suggestions for the next project that will use mave 
:
We use eclipse for java developments. I would like to define a multi-project this way :

(root)
/project.xml
/maven.xml
/project.properties
/subproject1 (an ejb for example)
/src/java
/src/test
/project.xml (extends ../project.xml)
/subproject2 (webapp for example)
/src/java
/src/test
/src/web
/project.xml (extends ../project.xml)
(If something seems stupid, please tell me !)

On eclipse, I would like to import "root" project from CVS  *AND* child projects 
so that  independant eclipse
.classpath/.project can be defined for subprojects.
Without that, I'm sure I'll find some code in ejb project that uses webapp classes, for example date or format utils.

Do you have any suggestion on the way to make all of this work on eclipse with *as simple as possible* configuration ?

Nico.





-
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]