Re: Does maven have something like ant calls?

2004-03-26 Thread Los Morales
Thanks for the responses.

I've checked the reactor plugin and still see it based on the pom 
inheritance model with the way it calls the subprojects.  As for the 
multiproject plugin, looks like I will have to do some hacking with the 
directory structure in eclipse.  Let me just restate my issue in more detail 
and maybe there is an easy way of solving the problem.

I'm using eclipse as my IDE. Say I have 3 projects set up in eclipse like 
this:

-- Project A
 == /build
 == /conf
-- Project B
 == /build
 == /src
 == /conf
-- Project C
 == /build
 == /src
 == /web
You can consider Project A as a main build project, or parent, that 
oversees all the other (child) projects.  It contains the main build file 
(under /build) and configuration properties used by all the other projects.  
Project B can be considered the java middle-tier, housing all the services 
and business logic.  Project C is the webapp, housing source code and web 
components (JSPs, etc) related to the front-end.  Projects B and C also have 
their own build files, with each build specific to the project.  So for the 
case of Project B, it will compile and jar; for Project C, it will compile 
and war.
Therefore I want Project A to call Project B's build, then call Project C's 
build which relies on Project B's binaries.  Is this possible using Maven 
and one of its plugins?  I'm pretty sure that the reactor plugin can NOT do 
this from some of the examples I've seen on the web.  As for the 
multiproject plugin, I'm not so sure.  I might still have to hack the 
directory structure in eclipse, which in turn, defeats the purpose.

Any suggestions would be much appreciated.  Thanks!

-los


From: Marco Tedone [EMAIL PROTECTED]
Reply-To: Marco Tedone [EMAIL PROTECTED]
To: Maven Users List [EMAIL PROTECTED]
Subject: Re: Does maven have something like ant calls?
Date: Fri, 26 Mar 2004 07:34:11 -
You may want to see at the reactor and/or the multiproject plugin. With
Maven, you can define subprojects (each subproject is defined by a
project.xml), although a very high granularity (i.e. a project per package)
is descouraged.
Maven is also considered as a wrapper around Ant. All you need to do when
you want to use Ant, is to define something like that in your maven.xml
file:
ant:copy todir=..
ant:delete
..
HTH,
Marco

- Original Message -
From: Los Morales [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 26, 2004 7:27 AM
Subject: Does maven have something like ant calls?
 Hi,

 I'm new to maven and would like to know if there is a way of creating 
one
 main project.xml that calls other project.xml files to do the work.  For
 example, suppose I have 3 projects set up--P1, P2 and P3.  P1 is
designated
 as the main project file.  Running P1 initializes itself, calls P2 to do
its
 thing which includes jarring itself into the local repository, and 
finally
 calls P3 to do its thing which depends on P2's jar to complete.  I've
looked
 at the pom inheritance but its more of inheriting the super pom's
 properties rather than delegating calls to sub poms.  The only other 
way
I
 can think is to create a maven.xml file which embodies ant calls to do 
the
 job.  I'm not sure how this would work though since I do not see any ant
 tasks specifiic in invoking maven tasks.  Any help would be 
appreciated.
 Thanks!

 -los

 _
 Find a broadband plan that fits. Great local deals on high-speed 
Internet
 access.
 https://broadband.msn.com/?pgmarket=en-us/go/onm00200360ave/direct/01/


 -
 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]
_
Get tax tips, tools and access to IRS forms – all in one place at MSN Money! 
http://moneycentral.msn.com/tax/home.asp

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


Re: Does maven have something like ant calls?

2004-03-25 Thread Marco Tedone
You may want to see at the reactor and/or the multiproject plugin. With
Maven, you can define subprojects (each subproject is defined by a
project.xml), although a very high granularity (i.e. a project per package)
is descouraged.

Maven is also considered as a wrapper around Ant. All you need to do when
you want to use Ant, is to define something like that in your maven.xml
file:

ant:copy todir=..
ant:delete
..
HTH,

Marco


- Original Message - 
From: Los Morales [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 26, 2004 7:27 AM
Subject: Does maven have something like ant calls?


 Hi,

 I'm new to maven and would like to know if there is a way of creating one
 main project.xml that calls other project.xml files to do the work.  For
 example, suppose I have 3 projects set up--P1, P2 and P3.  P1 is
designated
 as the main project file.  Running P1 initializes itself, calls P2 to do
its
 thing which includes jarring itself into the local repository, and finally
 calls P3 to do its thing which depends on P2's jar to complete.  I've
looked
 at the pom inheritance but its more of inheriting the super pom's
 properties rather than delegating calls to sub poms.  The only other way
I
 can think is to create a maven.xml file which embodies ant calls to do the
 job.  I'm not sure how this would work though since I do not see any ant
 tasks specifiic in invoking maven tasks.  Any help would be appreciated.
 Thanks!

 -los

 _
 Find a broadband plan that fits. Great local deals on high-speed Internet
 access.
 https://broadband.msn.com/?pgmarket=en-us/go/onm00200360ave/direct/01/


 -
 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: Does maven have something like ant calls?

2004-03-25 Thread Michele_Forte
you can try  looking at the multiproject plugin
http://maven.apache.org/reference/plugins/multiproject/

I think there you can find what you need

Regards

Michele


|-+
| |   Los Morales|
| |   [EMAIL PROTECTED]|
| |   il.com  |
| ||
| ||
| |   26/03/2004 08:27 |
| |   Please respond to|
| |   Maven Users |
| |   List|
| ||
|-+
  
--|
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |To: [EMAIL PROTECTED]   
 |
  |cc: (bcc: Michele Forte/SwissRe)
  |
  |bcc:Michele Forte/SwissRe   
  |
  |Subject:Does maven have something like 
ant calls? |
  
--|




Hi,

I'm new to maven and would like to know if there is a way of creating one
main project.xml that calls other project.xml files to do the work.  For
example, suppose I have 3 projects set up--P1, P2 and P3.  P1 is designated

as the main project file.  Running P1 initializes itself, calls P2 to do
its
thing which includes jarring itself into the local repository, and finally
calls P3 to do its thing which depends on P2's jar to complete.  I've
looked
at the pom inheritance but its more of inheriting the super pom's
properties rather than delegating calls to sub poms.  The only other way
I
can think is to create a maven.xml file which embodies ant calls to do the
job.  I'm not sure how this would work though since I do not see any ant
tasks specifiic in invoking maven tasks.  Any help would be appreciated.

Thanks!

-los

_
Find a broadband plan that fits. Great local deals on high-speed Internet
access.
https://broadband.msn.com/?pgmarket=en-us/go/onm00200360ave/direct/01/


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






This e-mail, including attachments, is intended for the person(s) or
company named and may contain confidential and/or legally privileged
information. Unauthorized disclosure, copying or use of this information
may be unlawful and is prohibited. If you are not the intended recipient,
please delete this message and notify the sender




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