java - retrieve Artifact item as a property -


i'm trying retrieve artifact items in maven-dependecy-plugin name property write value in war manifest file . need ${project.artifactitems["name"].value} retrieve values without having read each jar manifest file stream programmaticaly.

<groupid>org.apache.maven.plugins</groupid> <artifactid>maven-dependency-plugin</artifactid> <executions>   <execution>     <id>copy-installed</id>     <phase>test</phase>     <goals>       <goal>copy</goal>     </goals>     <configuration>       <artifactitems>         <artifactitem>           <groupid>${project.groupid}</groupid>           <artifactid>prj-applet</artifactid>           <version>${test.project.version}</version>           <type>jar</type>         </artifactitem>         <artifactitem>           <groupid>${project.groupid}</groupid>           <artifactid>prj-pdf-render-applet</artifactid>           <classifier>jar-with-dependencies</classifier>           <version>${test.project.version}</version>           <type>jar</type>         </artifactitem>       </artifactitems> 

i need insert each retrieved value in manifest file using war plugin :

<artifactid>maven-war-plugin</artifactid> <configuration> <warname>test</warname>   <!-- java ee 6 doesn't require web.xml, maven needs catch up! -->    <!-- <warname>test</warname> -->   <failonmissingwebxml>false</failonmissingwebxml>   <archive>     <manifestentries>        <applicationversion>${pom.version}</applicationversion>       <applicationbuildtimestamp>${maven.build.timestamp}</applicationbuildtimestamp>     </manifestentries>   </archive> </configuration> 

suppose have dependency

<dependency>     <groupid>some-groupid</groupid>     <artifactid>some-artifactid</artifactid>     <type>jar</type> </dependency> 

you can dependency ${maven.dependency.some-groupid.some-artifactid.jar.path}


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -