All Projects → Ekryd → Sortpom

Ekryd / Sortpom

Licence: bsd-3-clause
Maven plugin that helps the user sort pom.xml.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Sortpom

Javafx Maven Plugin
Maven plugin for JavaFX
Stars: ✭ 764 (+312.97%)
Mutual labels:  maven-plugin, maven
Maven Git Versioning Extension
This extension will virtually set project versions, based on current git branch or tag.
Stars: ✭ 178 (-3.78%)
Mutual labels:  maven-plugin, maven
Maven Min Plugin
📦 Latke application JavaScript and CSS files compression.
Stars: ✭ 5 (-97.3%)
Mutual labels:  maven-plugin, maven
Ksprefs
🚀⚡ Kotlin SharedPreferences wrapper & cryptographic preferences android library.
Stars: ✭ 176 (-4.86%)
Mutual labels:  xml, maven
Flatten Maven Plugin
Flatten Maven Plugin
Stars: ✭ 82 (-55.68%)
Mutual labels:  maven-plugin, maven
Javapackager
📦 Gradle/Maven plugin to package Java applications as native Windows, Mac OS X, or GNU/Linux executables and create installers for them.
Stars: ✭ 285 (+54.05%)
Mutual labels:  maven-plugin, maven
Rpm Maven Plugin
Stars: ✭ 52 (-71.89%)
Mutual labels:  maven-plugin, maven
maven-native
www.mojohaus.org/maven-native/
Stars: ✭ 13 (-92.97%)
Mutual labels:  maven, maven-plugin
Git Commit Id Maven Plugin
Maven plugin which includes build-time git repository information into an POJO / *.properties). Make your apps tell you which version exactly they were built from! Priceless in large distributed deployments... :-)
Stars: ✭ 1,187 (+541.62%)
Mutual labels:  maven-plugin, maven
Appassembler
Stars: ✭ 69 (-62.7%)
Mutual labels:  maven-plugin, maven
docker-compose-maven-plugin
Run docker-compose with Maven
Stars: ✭ 68 (-63.24%)
Mutual labels:  maven, maven-plugin
Jib
🏗 Build container images for your Java applications.
Stars: ✭ 11,370 (+6045.95%)
Mutual labels:  maven-plugin, maven
jcabi-maven-plugin
Supplementary maven plugin for AspectJ weaving and versioning of artifacts
Stars: ✭ 25 (-86.49%)
Mutual labels:  maven, maven-plugin
Proguard Maven Plugin
ProGuard Maven plugin that supports modularised ProGuard packages
Stars: ✭ 353 (+90.81%)
Mutual labels:  maven-plugin, maven
rpm-builder
Maven RPM builder plugin
Stars: ✭ 46 (-75.14%)
Mutual labels:  maven, maven-plugin
Graphql Java Codegen Maven Plugin
Maven plugin for graphql-java-codegen
Stars: ✭ 17 (-90.81%)
Mutual labels:  maven-plugin, maven
checksum-maven-plugin
Compute Maven project artifacts/dependencies/files checksum digests.
Stars: ✭ 36 (-80.54%)
Mutual labels:  maven, maven-plugin
sign-maven-plugin
Maven plugin which creates Open PGP / GPG signatures for all of the project's artifacts
Stars: ✭ 34 (-81.62%)
Mutual labels:  maven, maven-plugin
Animal Sniffer
Stars: ✭ 59 (-68.11%)
Mutual labels:  maven-plugin, maven
Jgitver Maven Plugin
maven core extension to automatically define versions using jgitver & git tags
Stars: ✭ 117 (-36.76%)
Mutual labels:  maven-plugin, maven

Sortpom Maven Plugin Icon

Build Status Coverage Status Maven Central Quality Gate Status Licence

Maven plugin that helps the user sort pom.xml by formatting the XML and organizing XML sections in a predefined order. The main advantages to have standardized sorted poms are that they become more readable and that comparisons between different module poms becomes much easier.

Goals Overview

The SortPom Plugin has two goals.

  • mvn sortpom:sort sorts the current pom.xml file. This goal will always sort the pom.xml file.

  • mvn sortpom:verify only sorts the current pom.xml file if the xml elements are unsorted. This goal ignores text formatting (such as indentation and line breaks) when it verifies if the pom is sorted or not.

Icon

Usage

The Sortpom plugin will reorder the pom elements and format the xml structure in the pom-file. The plugin can be configured to sort by by different standards or by custom format. By default a backup file will be created, so that you can check how the pom-file has changed.

Sortpom works best if it is run every time during Maven compilation. Configure it once and then forget about it. If you want to perform a simple test what the plugin does then open a command prompt in your project home and enter

mvn com.github.ekryd.sortpom:sortpom-maven-plugin:sort -Dsort.keepBlankLines -Dsort.predefinedSortOrder=custom_1

For a example how the plugin can be configured to run every time you build your project see recommended configuration wiki page

The plugin will not change how your Maven project is compiled (Exception)

News

  • 2021-03-18: Released version 2.14.0 that adds support for indentSchemaLocation to break apart the long project declaration line at the top of the pom #85
  • 2021-01-16: Released version 2.13.1 that adds support for sortExecutions (to sort executions) and verifyFailOn (to have the option of a strict verify goal) #81 #82
  • 2021-01-10: Moved build to CircleCI
  • 2020-07-02: Released version 2.12.0 that adds support to remove the space before self-closing xml tags. #75
  • 2020-02-29: John Patrick converted all JUnit tests to version 5. Thank you! #72 #73
  • 2020-02-24: Renewed Open Source Licence for Araxis Merge. Thank you Araxis!
  • 2020-02-03: Released version 2.11.0 that adds support to retain the file creation time of a sorted pom file. Thanks Christoph for your pull request! #68 #69
  • 2015-11-21: Released version 2.5.0. The plugin now uses Java 8, as some dependant plugins demand Java 8. Users of previous versions of Java will have to use version 2.4.0.
  • 2015-04-06: Released version 2.4.0 with new github location and updated libraries.
  • 2015-03-31: Moved the SortPom plugin to GitHub.

Versions

https://github.com/Ekryd/sortpom/wiki/Versions

Plugin parameters

https://github.com/Ekryd/sortpom/wiki/Parameters

Download

The plugin is hosted i Maven Central and will be downloaded automatically if you include it as a plugin in your pom file.

Donations

If you use it, then please consider some encouragement. ⭐️ Star it in GitHub!  

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].