You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sharma, Jaikumar" <ja...@barco.com> on 2006/08/21 06:21:21 UTC

Discarding 'pom.properties' & 'pm.xml' at the time of JAR creatio n

Dear Maven Users,
 
 
In a multi-module project, I have configured the maven-jar-plugin to NOT to
add 'pom.properties' and 'pom.xml' at the time when build creates JAR
archive for one of the module, but it comes out with an error.
 
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-jar-plugin:2.0
Cause: Cannot find setter nor field in
org.apache.maven.archiver.MavenArchiveConfiguration for 'addMavenDescriptor'
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Aug 21 09:46:08 GMT+05:30 2006
[INFO] Final Memory: 5M/9M
[INFO]
------------------------------------------------------------------------
 
 
Excerpts from my parent pom.xml, where maven-jar-plugin has been configured.
  
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.0</version>           
           <!-- configuration to discard 'pom.properties' and 'pom.xml'
files from being added in
           ' JAR archive  
           -->     
         <configuration>
              <archive>                
                <addMavenDescriptor>false</addMavenDescriptor>
              </archive>
         </configuration>      
  </plugin>   
 
 
Is this a problem with maven-jar-plugin or I am doing something wrong ? Any
enlightment is appreciated.
 
Thanks.
- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.