Create ‘native’ Java applications on OS X and Windows using Maven plugins

Tobias Södergren

When building a desktop application, the target audience usually expects an executable to when launching it. If the application is written in Java you have the options to create a batch file to launch it, create an executable jar file, compile the application as a native application or wrap the application using a native ‘launcher’. [...]

Tags: , , ,

Developing Minecraft Plugins

Jan Kronquist

Minecraft is the most interesting gaming concept I’ve seen in many years. It is sort of a digital equivalent of Lego and allows people to build and experience amazing worlds. With well over 2 million copies sold and 1.2 million YouTube videos you quickly realize that people like this kind of game. Using just the [...]

Tags: , ,

The state of iOS Open Source – and what to do about it!

Fredrik Olsson

There is a vibrant community of open source projects for iOS. You need a calendar UI components or a JSON parser? No problem, the projects are out there. Most code out there is of very high quality. Unfortunately the distribution of the code is generally very crude, barely half a step away from sharing code [...]

Tags: , , , , ,

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

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

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 Ogenvik

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

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> <artifactId>winstone-maven-plugin</artifactId> <executions> <execution> [...]

Tags: , , , ,