maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis, Eric" <Eric.Le...@ipi.ch>
Subject AW: Including dependencies with assembly plugin: Scope problem
Date Tue, 13 Oct 2009 09:14:00 GMT
Anyone?  :-) 

> -----Urspr√ľngliche Nachricht-----
> Von: Lewis, Eric [mailto:Eric.Lewis@ipi.ch] 
> Gesendet: Freitag, 9. Oktober 2009 18:03
> An: Maven Users List
> Betreff: Including dependencies with assembly plugin: Scope problem
> 
> Hi
> 
> I'm trying to include all the runtime dependencies with an 
> assembly descriptor:
> 
>     <!-- The runtime dependencies -->
>     <dependencySet>
>       <useStrictFiltering>true</useStrictFiltering>
>       <useProjectArtifact>false</useProjectArtifact>
>       <outputDirectory>${batch.zip.library}</outputDirectory>
>       <scope>runtime</scope>
>       <!-- Don't distribute sources -->
>       <excludes>
>         <exclude>*:sources</exclude>
>       </excludes>
>     </dependencySet>
> 
> 
> Now I have a dependency which in a parent POM has the scope 
> 'test'. In my project, however, that's redefined to 'runtime'.
> The problem is that it's not included in the final ZIP file, 
> and I don't understand why.
> Maven's debugging output handles the scope differently 
> (sometimes it appears to be 'test', sometimes 'runtime') and 
> finally filters it because it's considered 'test'.
> 
> Can someone help me?
> 
> Best regards,
> Eric
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message