You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Shalini Muthukrishnan <Sh...@Sun.COM> on 2008/03/18 20:10:14 UTC

Using the maven-dependency-plugin

Hi,

I am using the maven-dependency-plugin "unpack-dependencies" to unpack 
the dependencies into some directory in my target directory. When i have 
multiple executions, the first unpack-dependencies execution unpacks the 
junit jar by default into my output directory. This does not happen for 
the subsequent executions. Any ideas why this happens?

I have enabled the <excludeTrasitive> flag.

Thanks,
Shalini.

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


RE: Using the maven-dependency-plugin

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Absolutely. That dependency is inherited by this module and you are
asking the plugin to unpack all dependencies. You can exclude artifacts
by name or group (among other things) to get down to the list you want.

-----Original Message-----
From: Shalini.Muthukrishnan@Sun.COM
[mailto:Shalini.Muthukrishnan@Sun.COM] 
Sent: Tuesday, March 18, 2008 9:36 PM
To: Maven Users List
Subject: Re: Using the maven-dependency-plugin

The top level parent's pom has a dependency listed on junit. Does this 
affect?

Brian E. Fox wrote:
> Are there any dependencies listed in the parent of the attached pom?
>
> -----Original Message-----
> From: Shalini.Muthukrishnan@Sun.COM
> [mailto:Shalini.Muthukrishnan@Sun.COM] 
> Sent: Tuesday, March 18, 2008 8:24 PM
> To: Maven Users List
> Subject: Re: Using the maven-dependency-plugin
>
> The outcome of a "mvn install" is the following:
>
> $ ls src/main/java/__ds_archive
> com  junit  META-INF  org
>
> $ ls src/main/java/__cp_archive
> com  META-INF
>
> As you can see from above, the 2 extra junit packages have been
unpacked
>
> in the case of __ds_archive from nowhere. The dependencies mentioned
in 
> the dependencies list does not have a transitive dependency on junit 
> also. Even then, it has been unpacked.
>
> Brian E. Fox wrote:
>   
>> What happens for the subsequent executions? Can you paste your pom?
>>     
> Why
>   
>> do you have multiple executions? The unpack-dependencies can take a
>>     
> list
>   
>> of dependencies and each one can be unpacked into different folders
>>     
> (the
>   
>> output directory is configurable at the artifactItem level too)
>>
>> -----Original Message-----
>> From: Shalini.Muthukrishnan@Sun.COM
>> [mailto:Shalini.Muthukrishnan@Sun.COM] 
>> Sent: Tuesday, March 18, 2008 3:10 PM
>> To: users@maven.apache.org
>> Subject: Using the maven-dependency-plugin
>>
>> Hi,
>>
>> I am using the maven-dependency-plugin "unpack-dependencies" to
unpack
>>     
>
>   
>> the dependencies into some directory in my target directory. When i
>>     
> have
>   
>> multiple executions, the first unpack-dependencies execution unpacks
>>     
> the
>   
>> junit jar by default into my output directory. This does not happen
>>     
> for 
>   
>> the subsequent executions. Any ideas why this happens?
>>
>> I have enabled the <excludeTrasitive> flag.
>>
>> Thanks,
>> Shalini.
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>   
>>     
>
> ---------------------------------------------------------------------
> 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
>
>   

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


Re: Using the maven-dependency-plugin

Posted by Shalini Muthukrishnan <Sh...@Sun.COM>.
The top level parent's pom has a dependency listed on junit. Does this 
affect?

Brian E. Fox wrote:
> Are there any dependencies listed in the parent of the attached pom?
>
> -----Original Message-----
> From: Shalini.Muthukrishnan@Sun.COM
> [mailto:Shalini.Muthukrishnan@Sun.COM] 
> Sent: Tuesday, March 18, 2008 8:24 PM
> To: Maven Users List
> Subject: Re: Using the maven-dependency-plugin
>
> The outcome of a "mvn install" is the following:
>
> $ ls src/main/java/__ds_archive
> com  junit  META-INF  org
>
> $ ls src/main/java/__cp_archive
> com  META-INF
>
> As you can see from above, the 2 extra junit packages have been unpacked
>
> in the case of __ds_archive from nowhere. The dependencies mentioned in 
> the dependencies list does not have a transitive dependency on junit 
> also. Even then, it has been unpacked.
>
> Brian E. Fox wrote:
>   
>> What happens for the subsequent executions? Can you paste your pom?
>>     
> Why
>   
>> do you have multiple executions? The unpack-dependencies can take a
>>     
> list
>   
>> of dependencies and each one can be unpacked into different folders
>>     
> (the
>   
>> output directory is configurable at the artifactItem level too)
>>
>> -----Original Message-----
>> From: Shalini.Muthukrishnan@Sun.COM
>> [mailto:Shalini.Muthukrishnan@Sun.COM] 
>> Sent: Tuesday, March 18, 2008 3:10 PM
>> To: users@maven.apache.org
>> Subject: Using the maven-dependency-plugin
>>
>> Hi,
>>
>> I am using the maven-dependency-plugin "unpack-dependencies" to unpack
>>     
>
>   
>> the dependencies into some directory in my target directory. When i
>>     
> have
>   
>> multiple executions, the first unpack-dependencies execution unpacks
>>     
> the
>   
>> junit jar by default into my output directory. This does not happen
>>     
> for 
>   
>> the subsequent executions. Any ideas why this happens?
>>
>> I have enabled the <excludeTrasitive> flag.
>>
>> Thanks,
>> Shalini.
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>   
>>     
>
> ---------------------------------------------------------------------
> 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
>
>   

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


RE: Using the maven-dependency-plugin

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Are there any dependencies listed in the parent of the attached pom?

