Re: Running tests from a maven test-jar

2012-08-11 Thread Stephen Connolly
Surefire does not currently run tests in test-jar dependencies. The best option for now is to use dependency:unpack-dependencies and build-helper:attach-test-classes On Friday, 10 August 2012, Ansgar Konermann wrote: You could try this: configure m-surefire-p and replace the default, ant-style

[ANN] Maven Surefire Plugin 2.12.2 (And 2.12.1) Released

2012-08-11 Thread Kristian Rosenvold
The Maven team is pleased to announce the release of the Maven Surefire Plugin, version 2.12.2. The release announcement for 2.12.1 seems to have bounced, so it is included in this mail too. This release includes the maven-surefire-plugin, which executes the unit tests of an application, the

Re: Running tests from a maven test-jar

2012-08-11 Thread Billy Newman
Perfect that will work just fine. Thanks! Sent from my iPhone On Aug 11, 2012, at 5:49 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Surefire does not currently run tests in test-jar dependencies. The best option for now is to use dependency:unpack-dependencies and

Re: maven-jar-plugin refuses to include META-INF/persistence.xml ! - Problem solved

2012-08-11 Thread Tommy Svensson
I finally found the source of this problem! Or close to it at least. I have managed to get my META-INF/persistence.xml included in the jar, but I'm unsure what is to blame :-). I'm also using the Apache Felix bundle-plugin which allows for: packagingbundle/packaging This due to the

RE: Running tests from a maven test-jar

2012-08-11 Thread Martin Gainty
Bill 2 quick questions: 1)are your tests located in src/test/java folder? 2)is each Testcase declared public and does each TestCase extend junit.framework.TestCase? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

RE: maven-jar-plugin refuses to include META-INF/persistence.xml ! - Problem solved

2012-08-11 Thread Martin Gainty
http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html I didnt see your Export-Package Private-Package Bundle-Activator At execution time you will need to config the maven-bundle-plugin with configuration instructions such as what is here: build plugins plugin

Re: maven-jar-plugin refuses to include META-INF/persistence.xml ! - Problem solved

2012-08-11 Thread Wayne Fay
I'm also using the Apache Felix bundle-plugin which allows for: packagingbundle/packaging This is not a packaging delivered by Apache Maven. Thus you can blame whoever is making this packaging available to you. That is, I can use either or of bundle or jar for packaging. However when

Re: maven-jar-plugin refuses to include META-INF/persistence.xml ! - Problem solved

2012-08-11 Thread Stuart McCulloch
On 12 Aug 2012, at 03:54, Wayne Fay wayne...@gmail.com wrote: I'm also using the Apache Felix bundle-plugin which allows for: packagingbundle/packaging This is not a packaging delivered by Apache Maven. Thus you can blame whoever is making this packaging available to you. That

Re: maven-jar-plugin refuses to include META-INF/persistence.xml ! - Problem solved

2012-08-11 Thread Wayne Fay
Most likely the bundle packaging does not include META-INF for some reason. I would talk to the Apache Felix people about this issue so they can resolve it in their code. This is working as designed, as covered in the FAQ: Thanks Stuart. This is a good thing to keep in mind for when future