You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Karl Heinz Marbaise <kh...@gmx.de> on 2011/05/31 21:20:31 UTC

Classpath for Maven Plugin

Hi,

i'm working on the development of a plugin which can have a 
configuration like this.

<plugin>
   <groupId>com.soebes.maven.plugins.mlv</groupId>
   <artifactId>maven-license-verifier-plugin</artifactId>
   <version>0.4</version>
   <dependencies>
     <dependency>
       <groupId>YouCompanyPackage.licenses</groupId>
       <artifactId>licenses</artifactId>
       <version>6</version>
     </dependency>
   </dependencies>
   <configuration>
     <verbose>true</verbose>
   </configuration>
</plugin>

So the question is:

Is there a good way to access the classpath of the plugin only (not 
compile, test etc.) and be sure to get the given dependency 
(YouCompanyPackage.licenses) in simple way? Or do i have to inject 
something special to the Plugin like documented on 
http://maven.apache.org/guides/mini/guide-maven-classloading.html for 
plugin class loader...

Does there exist an example how to do this?

Many thanks in advance...

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 Würselen                           http://www.soebes.de

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