Re: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-08-02 Thread Kristian Rosenvold
The ability to run multiple providers within a single execution is a fairly new feature, and I'm not surprised that works as expected. There are hundreds of blog posts out there that explain how to run testng/junit using multiple executions of surefire, which was the best available method at the t

AW: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Bernd.Vogt
Sadly, this doesn't work for my case. I have several components with exactly the same role and hint, e.g. role=IFooListener.class, hint="default". Using lookupMap returns a map which maps hint to role... so, I get a map that contains only the first component plexus finds. Currently, I'm looking

Re: POM reader that preserves CDATA?

2011-08-02 Thread Igor Fedorenko
Just to confirm what Jason said. The code in question is [1] and from our testing, decentxml provides perfect read-write roundtrip without loosing any formatting anywhere in the document, including cdata, comments, whitespaces, etc, and with no special effort on our part. [1] https://github.com/

Re: POM reader that preserves CDATA?

2011-08-02 Thread Daniel Kulp
You could TRY feeding the pom schema into JAXB to generate JAXB objects from it. From there, using a JAXBContext, you can call context.createBinder and then use that to unmarshall the XML DOM into JAXB objects. You can then manipulate the JAXB objects and then have it update the XML after wo

Re: POM reader that preserves CDATA?

2011-08-02 Thread Jason van Zyl
We use decentxml in some tycho tools for bumping versions and it works well. On Aug 2, 2011, at 7:49 PM, Jesse Glick wrote: > On 08/02/2011 06:00 PM, John Casey wrote: >> Anyone maybe have an advanced POM reader/writer stashed somewhere that can >> preserve CDATA and the like? > > http://code.g

Re: POM reader that preserves CDATA?

2011-08-02 Thread Jesse Glick
On 08/02/2011 06:00 PM, John Casey wrote: Anyone maybe have an advanced POM reader/writer stashed somewhere that can preserve CDATA and the like? http://code.google.com/p/decentxml/source/browse/trunk/src/test/java/de/pdark/decentxml/MavenSNR.java is said to. ---

Re: More POM5 writing

2011-08-02 Thread Jesse Glick
On 08/02/2011 08:39 AM, Jason van Zyl wrote: The schema is being generated from the Modello model so if you see things that are incorrect... For the record, XsdGenerator.java explains: // Usually, would only do this if the field is not "required", but due to inheritance, it may be // present

Re: More POM5 writing

2011-08-02 Thread Jesse Glick
On 08/02/2011 08:52 AM, Benson Margulies wrote: Adding explicit elements next to xs:any is a far more user-friendly extensibility mechanism than creating a hodgepodge of namespaces and prefixes. Agreed. But if ease of hand editing trumps validation and other tool support, do you really want to

Re: POM reader that preserves CDATA?

2011-08-02 Thread Stephen Connolly
versions-maven-plugin tackles this head-on. one of these days i'll get some time to finish xevpp.codehaus.org - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 2 Aug 2011 23:

Re: POM reader that preserves CDATA?

2011-08-02 Thread Mark Struberg
Don't we need this for the maven-release-manager anyway once we start adding arbitrary stuff? LieGrue, strub --- On Tue, 8/2/11, John Casey wrote: > From: John Casey > Subject: Re: POM reader that preserves CDATA? > To: "Maven Developers List" > Date: Tuesday, August 2, 2011, 10:22 PM > >

Re: POM reader that preserves CDATA?

2011-08-02 Thread John Casey
On 8/2/11 6:10 PM, Benson Margulies wrote: In general, you really can't expect to retain CDATA unless you build a DOM tree, and maybe not then. It's a fundamental principle of XML that CDATA isn't part of 'the infoset' -- the data that is represented by the file. A parser is under no obligation

Re: POM reader that preserves CDATA?

2011-08-02 Thread Benson Margulies
In general, you really can't expect to retain CDATA unless you build a DOM tree, and maybe not then. It's a fundamental principle of XML that CDATA isn't part of 'the infoset' -- the data that is represented by the file. A parser is under no obligation to faithfully report this stuff, so long as th

POM reader that preserves CDATA?

2011-08-02 Thread John Casey
Hi all, I'm working on some tooling for $dayjob that needs to manipulate POM files according to certain rules. The problem I'm running into is that some of the POMs it much manipulate contain CDATA sections, comments, etc. Also, since the modified POM often will be used as the basis for a pa

[RESULT] [VOTE] Release Maven Site Plugin version 3.0 and Maven Reporting Exec version 1.0.1

2011-08-02 Thread Dennis Lundberg
Hi, The vote has passed with the following result : +1 (binding): Hervé Boutemy, Mark Struberg, Olivier Lamy, Vincent Siveton, Dennis Lundberg +1 (non binding): Lukas Theussl +0 (non binding): Benson Margulies I will promote the artifacts to the central repo. On 2011-07-30 17:03, Dennis Lundber

Re: [VOTE] Release Maven Site Plugin version 3.0 and Maven Reporting Exec version 1.0.1

