You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emanuel Bulic (JIRA)" <ji...@codehaus.org> on 2006/04/12 15:39:48 UTC

[jira] Updated: (MNG-2224) artifact:dependency can't resolve custom test-bndl artifact type

     [ http://jira.codehaus.org/browse/MNG-2224?page=all ]

Emanuel Bulic updated MNG-2224:
-------------------------------

    Attachment: components.xml

> artifact:dependency can't resolve custom test-bndl artifact type
> ----------------------------------------------------------------
>
>          Key: MNG-2224
>          URL: http://jira.codehaus.org/browse/MNG-2224
>      Project: Maven 2
>         Type: Bug

>   Components: Ant tasks
>     Versions: 2.0.4
>     Reporter: Emanuel Bulic
>  Attachments: ajtest.build.xml, components.xml
>
>
> I creates a custom artifact type, bndl, along with test-bndl.  It is identical to the jar type/packaging, except for that fact that the archives have a .bndl extension instead of .jar
> Futhermore, I create a bundle-plugin to handle the artifact's package phase (I attached the plexus/components.xml).  The new lifecycle, always creates the test-bndl attachment, such that all projects will have both the .bndl artifact, and -tests.bndl attachment.
> I am also using an ant plugin, ajtest-plugin.  This plugin is invoked during the test phase of the bndl type, and is ant script that uses the maven-artifact-ant tasks (I attached the script as well).  To sum it up, the ant script runs  the junit test using the aspectJ weaving classloader.
> For the purpose of the issue, I am going to simplify my project structure:
> util:
>   <groupId>com.dcx.NGST</groupId>
>   <artifactId>util</artifactId>
>   <packaging>bndl</packaging>
>   <version>1.20-SNAPSHOT</version>
> upgrade:
>   <groupId>com.dcx.NGST</groupId>
>   <artifactId>upgrade</artifactId>
>   <packaging>bndl</packaging>
>   <version>1.20-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>com.dcx.NGST</groupId>
>       <artifactId>util</artifactId>
>       <version>1.20-SNAPSHOT</version>
>       <type>test-bndl</type>
>       <scope>test</scope>
>     </dependency>
>   <dependencies>
> When running the ajtest-plugin during the test phase of the build, I get an artifact resolution error on com.dcx.NGST:util:test-bndl:1-20-SNAPSHOT. 
> It is unable to download repository/com/dcx/NGST/util/1.20-SNAPSHOT/util-1.20-SNAPSHOT.test-bndl.  
> It appears it doesn't know that test-bndl is .bndl artifact attachement.  The .bndl packaging is defined in the bundle-plugin, not the ajtest-plugin.  I was able to work around this by copying the plexus/components.xml file into the ajtest-plugin, but it would be nice if i didn't have to duplicate it.

-- 
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