I believe this feature is added in the 2.1 version of maven-jar-plugin, which hasn't been released yet. In the meantime, you can check it out of SVN, build it, and install it to your repository.
Chris > -----Original Message----- > From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] > Sent: Sunday, 20 August, 2006 23:21 > To: Maven Users List > Subject: Discarding 'pom.properties' & 'pm.xml' at the time > of JAR creation > > 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. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
