[m2] Properties in the POM

2006-03-08 Thread Giles, Nick
Is there any mechanism for loading properties into the POM from a file, in the style of an Ant property file=foo.properties / declaration? I know M2 tries to keep everything in the one file, but the particular issue I'm coming up against is wanting to define the project version based on a

RE: pmd : how to use custom ruleset ?

2006-02-22 Thread Giles, Nick
I have the same problem, and it's a bug in the core grammar of PMD (http://sourceforge.net/tracker/index.php?func=detailaid=1339470group_id=56262atid=479921). It doesn't look like it's getting fixed any time soon, but there's a patch at http://jira.codehaus.org/browse/MPMD-16 that works with

RE: [M2] How to only delete .class files ?

2006-02-02 Thread Giles, Nick
I'd use an ant task like the following: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idDelete the class files/id phasegenerate-sources/phase configuration

Eclipse libraries as Maven 2 dependencies

2006-01-31 Thread Giles, Nick
Now, I may just be going blind, but I can't find up to date Eclipse components on Ibiblio. If my Maven project depends on the SWT widgets, or Jface, or any other component, is there an alternative to creating my own objects? I found Eclipse 2.1.0 versions in http://www.ibiblio.org/maven2/eclipse/,

[m2] Antrun / Javac

2005-12-23 Thread Giles, Nick
I'm having distinct problems with the Antrun plugin for Maven2, specifically with the inheritance of properties and environment variables. With a simple test where the pom.xml calls a build.xml, which then uses javac, Ant complains about not being able to find com.sun.tools.javac.Main on the

RE: [m2] Antrun / Javac

2005-12-23 Thread Giles, Nick
/tools.jar/systemPath /dependency /dependencies /plugin -Original Message- From: Giles, Nick [mailto:[EMAIL PROTECTED] Sent: 23 December 2005 11:51 To: users@maven.apache.org Subject: [m2] Antrun / Javac I'm having distinct problems with the Antrun plugin for Maven2

[m2] Automatic links to source xref

2005-12-16 Thread Giles, Nick
In Maven 1 several plugins used to automatically link to the generated source pages, plugins like PMD or Checkstyle, possibly even the unit test plugin, I'm a little hazy. So far, I can't find a way of enabling this for any of those three plugins. Does anyone know if this is currently possible, a

[m2] Checkstyle reports

2005-12-14 Thread Giles, Nick
I've been trying to get Checkstyle to produce a report for a while now, and it doesn't seem to want to work. I've noticed a couple of similar unresolved problems on this list, but I'll add all the detail I can, and I'm happy to experiment and patch code. I started off with the release version of

RE: [m2] Checkstyle reports

2005-12-14 Thread Giles, Nick
You're right there, checkstyle will run successfully when invoked as 'mvn checkstyle:checkstyle', and produces a report, but it's not integrated into the rest of the site. I guess I can hack it for now with some external links into it, maybe do a bit of post-processing, but I'd still like to fix

[m2] Checkstyle severity attribute problem

2005-12-14 Thread Giles, Nick
When I provide the Checkstyle plugin with a customised config file, it causes it to crash unpleasantly when generating the report. It appears that this is due to calling the 'remove' method on Arrays$ArrayList, which doesn't implement the method. The call is actually removing the 'severity'

RE: [m2] Checkstyle reports

2005-12-14 Thread Giles, Nick
-Original Message- From: Giles, Nick [mailto:[EMAIL PROTECTED] Sent: 14 December 2005 12:54 To: Maven Users List Subject: RE: [m2] Checkstyle reports You're right there, checkstyle will run successfully when invoked as 'mvn checkstyle:checkstyle', and produces a report, but it's not integrated