Testing CXF with Autowiring using Spring
Here is how to create a test for a CXF web service implementation class. The test use spring-mock base classes and hereby support stuff like transactions and autowiring through annotations. Neat.
I have a base class like this:
import org.springframework.test.jpa.AbstractJpaTests;
public abstract class AbstractCxfWsBeanTest extends AbstractJpaTests {
public static final String[] SERVICE_CONFIG_LOCATION = new String[]{
[...]
June 20, 2010
Tags: cxf, Java, maven, spring, test Posted in: Programming
No Comments
Upgrade Maven POM Versions Recursively
More often than not, my projects end up as multi-module maven builds, with a top-level pom.xml in the trunk directory and sub pom.xml files in each module. For big projects, I even end up with more that two levels of POM inheritance. All this adds up to how many pom.xml files the project contains, and [...]
August 24, 2008
Tags: maven, pom Posted in: Tools
3 Comments
Israfil or Flex Mojos?
Want to compile flex code with maven? Don’t know which plugin to choose? Maybe this post will help you. Today, there are several available options for compiling flex with maven. On my list, I have these:
flex-mojos
israfil
servebox
Of the three, I have tried only the first two for real. I did take a look into the servebox [...]
July 15, 2008
Tags: flex-mojos, israfil, maven Posted in: Rich Internet Applications
3 Comments
Fast Flex Compilation With Maven: Israfil or Flex-mojos
In this post, I compare performance, measured in time taken to compile flex modules with maven, from two different maven flex plugins, israfil and flex-mojos.
The Contenders
If you compile flex projects from maven, you need a maven flex plugin. Targeting flex 3, there currently exists two plugins:
Flex-mojos
Israfil
The Problem: Time Taken to Compile
One problem with the “mxmlc” [...]
July 15, 2008
Tags: flex, flex-mojos, israfil, maven Posted in: Rich Internet Applications
9 Comments
Automatic MD5 File Generation for Maven Repository
If you have a local repository for your own, in-house developed, artifacts, you might also sometimes have the need to generate MD5 sum files for these, to avoid maven warnings when downloading. I know I have this need, when I put some artifact from the outside world into my local repository. The other day, I [...]
April 16, 2008
Tags: maven Posted in: Tools
2 Comments
5 Good Things Maven Brought To The Table
Maven is getting a good deal of backlash these times, latest from Tapestry God Howard and from Graeme Rocher the Grails God, but I have also not been holding back myself. We get so frustrated sometimes, when tools doesn’t feel right, while at the same time, we cannot do better ourselves! I thought I wanted [...]
January 31, 2008
Tags: Java, maven Posted in: Tools
4 Comments
Log4J Configuration Not Loading Properly With maven-surefire-plugin
Today, I had a strange problem with maven, the maven surefire plugin and log4j.xml configuration not really getting into the action. No matter what I did, I could not get log4j logging statements lower than WARN level to show on stdout. But only when the tests ran from maven surefire! If I executed them directly [...]
January 24, 2008
Tags: Java, log4j, maven Posted in: Tools
No Comments
