[
https://issues.apache.org/jira/browse/MJAR-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957177#comment-17957177
]
Matthias Bünger commented on MJAR-65:
-------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-jar-plugin#155|https://github.com/apache/maven-jar-plugin/issues/155].
> Mismatch with dependency name when using goal test-jar
> ------------------------------------------------------
>
> Key: MJAR-65
> URL: https://issues.apache.org/jira/browse/MJAR-65
> Project: Maven JAR Plugin (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 2.1
> Environment: maven 2.0.4 and 2.1 of the jar plugin
> Reporter: julianpayne
> Priority: Blocker
>
> I am trying to do what is described on the wiki to deploy the test jar of a
> project:
> http://maven.apache.org/guides/mini/guide-attached-tests.html
> When I do this and I deploy it deploys the following file in the directory
> SNAPSHOT (along with the checksums and the metadata):
> jviews-chart-20070105.141546-1-tests.jar
> I then have a second project that has the following dependency:
> <dependency>
> <groupId>jviews</groupId>
> <artifactId>jviews-chart</artifactId>
> <scope>test</scope>
> <type>tests.jar</type>
> <version>SNAPSHOT</version>
> </dependency>
> However when I run mvn on this project I get the following error:
> Downloading:
> http://jviewstest.ilog.fr/jviews-m2/jviews/jviews-chart/SNAPSHOT/jviews-chart-20070105.141546-1.tests.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> Missing:
> ----------
> 1) jviews:jviews-chart:tests.jar:SNAPSHOT
> NOTE: it is trying to download the file
> "jviews-chart-20070105.141546-1.tests.jar" whereas the file that was deployed
> is called "jviews-chart-20070105.141546-1-tests.jar".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)