Maven and Centipede Challenge.
I'd like to place a little challenge out there to the fans of Maven and Centipede. Show me (in code/script/config files) how I would pass a system property to a JUnit test without modifying the Maven or Centipede distributions or effectively rewriting inbuilt plugins.
[The Occasional Blogger]
It looks like someone's sorted this issue out for you mid sepember. The trick is to define a variable called maven.junit.sysproperties to contain the names of the system properties you want to use in your unit tests. So adding something like this to your maven.xml should do the trick
<j:set var="foo" value="abc"/>
<j:set var="bar" value="123"/>
<!-- define the system property names to be passed into junit -->
<j:set var="maven.junit.sysproperties">foo bar</j:set>
There was another good post on Maven from Fabian...
Maven's great and Ant sucks in a way. [gru's logic]
I hear you and Maven still has some ways to go, particularly in the documentation and support for complex builds and J2EE stuff. Though do remember, its still in beta.