You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2013/05/12 12:00:53 UTC
[jira] (MDEP-312) copyPom with useRepositoryLayout copies pom to
wrong location
[ https://jira.codehaus.org/browse/MDEP-312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MDEP-312:
-------------------------------
Description:
When I use copyPom with useRepositoryLayout, the JAR gets copied to the correct repository location, but the pom does not.
{code:xml}<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.2</version>
<configuration>
<outputDirectory>${basedir}/mavenRepo</outputDirectory>
<useRepositoryLayout>true</useRepositoryLayout>
<copyPom>true</copyPom>
</configuration>
</plugin>{code}
results:
{noformat}$ find mavenRepo/
mavenRepo/
mavenRepo/commons-io
mavenRepo/commons-io/commons-io
mavenRepo/commons-io/commons-io/1.4
mavenRepo/commons-io/commons-io/1.4/commons-io-1.4.jar
mavenRepo/commons-io/commons-io/maven-metadata-local.xml
mavenRepo/commons-io-1.4.pom{noformat}
was:
When I use copyPom with useRepositoryLayout, the JAR gets copied to the correct repository location, but the pom does not.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.2</version>
<configuration>
<outputDirectory>${basedir}/mavenRepo</outputDirectory>
<useRepositoryLayout>true</useRepositoryLayout>
<copyPom>true</copyPom>
</configuration>
</plugin>
results:
$ find mavenRepo/
mavenRepo/
mavenRepo/commons-io
mavenRepo/commons-io/commons-io
mavenRepo/commons-io/commons-io/1.4
mavenRepo/commons-io/commons-io/1.4/commons-io-1.4.jar
mavenRepo/commons-io/commons-io/maven-metadata-local.xml
mavenRepo/commons-io-1.4.pom
> copyPom with useRepositoryLayout copies pom to wrong location
> -------------------------------------------------------------
>
> Key: MDEP-312
> URL: https://jira.codehaus.org/browse/MDEP-312
> Project: Maven 2.x Dependency Plugin
> Issue Type: Bug
> Environment: Apache Maven 2.2.1 (rdebian-4)
> Java version: 1.5.0_22
> Java home: /usr/local/jdk1.5.0_22/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.35-24-server" arch: "amd64" Family: "unix"
> Reporter: Cody Casterline
>
> When I use copyPom with useRepositoryLayout, the JAR gets copied to the correct repository location, but the pom does not.
> {code:xml}<plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>2.2</version>
> <configuration>
> <outputDirectory>${basedir}/mavenRepo</outputDirectory>
> <useRepositoryLayout>true</useRepositoryLayout>
> <copyPom>true</copyPom>
> </configuration>
> </plugin>{code}
> results:
> {noformat}$ find mavenRepo/
> mavenRepo/
> mavenRepo/commons-io
> mavenRepo/commons-io/commons-io
> mavenRepo/commons-io/commons-io/1.4
> mavenRepo/commons-io/commons-io/1.4/commons-io-1.4.jar
> mavenRepo/commons-io/commons-io/maven-metadata-local.xml
> mavenRepo/commons-io-1.4.pom{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira