Maven-SortPom-PluginMaven plugin that helps the user sort pom.xml. The default sort order is taken from the Maven pom documentation. The main advantage to have standardized sorted poms, is that comparisons between different projekt poms becomes much easier.
Goals OverviewThe SortPom Plugin has only one goal.
com.google.code.sortpom:maven-sortpom-plugin:sort sorts the current pom.xml file. By default it saves a backup copy named pom.xml.bak before sorting. Parameters
Commandline Configurationtag Default value Description -Dsort.pomFile=myPom.xml myPom.xml pom.xml Location of the pomfile -Dsort.createBackupFile=false false true Should a backup copy be created before sorting the pom -Dsort.backupFileExtension=.old .old .bak Name of the file extension for the backup file -Dsort.encoding=ASCII ASCII UTF-8 Encoding for the files -Dsort.lineSeparator=\n \n line.separator Line separator for sorted pom. Can be either \n, \r or \r\n -Dsort.sortOrderFile=src/main/resources/customSortOrder.xml src/main/resources/customSortOrder.xml internal Custom sort order file read from either executing path or classpath
DownloadMaven users can add this project as a dependency with the following additions to a POM.xml file:
googlecode.mindi-f
http://mindi-f.googlecode.com/svn/repo
googlecode.sortpom
http://sortpom.googlecode.com/svn/repo
com.google.code.sortpom
maven-sortpom-plugin
0.2.3
false
sort
verify
Versions
0.1.1 First working version 0.2.0 All custom parameters implemented 0.2.1 Solved strange dependency for qdox. Generated runtime exception under Linux 0.2.3 Read sortOrderFile from executing path or classpath
30 Day Summary Apr 20 2013 — May 20 2013
|
12 Month Summary May 20 2012 — May 20 2013
|
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.