Jesse,

I can go with maven or m2 it doesn't really matter in this case since I
am starting from scratch. The thing that does matter is using sub
projects and configuring them "quickly". The situation I am working
with is a NetBeans project with the ant scripts created. I need to
insure that I can build a subproject and have it compile the dependent
projects and include the libs correctly.

Since I am fairly new to maven/m2 I am not sure how to do this. But here
is my layout.


main project
   |
   |
   ---- ejb project
   |
   |
   ---- logic project
   |
   |
   ---- WS project

utilities project

legacy integration project

model project (Data models)

When I compile the ejb project I need it to compile the logic project
and include the jar for the ejb. The logic project will need to compile
the utilities project, legacy project and model project and include
their jars. But if I am compiling the WS project I would need it to
compile the ejb project but not necessarily include the ejb jar. I
currently have this setup in NB with ant scripts for the compiling
which works fairly well but I would like to have things such as
automatic builds which will automatically increment the build number
and have goals which will automatically include the correct version
number. Such as if I am currently on build dev_1_2_34 and do a QA build
I would need the number to be RC_1_2_1 and then the same concept for the
REL. This is why I am looking at the maven/m2 solution. I also need it
to work from my IDE properly.

OH I also need this to be fairly maintenance free. I will have several
web services and ejbs included and would like to build them
independently for testing to save time and don't want to create
separate goals for each. The in dependant building is a secondary
request though.

So how hard would it be to do all of this and will I need to develop a
lot of my own goals for it or is it fairly easy and has simply eluded
me to this point?

Dru Devore
So many suggestions so little time.


> -------- Original Message --------
> Subject: Re: Subprojects and Dependencies
> From: Jesse McConnell <[EMAIL PROTECTED]>
> Date: Fri, September 16, 2005 8:09 pm
> To: Maven Users List <[email protected]>
> 
> Hi Dru, 
> 
> sorry for the quick short reply, but are you considering using maven1
> or 
> maven2 for this project?
> 
> I don't know much about maven1, but if you are considering using maven2
> for 
> this my initial impression is that you would be best served to give up
> the 
> notion on how it will work with ant or partially with ant and take a
> look at 
> the project from strictly an m2 perspective..
> 
> if m2 is the route you are thinking of taking then I can probably at
> least 
> point you in the right direction since the project I have setup in m2 
> involves ejbs, wars, ear and some webservices thrown in for good
> measure :)
> 
> I forget who said it, but if you want to go the maven2 route you need
> to 
> embrace the philosophy of m2 and see how it solves you problem...not
> try and 
> wedge it into your old way of doing things.
> 
> Jesse
> 
> On 9/16/05, Dru Devore <[EMAIL PROTECTED]> wrote:
> > 
> > I am working on a new project for creating Web Services for the
> > business. These will have EJB behind them, for internal Java to Java
> > use as well as business logic and data models. This is my problem I
> > need to have a parent project for the WS, EJB and logic with an
> outside
> > project for the models, they can be used by multiple projects. I am
> > currently working with NetBeans and have the Mevenide installed in
> it.
> > This is what I want as my structure
> > 
> > parent project
> > |
> > |--------WS project
> > |
> > |--------EJB project
> > |
> > |--------Logic project
> > 
> > model project
> > 
> > I don't have much of a problem with the model project it is the
> others I
> > have a problem with. Netbeans builds a nice enterprise application
> with
> > the parent, ws and ejb projects and I can then add a logic project
> to
> > it with not much of a problem but that will use ANT and I am into
> the
> > lib problem in CVS or some common place on the HD of each developer.
> I
> > really want to use Maven but don't know how much work it would
> involve.
> > 
> > Here are my questions.
> > 
> > 1. If Netbeans sets this up for me using ANT is it worth it to mess
> with
> > Maven?
> > 2. Would it be better to use the Maven ANT task for working with
> > repositories to solve the lib problem?
> > 3. If I should use Maven is there an easy way to convert the ANT
> > scripts, I would rather not simply call the ANT for it's targets.
> > 4. If I end up wrapping the ANT is there an easy way to do this?
> > 
> > Dru Devore
> > So many suggestions so little time.
> > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> jesse mcconnell
> 


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

Reply via email to