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.
Tags: maven, tools
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 to [...]
Tags: build systems, buildr, maven, maven2, rake, tools
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 kind [...]
Tags: maven, open source, programming, tools
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
June 4th, 2009 by Erik Hjortsberg — 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
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
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 is [...]
Tags: archetype, artifact, liferay, maven, maven2, open source, plugin, portlet, sdk, tools, web
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>
[...]
Tags: executable, maven, programming, war, web