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’. [...]
Create ‘native’ Java applications on OS X and Windows using Maven plugins
August 15th, 2011 by Tobias Södergren — Java, Tips & Tricks
Tags: desktop, Java, maven, native
Developing Minecraft Plugins
May 22nd, 2011 by Jan Kronquist — Java
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 [...]
The state of iOS Open Source – and what to do about it!
May 16th, 2011 by Fredrik Olsson — Architecture, Cocoa, Tips & Tricks
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: frameworks, iphone, maven, mobile, objective-c, open source
Maven, FindBugs and Dashboard Reports
January 29th, 2010 by Davor Crnomat — Java, Testing, Tips & Tricks
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.
Maven, the new Elephant on the Block
January 23rd, 2010 by Anders Janmyr — Uncategorized
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: build systems, buildr, maven, maven2, rake, tools
One artifact with multiple configurations in Maven
January 21st, 2010 by Henrik Larne — Java, Tips & Tricks
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: maven, open source, programming, tools
Load-time weaving, Spring and Maven.
December 15th, 2009 by Mattias Ask — Java, Tips & Tricks
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: frameworks, javaagent, load-time weaving, ltw, maven, spring
Maven automatic build versioning and Git against Subversion
June 4th, 2009 by Erik Ogenvik — Tips & Tricks
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: git, maven, programming, subversion, tools, version controlling
Executable .jar, with onejar-maven-plugin
March 22nd, 2009 by Hugo Josefson — Java, Tips & Tricks
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: assembly, executable, jar, maven, onejar, open source, programming, tools
Mavenizing the Liferay Plugin SDK
March 14th, 2009 by Henrik Bernström — Java, User Experience
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: archetype, artifact, liferay, maven, maven2, open source, plugin, portlet, sdk, tools, web
Executable .war with winstone-maven-plugin
November 28th, 2008 by Hugo Josefson — Java, Tips & Tricks
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: executable, maven, programming, war, web
