You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Santosh G. Gokak" <sa...@mastek.com> on 2006/03/21 13:00:43 UTC

Can This be done with Maven

Hi Everybody,

 

I have some thing I want to achieve using maven.

 

I have 5 Projects A, B, C, D, E.

 

Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
E.

 

Now, when the packaging of A is invoked, I would like that the latest
available code of E is taken, compiled, tested and packaged.

Then using that new E Package C and D is taken, compiled, tested and
packaged and so on. Finally A will be the having the latest of all.

 

Now, Can this be achieved with Maven, if so how?

If not, any work around?

 

Any help would be valuable

 

Thanks In Advance,

Santosh G Gokak

 

MASTEK 
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: Can This be done with Maven

Posted by David Delbecq <de...@oma.be>.
use maven multiproject
Santosh G. Gokak a écrit :

>Hi Everybody,
>
> 
>
>I have some thing I want to achieve using maven.
>
> 
>
>I have 5 Projects A, B, C, D, E.
>
> 
>
>Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
>E.
>
> 
>
>Now, when the packaging of A is invoked, I would like that the latest
>available code of E is taken, compiled, tested and packaged.
>
>Then using that new E Package C and D is taken, compiled, tested and
>packaged and so on. Finally A will be the having the latest of all.
>
> 
>
>Now, Can this be achieved with Maven, if so how?
>
>If not, any work around?
>
> 
>
>Any help would be valuable
>
> 
>
>Thanks In Advance,
>
>Santosh G Gokak
>
> 
>
>MASTEK 
>"Making a valuable difference"
>Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
>In the US, we're called MAJESCOMASTEK
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers.
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>  
>


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


Re: Can This be done with Maven

Posted by Alexandre Poitras <al...@gmail.com>.
Well someone beat me to the clock :)

On 3/21/06, Geoffrey De Smet <ge...@gmail.com> wrote:
> in the parent pom (lets call it F):
>
> <module>E</module>
> <module>D</module>
> <module>C</module>
> <module>B</module>
> <module>A</module>
> <!-- order doesn't matter though -->
>
> ...
>
> <dependencies/>
> <dependencyManagement>
>      <dependencies>
>              <dependency>
>                  <groupId>X</groupId>
>                  <artifactId>E</artifactId>
>                  <version>${pom.version}</version>
>              </dependency>
>              <dependency>
>                  <groupId>X</groupId>
>                  <artifactId>D</artifactId>
>                  <version>${pom.version}</version>
>              </dependency>
>      ...
>
> E's pom.xml:
> <dependencies/>
>
> C & D's pom.xml:
>      <dependencies>
>              <dependency>
>                  <groupId>X</groupId>
>                  <artifactId>E</artifactId>
>              </dependency>
>      </dependencies>
>
> B 's pom.xml:
>      <dependencies>
>              <dependency>
>                  <groupId>X</groupId>
>                  <artifactId>D</artifactId>
>              </dependency>
>      </dependencies>
>
> A's pom.xml:
>      <dependencies>
>              <dependency>
>                  <groupId>X</groupId>
>                  <artifactId>D</artifactId>
>              </dependency>
>              <dependency>
>                  <groupId>X</groupId>
>                  <artifactId>C</artifactId>
>              </dependency>
>              <dependency>
>                  <groupId>X</groupId>
>                  <artifactId>B</artifactId>
>              </dependency>
>              <dependency>
>                  <groupId>X</groupId>
>                  <artifactId>A</artifactId>
>              </dependency>
>      </dependencies>
>
> Santosh G. Gokak wrote:
> > Hi Everybody,
> >
> >
> >
> > I have some thing I want to achieve using maven.
> >
> >
> >
> > I have 5 Projects A, B, C, D, E.
> >
> >
> >
> > Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
> > E.
> >
> >
> >
> > Now, when the packaging of A is invoked, I would like that the latest
> > available code of E is taken, compiled, tested and packaged.
> >
> > Then using that new E Package C and D is taken, compiled, tested and
> > packaged and so on. Finally A will be the having the latest of all.
> >
> >
> >
> > Now, Can this be achieved with Maven, if so how?
> >
> > If not, any work around?
> >
> >
> >
> > Any help would be valuable
> >
> >
> >
> > Thanks In Advance,
> >
> > Santosh G Gokak
> >
> >
> >
> > MASTEK
> > "Making a valuable difference"
> > Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> > In the US, we're called MAJESCOMASTEK
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers.
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
>
> --
> With kind regards,
> Geoffrey De Smet
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Alexandre Poitras
Québec, Canada

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


