[ https://jira.codehaus.org/browse/MDEP-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301926#comment-301926 ]
Derrick Isaacson edited comment on MDEP-287 at 6/26/12 3:53 PM: ---------------------------------------------------------------- I get an error when I run with a "-T 4" option in maven 3. I'm trying to copy a properties file artifact from one module (Foo) to the output directory of another (Bar). [UPDATE] Nevermind. Turned out to be a user error. was (Author: disaacson): I get an error when I run with a "-T 4" option in maven 3. I'm trying to copy a properties file artifact from one module (Foo) to the output directory of another (Bar). >From the parent directory of Foo and Bar I run mvn -T 4 clean test It fails with this error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.4:copy (copy) on project Bar: Error copying artifact from /.../Foo/target/classes to /.../Bar/target/classes/my.properties: /.../Foo/target/classes (Is a directory) -> [Help 1] It works just fine without the -T option. My pom has this in it. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>compile</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>${project.groupId}</groupId> <artifactId>Foo</artifactId> <version>${foo.version}</version> <type>properties</type> <classifier>my</classifier> <overWrite>true</overWrite> <outputDirectory>${project.build.outputDirectory}</outputDirectory> <destFileName>my.properties</destFileName> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> > Make maven-dependency-plugin @threadSafe > ---------------------------------------- > > Key: MDEP-287 > URL: https://jira.codehaus.org/browse/MDEP-287 > Project: Maven 2.x Dependency Plugin > Issue Type: Improvement > Affects Versions: 2.1 > Reporter: Andreas Sewe > Assignee: Brian Fox > > The plugin is not yet marked as @threadSafe. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira