You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nathan Coast <na...@codeczar.com> on 2004/09/09 19:17:24 UTC

loading the pom for a plugin

Hi,

from a recent post I found out how to load a pom into a variable,  what I'm trying to do 
now is to load the pom of an installed plugin. unfortunately I only know the artifactId of 
the plugin and not the installed version number.

I have found a workaround to locate the project's descriptor.

    <ant:path id="plugin_path">
     <ant:fileset  dir="${maven.plugin.unpacked.dir}">
       <ant:include name="${pluginName}*/project.xml"/>
     </ant:fileset>
   </ant:path>
   <ant:property name="plugin_desc_path" refid="plugin_path"/>
   <echo message="loading plugin pom from ${plugin_desc_path}"/>
   <maven:pom var="plugin_pom" projectDescriptor="${plugin_desc_path}"/>

is this the only way or is there some other way of loading a plugin's pom without knowing 
the installed version?  My solution feels like a hack.

cheers
Nathan

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