Re: Can This be done with Maven

Posted by Geoffrey De Smet <ge...@gmail.com>.
in the parent pom (lets call it F):

<module>E</module>
<module>D</module>
<module>C</module>
<module>B</module>
<module>A</module>
<!-- order doesn't matter though -->

...

<dependencies/>
<dependencyManagement>
     <dependencies>
             <dependency>
                 <groupId>X</groupId>
                 <artifactId>E</artifactId>
                 <version>${pom.version}</version>
             </dependency>
             <dependency>
                 <groupId>X</groupId>
                 <artifactId>D</artifactId>
                 <version>${pom.version}</version>
             </dependency>
     ...

E's pom.xml:
<dependencies/>

C & D's pom.xml:
     <dependencies>
             <dependency>
                 <groupId>X</groupId>
                 <artifactId>E</artifactId>
             </dependency>
     </dependencies>

B 's pom.xml:
     <dependencies>
             <dependency>
                 <groupId>X</groupId>
                 <artifactId>D</artifactId>
             </dependency>
     </dependencies>

A's pom.xml:
     <dependencies>
             <dependency>
                 <groupId>X</groupId>
                 <artifactId>D</artifactId>
             </dependency>
             <dependency>
                 <groupId>X</groupId>
                 <artifactId>C</artifactId>
             </dependency>
             <dependency>
                 <groupId>X</groupId>
                 <artifactId>B</artifactId>
             </dependency>
             <dependency>
                 <groupId>X</groupId>
                 <artifactId>A</artifactId>
             </dependency>
     </dependencies>

Santosh G. Gokak wrote:
> Hi Everybody,
> 
>  
> 
> I have some thing I want to achieve using maven.
> 
>  
> 
> I have 5 Projects A, B, C, D, E.
> 
>  
> 
> Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
> E.
> 
>  
> 
> Now, when the packaging of A is invoked, I would like that the latest
> available code of E is taken, compiled, tested and packaged.
> 
> Then using that new E Package C and D is taken, compiled, tested and
> packaged and so on. Finally A will be the having the latest of all.
> 
>  
> 
> Now, Can this be achieved with Maven, if so how?
> 
> If not, any work around?
> 
>  
> 
> Any help would be valuable
> 
>  
> 
> Thanks In Advance,
> 
> Santosh G Gokak
> 
>  
> 
> MASTEK 
> "Making a valuable difference"
> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> In the US, we're called MAJESCOMASTEK
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 

-- 
With kind regards,
Geoffrey De Smet


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


Re: Can This be done with Maven

Posted by Alexandre Poitras <al...@gmail.com>.
Easily done with Maven. You just need to create a multi-modules
project. Search this mailing list to find how because unfortunately
the documentation is not there yet and I have to go to work for the
moment :) But if you need to, I can post some informations later.

On 3/21/06, Santosh G. Gokak <sa...@mastek.com> wrote:
> Hi Everybody,
>
>
>
> I have some thing I want to achieve using maven.
>
>
>
> I have 5 Projects A, B, C, D, E.
>
>
>
> Now, C and D depends on E. B Depends on D .A is combination of B, C, D,
> E.
>
>
>
> Now, when the packaging of A is invoked, I would like that the latest
> available code of E is taken, compiled, tested and packaged.
>
> Then using that new E Package C and D is taken, compiled, tested and
> packaged and so on. Finally A will be the having the latest of all.
>
>
>
> Now, Can this be achieved with Maven, if so how?
>
> If not, any work around?
>
>
>
> Any help would be valuable
>
>
>
> Thanks In Advance,
>
> Santosh G Gokak
>
>
>
> MASTEK
> "Making a valuable difference"
> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> In the US, we're called MAJESCOMASTEK
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>


--
Alexandre Poitras
Québec, Canada

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