Maven automatic build versioning and Git against Subversion

If you use Git locally against a Subversion repository you might run into problems if your project is set up to generate automatic build numbers through the buildnumber-maven-plugin, since the plugin might be setup to get the build numbers from Subversion. Through some use of additional profiles you can work around this.

Continue Reading Maven automatic build versioning and Git against Subversion

Executable .jar, with onejar-maven-plugin

Onejar-maven-plugin collects your application including dependencies, into one executable jar. It's both easy and works well! (UPDATED for version 1.3.0. See below.) It lets all your dependency jars stay jars, and your code is in its own jar. All of those jars are put in a bigger jar, which is made executable.

Configuration

It may sound weird, but it's quite elegant! Just put this in your pom.xml's <plugins> tag to make it work:[...]

Continue Reading Executable .jar, with onejar-maven-plugin

End of content

No more pages to load