maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Veit Guna" <Veit.G...@gmx.de>
Subject Re: Maven copy-dependencies and excluding transitively
Date Fri, 18 Jan 2013 15:07:23 GMT
Not really, no :).

If I read the article correctly, it describes how to merge n jar's into one. I just need to
copy them to a specific location.

-------- Original-Nachricht --------
> Datum: Fri, 18 Jan 2013 08:50:36 -0500
> Von: Ron Wheeler <rwheeler@artifact-software.com>
> An: users@maven.apache.org
> Betreff: Re: Maven copy-dependencies and excluding transitively

> http://blog.artifact-software.com/tech/?p=121
> Is that what you  are trying to do?
> 
> Ron
> 
> On 18/01/2013 8:15 AM, Veit Guna wrote:
> > Hi.
> >
> > I'm using the Maven Dependency Plugin with the goal copy-dependencies. I
> would like to do the following:
> >
> > - Copy all transitive dependencies with the scope "runtime" to the
> target dir
> > - exclude specific group ids *including their* transitive dependencies
> from that list
> >
> > I tried:
> >
> > <plugin>
> > 	<groupId>org.apache.maven.plugins</groupId>
> > 	<artifactId>maven-dependency-plugin</artifactId>
> > 	<version>2.6</version>
> > 	<executions>
> > 		<execution>
> > 			<id>copy-dependencies</id>
> > 			<phase>package</phase>
> > 			<goals>
> > 				<goal>copy-dependencies</goal>
> > 			</goals>
> > 			<configuration>
> > 				<includeScope>runtime</includeScope>
> > 				<excludeGroupIds>A,B</excludeGroupIds>
> > 			</configuration>
> > 		</execution>
> > 	</executions>
> > </plugin>
> >
> > But that leaves all transient dependecies of A and B in the target dir.
> I also tried
> >
> > <excludeTransitive>true</excludeTransitive>
> >
> > But that excludes *all* transitive deps - not only for A and B. That
> leaves only "direct" deps in the target dir.
> >
> > Is there any way to achieve what I want *without* specifying each
> transitive dependency (and theirs) manually via <excludeGroupIds>?
> >
> > Thanks.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> 
> -- 
> Ron Wheeler
> President
> Artifact Software Inc
> email: rwheeler@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message