Maven, FindBugs and Dashboard Reports

Davor Crnomat

There are a few simple steps to get nice graphic presentations of FindBugs results using Maven.

First, to enable FindBugs reporting in Maven, just add report section to your pom files, something like example below, but of course, you can do your own configuration.

Tags: ,

Maven, the new Elephant on the Block

Anders Janmyr

Some of you may remember the article, by Bruce Tate, Don’t Make Me Eat the Elephant Again.
It was an article about EJB, and Bruce was begging Sun not to make the same mistakes with EJB3 as they had done with EJB, and EJB2. They didn’t, Spring came along as better alternative and forced EJB3 to [...]

Tags: , , , , ,

One artifact with multiple configurations in Maven

Henrik Larne

Problem
When working on www.beertoplist.com I ran into a Maven problem, that is fairly common: Having a project that should be configured differently for different environments. That is for instance you want one configuration for development, one for test and one for production. I wanted a solution that allowed me to make changes to all kind [...]

Tags: , , ,

Load-time weaving, Spring and Maven.

Mattias Ask

As some of you might have read in my earlier post, I’m using load-time weaving in the project that I’m working on. Lately I’ve run in to some problems with getting the tests to play nice with Maven.
So what was the problem? Well, I’ve been using @Configurable and @Autowired to inject stuff in my [...]

Tags: , , , , ,

Maven automatic build versioning and Git against Subversion

Erik Hjortsberg

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.

Tags: , , , , ,

Executable .jar, with onejar-maven-plugin

Hugo Josefson

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:[...]

Tags: , , , , , , ,

Mavenizing the Liferay Plugin SDK

Henrik Bernström

Liferay is the leading Open Source enterprise portal platform in the Java market. It’s certainly an impressive piece of software. I’ve been following it for some time now and the product is improving a great deal in many areas, perhaps most in end user usability.
One area that, in my opinion, could still be improved is [...]

Tags: , , , , , , , , , ,

Executable .war with winstone-maven-plugin

Hugo Josefson

You don’t need to install Tomcat, JBoss or any other web server in order to run a Java web application (.war file)!
If your project is configured with a Maven pom.xml and the module has <packaging>war</packaging>, you can just add this little piece of XML inside the pom’s <plugins> tag:
<plugin>
<groupId>net.sf.alchim</groupId>
[...]

Tags: , , , ,