maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Wheeler <rwhee...@artifact-software.com>
Subject Re: copy selected dependencies transitively
Date Fri, 04 Jan 2013 20:57:10 GMT
What are you actually trying to do?
Why do you need to do this? What makes your environment different from 
everyone else's operation?

Perhaps there are easier ways to get what you want by reformulating the 
problem.

Ron

On 04/01/2013 11:17 AM, Erik Fäßler wrote:
> Hi all,
>
> my issue is no new one and I found some related posts - even on this list - already.
But none of them has been answered, so I try my luck.
>
> What I want:
> Copy one (or multiple) selected dependency of my project into a directory of its own.
That is, unlike the normal "copy-dependencies" execution which just copies all dependencies
into a directory, I want to select only some of them.
> I tried it with includeArtifactIds like this:
>
> <plugin>
> 				<artifactId>maven-dependency-plugin</artifactId>
> 				<version>2.6</version>
> 				<executions>
> 					<execution>
> 						<id>Copy dependencies transitive</id>
> 						<phase>package</phase>
> 						<goals>
> 							<goal>copy-dependencies</goal>
> 						</goals>
> 						<configuration>
> 							<excludeTransitive>false</excludeTransitive>
> 							<outputDirectory>lib</outputDirectory>
> 							<includeArtifactIds>myartifact</includeArtifactIds>
> 						</configuration>
> 					</execution>
>
> 					
> 				</executions>
> </plugin>
>
> But here, the original meaning of "includeArtifactIds" is "copy exactly the artifacts
of the given IDs, nothing else", which also means that no transitive dependencies are copied.
I stated explicitly "<excludeTransitive>false</excludeTransitive>" but this seems
to be ignored.
> Question: Is there another way to achieve what I need (copy selected artifacts along
with their transitive dependencies into a folder of their own).
> Feature Request: I guess it wouldn't be too difficult to take the "<excludeTransitive>false</excludeTransitive>"
command into account and just copy the transitive dependencies in this case, would it? If
this could be added, it would help me and I guess some other people out there.
>
> Thanks and best regards,
>
> Erik
> ---------------------------------------------------------------------
> 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


Mime
View raw message