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>
