Tools for Renaming the Package of a Dependency with Maven
Join the DZone community and get the full member experience.
Join For FreeIf you need to rename the Java package of a 3rd party library, e.g. to include it directly in your project while avoiding possible conflicts, you can use one of the following Maven plugins (and they may be more) in the package lifecycle phase:
- Uberize plugin (latest – org.fusesource.mvnplugins:maven-uberize-plugin:1.20) – originally inspired by the Shade plugin, intended to overcome some of its limitations. Intended primarily to merge your code and dependencies into one jar.
- Shade plugin
- package-rename-task, Ant-based Maven plugin – I’m not sure whether this is further maintained
From http://theholyjava.wordpress.com/2011/10/06/tools-for-renaming-the-package-of-a-dependency-with-maven/
Apache Maven
Dependency
Opinions expressed by DZone contributors are their own.
Comments