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: One thing here: cxf.xml is loaded from classpath by the test code, but it resides in src/main/webapp/WEB-INF [...]

June 20, 2010 · polesen · No Comments
Tags: , , , ,  Â· Posted in: Programming

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 · polesen · 3 Comments
Tags: ,  Â· Posted in: Tools

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

July 15, 2008 · polesen · 3 Comments
Tags: , ,  Â· Posted in: Rich Internet Applications

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

July 15, 2008 · polesen · 11 Comments
Tags: , , ,  Â· Posted in: Rich Internet Applications

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 · polesen · 2 Comments
Tags:  Â· Posted in: Tools

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 · polesen · 4 Comments
Tags: ,  Â· Posted in: Tools

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 · polesen · No Comments
Tags: , ,  Â· Posted in: Tools