-----Original Message-----
From: Shalini.Muthukrishnan@Sun.COM
[mailto:Shalini.Muthukrishnan@Sun.COM] 
Sent: Tuesday, March 18, 2008 8:24 PM
To: Maven Users List
Subject: Re: Using the maven-dependency-plugin

The outcome of a "mvn install" is the following:

$ ls src/main/java/__ds_archive
com  junit  META-INF  org

$ ls src/main/java/__cp_archive
com  META-INF

As you can see from above, the 2 extra junit packages have been unpacked

in the case of __ds_archive from nowhere. The dependencies mentioned in 
the dependencies list does not have a transitive dependency on junit 
also. Even then, it has been unpacked.

Brian E. Fox wrote:
> What happens for the subsequent executions? Can you paste your pom?
Why
> do you have multiple executions? The unpack-dependencies can take a
list
> of dependencies and each one can be unpacked into different folders
(the
> output directory is configurable at the artifactItem level too)
>
> -----Original Message-----
> From: Shalini.Muthukrishnan@Sun.COM
> [mailto:Shalini.Muthukrishnan@Sun.COM] 
> Sent: Tuesday, March 18, 2008 3:10 PM
> To: users@maven.apache.org
> Subject: Using the maven-dependency-plugin
>
> Hi,
>
> I am using the maven-dependency-plugin "unpack-dependencies" to unpack

> the dependencies into some directory in my target directory. When i
have
>
> multiple executions, the first unpack-dependencies execution unpacks
the
>
> junit jar by default into my output directory. This does not happen
for 
> the subsequent executions. Any ideas why this happens?
>
> I have enabled the <excludeTrasitive> flag.
>
> Thanks,
> Shalini.
>
> ---------------------------------------------------------------------
> 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
>
>   

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


Re: Using the maven-dependency-plugin

Posted by Shalini Muthukrishnan <Sh...@Sun.COM>.
The outcome of a "mvn install" is the following:

$ ls src/main/java/__ds_archive
com  junit  META-INF  org

$ ls src/main/java/__cp_archive
com  META-INF

As you can see from above, the 2 extra junit packages have been unpacked 
in the case of __ds_archive from nowhere. The dependencies mentioned in 
the dependencies list does not have a transitive dependency on junit 
also. Even then, it has been unpacked.

Brian E. Fox wrote:
> What happens for the subsequent executions? Can you paste your pom? Why
> do you have multiple executions? The unpack-dependencies can take a list
> of dependencies and each one can be unpacked into different folders (the
> output directory is configurable at the artifactItem level too)
>
> -----Original Message-----
> From: Shalini.Muthukrishnan@Sun.COM
> [mailto:Shalini.Muthukrishnan@Sun.COM] 
> Sent: Tuesday, March 18, 2008 3:10 PM
> To: users@maven.apache.org
> Subject: Using the maven-dependency-plugin
>
> Hi,
>
> I am using the maven-dependency-plugin "unpack-dependencies" to unpack 
> the dependencies into some directory in my target directory. When i have
>
> multiple executions, the first unpack-dependencies execution unpacks the
>
> junit jar by default into my output directory. This does not happen for 
> the subsequent executions. Any ideas why this happens?
>
> I have enabled the <excludeTrasitive> flag.
>
> Thanks,
> Shalini.
>
> ---------------------------------------------------------------------
> 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
>
>   

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


Re: Using the maven-dependency-plugin

Posted by Shalini Muthukrishnan <Sh...@Sun.COM>.
I have multiple executions because i want 2 different archives to be 
created with the same dependencies, but with different set of files. As 
in, i exclude some in one and include some in the other.

I have attached my pom.xml herewith.

Thanks,
Shalini.

Brian E. Fox wrote:
> What happens for the subsequent executions? Can you paste your pom? Why
> do you have multiple executions? The unpack-dependencies can take a list
> of dependencies and each one can be unpacked into different folders (the
> output directory is configurable at the artifactItem level too)
>
> -----Original Message-----
> From: Shalini.Muthukrishnan@Sun.COM
> [mailto:Shalini.Muthukrishnan@Sun.COM] 
> Sent: Tuesday, March 18, 2008 3:10 PM
> To: users@maven.apache.org
> Subject: Using the maven-dependency-plugin
>
> Hi,
>
> I am using the maven-dependency-plugin "unpack-dependencies" to unpack 
> the dependencies into some directory in my target directory. When i have
>
> multiple executions, the first unpack-dependencies execution unpacks the
>
> junit jar by default into my output directory. This does not happen for 
> the subsequent executions. Any ideas why this happens?
>
> I have enabled the <excludeTrasitive> flag.
>
> Thanks,
> Shalini.
>
> ---------------------------------------------------------------------
> 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
>
>   

RE: Using the maven-dependency-plugin

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
What happens for the subsequent executions? Can you paste your pom? Why
do you have multiple executions? The unpack-dependencies can take a list
of dependencies and each one can be unpacked into different folders (the
output directory is configurable at the artifactItem level too)

-----Original Message-----
From: Shalini.Muthukrishnan@Sun.COM
[mailto:Shalini.Muthukrishnan@Sun.COM] 
Sent: Tuesday, March 18, 2008 3:10 PM
To: users@maven.apache.org
Subject: Using the maven-dependency-plugin

Hi,

I am using the maven-dependency-plugin "unpack-dependencies" to unpack 
the dependencies into some directory in my target directory. When i have

multiple executions, the first unpack-dependencies execution unpacks the

junit jar by default into my output directory. This does not happen for 
the subsequent executions. Any ideas why this happens?

I have enabled the <excludeTrasitive> flag.

Thanks,
Shalini.

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