You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vijay Shanker <vs...@comframe.com> on 2006/04/07 16:20:04 UTC

RE: excluding parent jar and Continuum build problem

Thanks Alexandre,
 
Sorry for confusion.
Actually, I have following parent POM 
 
   <dependencies>
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <version>3.8.1</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>j2ee</groupId>
       <artifactId>j2ee</artifactId>
       <version>1.5</version>
       <scope>compile</scope>
     </dependency>
     <dependency>
       <groupId>com.honda</groupId>
       <artifactId>GALC_Core</artifactId>
       <version>1.0</version>
       <scope>compile</scope>
     </dependency>

Now, I would like to exclude GALC_Core dependency inside child POM. I think we can use dependencyManagement tag in parnet POM.
 
Now I have problem that Continuum is not building all projects, when I try to build parent POM. Any suggestion would be appreciated.
 
Thanks,
Vijay
 

________________________________

From: Alexandre Poitras [mailto:alexandre.poitras@gmail.com]
Sent: Fri 4/7/2006 7:40 AM
To: Maven Users List
Subject: Re: excluding parent jar



You can't have a parent project which produce a jar file. A parent
project should always have a "pom" packaging value.

On 4/6/06, Vijay Shanker <vs...@comframe.com> wrote:
> Hi there,
>
> Could you please let me know how to exclude parent POM's jar in child POM? I have following pom.xml
>
>   <dependencies>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>compile</scope>
>     </dependency>
>     <dependency>
>       <groupId>j2ee</groupId>
>       <artifactId>j2ee</artifactId>
>       <version>1.5</version>
>       <scope>compile</scope>
>     </dependency>
>     <dependency>
>       <groupId>com.honda</groupId>
>       <artifactId>GALC_Core</artifactId>
>       <version>1.0</version>
>       <scope>compile</scope>
>     </dependency>
>
> I would like to exclude GALC_Core in child POM.
>
> Thanking you in advance.
>
> Vijay
>
>
>
>
> ---------------------------------------------------------------------
> 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: excluding parent jar and Continuum build problem

Posted by Alexandre Poitras <al...@gmail.com>.
I guess you are declaring your dependency in your parents to tell
Maven which version it should use? If it's the case, you should should
use the dependencyManagement section instead.

On 4/7/06, Vijay Shanker <vs...@comframe.com> wrote:
> Thanks Alexandre,
>
> Sorry for confusion.
> Actually, I have following parent POM
>
>    <dependencies>
>      <dependency>
>        <groupId>junit</groupId>
>        <artifactId>junit</artifactId>
>        <version>3.8.1</version>
>        <scope>compile</scope>
>      </dependency>
>      <dependency>
>        <groupId>j2ee</groupId>
>        <artifactId>j2ee</artifactId>
>        <version>1.5</version>
>        <scope>compile</scope>
>      </dependency>
>      <dependency>
>        <groupId>com.honda</groupId>
>        <artifactId>GALC_Core</artifactId>
>        <version>1.0</version>
>        <scope>compile</scope>
>      </dependency>
>
> Now, I would like to exclude GALC_Core dependency inside child POM. I think we can use dependencyManagement tag in parnet POM.
>
> Now I have problem that Continuum is not building all projects, when I try to build parent POM. Any suggestion would be appreciated.
>
> Thanks,
> Vijay
>
>
> ________________________________
>
> From: Alexandre Poitras [mailto:alexandre.poitras@gmail.com]
> Sent: Fri 4/7/2006 7:40 AM
> To: Maven Users List
> Subject: Re: excluding parent jar
>
>
>
> You can't have a parent project which produce a jar file. A parent
> project should always have a "pom" packaging value.
>
> On 4/6/06, Vijay Shanker <vs...@comframe.com> wrote:
> > Hi there,
> >
> > Could you please let me know how to exclude parent POM's jar in child POM? I have following pom.xml
> >
> >   <dependencies>
> >     <dependency>
> >       <groupId>junit</groupId>
> >       <artifactId>junit</artifactId>
> >       <version>3.8.1</version>
> >       <scope>compile</scope>
> >     </dependency>
> >     <dependency>
> >       <groupId>j2ee</groupId>
> >       <artifactId>j2ee</artifactId>
> >       <version>1.5</version>
> >       <scope>compile</scope>
> >     </dependency>
> >     <dependency>
> >       <groupId>com.honda</groupId>
> >       <artifactId>GALC_Core</artifactId>
> >       <version>1.0</version>
> >       <scope>compile</scope>
> >     </dependency>
> >
> > I would like to exclude GALC_Core in child POM.
> >
> > Thanking you in advance.
> >
> > Vijay
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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