2011-08-02 Thread Dennis Lundberg
+1 from me On 2011-07-30 17:03, Dennis Lundberg wrote: > Hi, > > We solved 46+1 issues: > http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11146&styleName=Html&version=16829 > http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11761&styleName=Html&version=17501 > > There are st

RE: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-08-02 Thread Martin Gainty
org.testng.xml.XmlSuite.setParallel(Z)Vparameter is string and returns void go here http://testng.org/doc/download.html and get the 6.1.1 testng /* Note this method in XMLSuite */ /** * Sets the parallel mode * @param parallel the parallel mode */ public void setParallel(String para

Re: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-08-02 Thread Larry Shatzer, Jr.
One last update. If I remove the sections that tell Surefire to run both TestNG and Junit, and put dependencies on the Surefire Plugin like so: org.apache.maven.surefire surefire-junit4 ${surefire.version} o

Re: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Hervé BOUTEMY
I recently used lookupMap API [1] to detect which wagon providers was available in m-site-p 3.0 It worked like a charm Regards, Hervé [1] http://plexus.codehaus.org/plexus-containers/plexus-container- default/apidocs/org/codehaus/plexus/PlexusContainer.html#lookupMap(java.lang.Class) Le mardi

Re: Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-08-02 Thread Larry Shatzer, Jr.
On Mon, Aug 1, 2011 at 9:56 AM, Larry Shatzer, Jr. wrote: > I want to run with both JUnit and TestNG. By removing JUnit (and the > tests that JUnit run), it ran just fine, as do the inverse, just JUnit > and no TestNG. It is the combination of both of them. > > To help, instead of having gists, I

Re: surefire-api not relocating the classes of commons-lang though it's in m-shade-p config

2011-08-02 Thread Kasun Gajasinghe
On Tue, Aug 2, 2011 at 7:52 PM, Kristian Rosenvold wrote: > It's not used and obsolete as of now. This may change in the future. > Ok, thanks... --Kasun > Kristian > > Den 2. aug. 2011 kl. 16:16 skrev Kasun Gajasinghe : > >> Hi, >> I was recently looking at surefire-api-2.9.jar for my work. Acc

Re: surefire-api not relocating the classes of commons-lang though it's in m-shade-p config

2011-08-02 Thread Kristian Rosenvold
It's not used and obsolete as of now. This may change in the future. Kristian Den 2. aug. 2011 kl. 16:16 skrev Kasun Gajasinghe : > Hi, > I was recently looking at surefire-api-2.9.jar for my work. According > to the pom, it uses m-shade-p to shade two artifacts > org.codehaus.plexus:plexus-util

surefire-api not relocating the classes of commons-lang though it's in m-shade-p config

2011-08-02 Thread Kasun Gajasinghe
Hi, I was recently looking at surefire-api-2.9.jar for my work. According to the pom, it uses m-shade-p to shade two artifacts org.codehaus.plexus:plexus-utils and commons-lang:commons-lang with their relocations clearly specified. But I don't see the shaded classes for commons-lang in the generat

Re: More POM5 writing

2011-08-02 Thread Arnaud Héritier
I let you see that with Jason but I think he had some motivations he explained few months ago. (Yes without modello, plexus, aether, sisu, Apache Maven is an empty shell but it is like this for years as many of these projects were hosted previously on codehaus and now are on Github or Eclipse ...)

AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Bernd.Vogt
> BTW, which environment are you running in? Maven 3.0.3 :-) Currently, I'm developing a Maven Core extension (see apache-maven-3.0.3/lib/ext/README.txt) that extends Maven with an extensible generator framework that is intended to generate Maven poms and other artifacts for non-Maven projects be

Re: More POM5 writing

2011-08-02 Thread Mark Struberg
that's bad news. Why not pull them back? codehaus has a nice git hosting service too... I don't like to get another area of troubles... LieGrue, strub --- On Tue, 8/2/11, Arnaud Héritier wrote: > From: Arnaud Héritier > Subject: Re: More POM5 writing > To: "Maven Developers List" > Date: Tue

Re: More POM5 writing

2011-08-02 Thread Arnaud Héritier
No Jason moved it some months ago with plexus(*) to sonatype github account I think that codehaus SCM is closed (RO) for these projects. Arnaud On Tue, Aug 2, 2011 at 2:50 PM, Mark Struberg wrote: > Just wondering about the sonatype github URL. Isn't modello still a > codehaus project? > > LieG

Re: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Stuart McCulloch
On 2 Aug 2011, at 13:33, wrote: >> It might be a safe route to use JSR-330 only, but it's still not > guaranteed. > > Currently, I'm trying to figure out how I can use (and possibly mix up) > sisu-plexus with plain JSR-330 components.. any hints? > > The thing is, that the IoC container of the

Re: More POM5 writing

2011-08-02 Thread Benson Margulies
Jesse, I don't agree with your analysis. My view is as follows: 1) POM5 should have strategically located xs:any and xs:anyAttribute elements that give tools fair warning of future extensions. I wish POM4 had them, but such is life. As things are, the community seems in general to be comfortable

