You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kevin Stembridge <ke...@gmail.com> on 2007/05/15 23:11:37 UTC
maven-dependency-plugin: copy goal with overwrite=false doesn't
copy
Hi folks,
There seems to be a problem with the maven-dependency-plugin copy goal
when overwrite is set to false. It says that the dependency already
exists and doesn't copy it in.
This pom is from a bare-bones project that shows my problem.
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bogus</groupId>
<artifactId>test-dependency</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>test-dependency</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.2</version>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
</project>
RE: maven-dependency-plugin: copy goal with overwrite=false doesn'tcopy
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
You are correct. This is fixed in alpha-5 (currently snapshot)
http://jira.codehaus.org/browse/MDEP-80
-----Original Message-----
From: Kevin Stembridge [mailto:kevin.stembridge@gmail.com]
Sent: Tuesday, May 15, 2007 2:12 PM
To: users@maven.apache.org
Subject: maven-dependency-plugin: copy goal with overwrite=false
doesn'tcopy
Hi folks,
There seems to be a problem with the maven-dependency-plugin copy goal
when overwrite is set to false. It says that the dependency already
exists and doesn't copy it in.
This pom is from a bare-bones project that shows my problem.
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bogus</groupId>
<artifactId>test-dependency</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>test-dependency</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.2</version>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org