File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes pom.xml for maven2 users Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "pom.xml for maven2 users" Watch "pom.xml for maven2 users" New topic
Author

pom.xml for maven2 users

Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Hi. Roel shared his build.xml, so maybe I will share mu pom.xml (I am a maven2 fan and am much more comfortable with it as I have been using ant very very little).



To make sure all variable places are not missed, they are included in < and > - this will cause errors in XML editors. There are also small comments so that the places are more easily spotted in text editors.

Just run 'mvn verify' to have the submission jar in ${project}/target. It uses a workdir to have the required parts copied there and than uses it for the jar goal to package the final assignment jar. I use the 'verify' phase as it is after the package phase (which has some additional plugins bound as wel), and I had to bind the other jar goal somewhere, and verify seemed ok.

maven and ant gurus - if you see any error or a bad practice, feel free to comment.

Maybe it will come in handy for someone apart from me.

Raf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: pom.xml for maven2 users