Re: Mojo properties inheritance

2010-01-08 Thread Dan Tran
if you own the mojos, you can get them to talk via project.getPluginContext() ( ie one can write something in a map and the other reads it ) native-maven-plugin source is a good example -Dan On Fri, Jan 8, 2010 at 4:45 PM, Wayne Fay wrote: >> it looks like it works if the two classes are ins

Re: Mojo properties inheritance

2010-01-08 Thread Wayne Fay
> it looks like it works if the two classes are inside the same project, > but not if B inherits from a class in another plugin... Extract the common functionality into its own project/jar and depend on that artifact from both plugins. You shouldn't be inheriting classes in other plugins due to th

Re: error using scm:accurev with the scm plugin

2010-01-08 Thread Stephen Connolly
not bad you've hit the same issues I saw Sent from my [rhymes with tryPod] ;-) On 8 Jan 2010, at 23:18, lwoggardner wrote: I have written a replacement accurev provider that works with continuum and the release plugin See http://jira.codehaus.org/browse/SCM-445 A number of the issues an

Re: error using scm:accurev with the scm plugin

2010-01-08 Thread lwoggardner
I have written a replacement accurev provider that works with continuum and the release plugin See http://jira.codehaus.org/browse/SCM-445 A number of the issues and how I worked around them are in the site documentation, which I've put up at http://lastweekend.com.au/projects/maven-scm-provide

Re: Mojo properties inheritance

2010-01-08 Thread Stefano Fornari
Hi Justin, it looks like it works if the two classes are inside the same project, but not if B inherits from a class in another plugin... It looks like a bug... or can anyone see any reason for it? Ste On Wed, Jan 6, 2010 at 10:25 PM, Justin Edelson wrote: > Are A and B in the same JAR file? If

Resource filtering difficulties.

2010-01-08 Thread Karel Vervaeke
I'm having difficulties with resource filtering In my pom I have: some path true ${basedir}/src/main/xpatch * org.apache.maven.plugins maven-resources-plugin \

Re: Disabling Surefire Reports for aggregator projects (i.e., with "pom" packaging)

2010-01-08 Thread Paul Benedict
Don't let your anguish go unresolved! Log a ticket in JIRA to put your request on someone's radar. Paul On Fri, Jan 8, 2010 at 9:45 AM, Jesse Farinacci wrote: > Hi Andreas, > > On Fri, Jan 8, 2010 at 10:09 AM, Andreas Sewe > wrote: >> >> How can I disable these non-sensical reports for aggregat

Re: Disabling Surefire Reports for aggregator projects (i.e., with "pom" packaging)

2010-01-08 Thread Jesse Farinacci
Hi Andreas, On Fri, Jan 8, 2010 at 10:09 AM, Andreas Sewe wrote: > > How can I disable these non-sensical reports for aggregator POMs while > still benefitting from inheritance? (I don't want to configure the plugin > manually in all my non-aggregator POMs.) > > Andreas Sewe > It would be best i

Maven ant tasks: Getting artefacts based on type

2010-01-08 Thread Richard Chamberlain
Hi, I'm using maven ant tasks as i'm doing a non-java build, but want to use the power of dependencies. I'm trying to get all the dependencies of type "zip" into a fileset. Here is the POM: 4.0.0 1.0-SNAPSHOT zip group

Disabling Surefire Reports for aggregator projects (i.e., with "pom" packaging)

2010-01-08 Thread Andreas Sewe
Hi all, I have configured the maven-surefire-report-plugin in my parent POM as follows: org.apache.maven.plugins maven-surefire-report-plugin 2.4.3 Now this POM is also an aggregator POM, i.e., its packaging is set to "pom". When I now generate a site for this project and its

Environment variables set by maven-surefire-plugin not available in test

2010-01-08 Thread Gert Vanthienen
L.S., We are trying to set an environment variable for a unit test by adding it to the maven-surefire-plugin configuration as in : org.apache.maven.plugins maven-surefire-plugin pertest ${port1} However,

The jxr-maven-plugin doesn't pick up additional source folders

2010-01-08 Thread sewe
Hi all, I am currently having trouble getting the jxr-maven-plugin to pick up additional (test) source folders, regardless of whether the are added by the build-helper-maven-plugin or the sourceRoot/testSourceRoot configuration elements of the exec-maven-plugin. FWIW, here's the plugin's configu

Re: Plugin configuration element is duplicating itself

2010-01-08 Thread Gajo Csaba
I've looked a bit deeper into the source code. The element is mapped by a Mapping class. This class has a setSources() method. This method is invoked by org.codehaus.plexus.component.configurator.converters.ComponentValueSetter with the method setValueUsingSetter(). Is there a bug in this comp

Re: What should be the correct check for any XML to be POM?

2010-01-08 Thread Jochen Wiedmann
Project and namespace Depending on the pom generator, you have no idea, whether the xmlns:xsi and xsi:schemaLocation are present or not. Jochen 2010/1/8 amaresh mourya : > Hi all, > I am need of writing a check method to filter POMs from a list of xml files. > What should be the exact check? >

Plugin configuration element is duplicating itself

2010-01-08 Thread Gajo Csaba
Hello, I'm using the rpm plugin for creating rpms. One project is divided into 3 rpms, so I have a configuration like ... ... There is 1 main configuration, and 2 separate ones in 2 executions. The main configuration contains a with a element. This is the only time thi

AW: What should be the correct check for any XML to be POM?

2010-01-08 Thread Entner Harald
Hi Amaresh, it is possible that in one directory more than one pom file exists. Even as far as i have used maven this case never occured. You can call mvn with the -f option in order to specify another pom.xml file. But keep in mind, that prior to version 2.0.9 (since 2.0.9 it is possible [1])

What should be the correct check for any XML to be POM?

2010-01-08 Thread amaresh mourya
Hi all, I am need of writing a check method to filter POMs from a list of xml files. What should be the exact check? Only the tag along with Namespace is sufficient or I need to check for all three xmlns, xmlns :xsi and xsi:schemaLocation? http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://w