maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte" <rfscho...@apache.org>
Subject Re: Artifact's file
Date Sun, 05 May 2013 16:16:44 GMT
Hi,

Just a guess:
your project has to be aware of the mapping from packaging-type to file  
extension.
So you have to add the packaging-plugin to your project, and add  
"<extensions>true</extensions>"
See  
http://books.sonatype.com/mvnref-book/reference/writing-plugins-sect-plugins-lifecycle.html,
 
final paragraph.

Robert

Op Sun, 05 May 2013 17:29:36 +0200 schreef Igor Zapletnev  
<igor.zapletnev@gmail.com>:

> I have my custom packaging type (for example, test-type and my mojo for
> package goal for test-type artifacts). My package mojo properly set file
> for artifact (project.getArtifact().setFile(destination)) and install it  
> in
> the m2 repo.
>
> But when another plug-in has dependency on this plug-in (with test-type
> packaging type) file is null for this artifact dependency.
>
> But I am able see this file in m2 repo, could you please explain how  
> maven
> stores references on artifact's file and how this file will be resolved?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message