Re: More POM5 writing

2011-08-02 Thread Mark Struberg
Just wondering about the sonatype github URL. Isn't modello still a codehaus project? LieGrue, strub --- On Tue, 8/2/11, Jason van Zyl wrote: > From: Jason van Zyl > Subject: Re: More POM5 writing > To: "Maven Developers List" > Date: Tuesday, August 2, 2011, 12:39 PM > > On Aug 2, 2011, at

Re: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Mark Struberg
The problem is imo that JSR-330 (as opposed to JSR-299 which is a superset) only specifies the basic syntax (not even the mechanism) for the 'injection' part. But it does specify nothing about how the things going to be injected should be created/provided, etc. The safest route would indeed sti

Re: Upgrading maven-checkstyle-plugin checkstyle version support

2011-08-02 Thread Grégory Joseph
Stephen, That won't work, because checkstyle changed its groupId from "checkstyle" to "com.puppycrawl.tools" since 5.2, so afaik we're stuck until m-checkstyle-p 2.7 is released (unless you can exclude "top level" dependencies from a plugin, but I wouldn't know how). Olivier Lamy mentioned in ano

Re: More POM5 writing

2011-08-02 Thread Jason van Zyl
On Aug 2, 2011, at 8:00 AM, Jesse Glick wrote: > Worse, Maven seems to have a different idea of what valid content is than the > schema says. For example, the schema says minOccurs="0" ...> but Maven will report "'modelVersion' is missing." as a > fatal error. Certainly there will be some sema

AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Bernd.Vogt
> It might be a safe route to use JSR-330 only, but it's still not guaranteed. Currently, I'm trying to figure out how I can use (and possibly mix up) sisu-plexus with plain JSR-330 components.. any hints? The thing is, that the IoC container of the environment I'm running in is sisu-plexus and I

[ANN] Maven Release Plugin 2.2.1 Released

2011-08-02 Thread Stephen Connolly
The Maven team is pleased to announce the release of the Maven Release Plugin, version 2.2.1. This plugin is used to release a project with Maven, saving a lot of repetitive, manual work. Releasing a project is made in two steps: prepare and perform. http://maven.apache.org/plugins/maven-release-

Re: More POM5 writing

2011-08-02 Thread Jesse Glick
On 07/31/2011 05:12 PM, Benson Margulies wrote: https://cwiki.apache.org/confluence/display/MAVEN/Moving+forward+with+the+POM+data+model "It would [...] be a bad idea to try to use namespaces as a versioning technique." - if you want to allow Schema validation of the entire POM, I think you hav

Re: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Mark Struberg
It might be possible, but I would not suggest this as it's an implementation detail. It might be a safe route to use JSR-330 only, but its still not guaranteed. LieGrue, strub --- On Tue, 8/2/11, Tamás Cservenák wrote: > From: Tamás Cservenák > Subject: Re: PlexusContainer#lookupList(role)

Re: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Tamás Cservenák
Inline. On Tue, Aug 2, 2011 at 12:05 PM, wrote: >> In plexus role+hint forms a "composite key". In your case, you had a >> component conflict, and Plexus stashed one component over another >> (it's undefined which "wins", but probably depends on classpath >> ordering or so). > > Sure, I expected

AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Bernd.Vogt
I'm using the SISU-plexus-shim (sisu-inject-plexus-2.1.1). > In plexus role+hint forms a "composite key". In your case, you had a > component conflict, and Plexus stashed one component over another > (it's undefined which "wins", but probably depends on classpath > ordering or so). Sure, I expect

Re: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Tamás Cservenák
In plexus role+hint forms a "composite key". In your case, you had a component conflict, and Plexus stashed one component over another (it's undefined which "wins", but probably depends on classpath ordering or so). If you want Plexus to manage them as two distinct components, you have to make them

PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Bernd.Vogt
Hello Everybody, I just noticed that PlexusContainer#lookupList(role) will only return a list with one component even there are two components available for the role. After playing around I figured out that the method returns a list with both components when I use different hints in my component d

[RESULT] [VOTE] Release Maven Release plugin version 2.2.1

2011-08-02 Thread Stephen Connolly
Hi, The vote has passed with the following result: +1 (binding): Stephen Connolly, John Casey, Mark Struberg +1 (non-binding): Lukas Theussl, Mark Derricutt, Baptiste Mathus I will promote the artifacts to the central repo. -Stephen On 28 July 2011 15:56, Stephen Connolly wrote: > Hi, > > Thi

Re: [VOTE] Release Maven Release plugin version 2.2.1

2011-08-02 Thread Stephen Connolly
+1 from me bringing us to 3 binding votes On 28 July 2011 15:56, Stephen Connolly wrote: > Hi, > > This is a patch release to fix a particularly nasty regression: > http://jira.codehaus.org/browse/MRELEASE-697 > > We solved 3 issues: > http://jira.codehaus.org/secure/ReleaseNote.jspa?projectI