You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Richarz Ziegler (JIRA)" <ji...@codehaus.org> on 2007/04/18 04:59:46 UTC

[jira] Commented: (MJAR-65) Mismatch with dependency name when using goal test-jar

    [ http://jira.codehaus.org/browse/MJAR-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_93189 ] 

Richarz Ziegler commented on MJAR-65:
-------------------------------------

h4. Your problem may be here:
|| You've Got || Should Be ||
|{code}<type>tests.jar</type>{code} | {code}<type>test-jar</type>{code}|

h1. However!!!
I've stumbled upon this issue because I'm facing a similar issue.  For me I do not get a build error, but I do not get my test artifact in my war file either.

I'm most anxious to hear whether this advice works for you.



> Mismatch with dependency name when using goal test-jar
> ------------------------------------------------------
>
>                 Key: MJAR-65
>                 URL: http://jira.codehaus.org/browse/MJAR-65
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: maven 2.0.4 and 2.1 of the jar plugin
>            Reporter: Julian Payne
>            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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira