Re: [M2] Requesting an example of a POM plugin entry for M2 plugin that allows the inclusion and exclusion of artifacts, and works

2005-08-16 Thread Andy Glick

On 8/15/05, Andy Glick [EMAIL PROTECTED] wrote:
 So far using M2 2.0-alpha-3, I have made many vain attempts to construct
 XML syntax that would successfully configure a plugin that accepts
 includes and excludes directives to ACTUALLY use the specifications.
 So far, not 1 has worked.

 I've found some example POMs in various repositories, but of course
 replicating their configuration doesn't work. :-)

 So, rather than list the ones that didn't work, I would like to request
 that someone write a fragment starting with an opening build tag thru
 a closing /build tag that will work for a plugin which accepts
 includes and excludes specifications.


At 04:39 PM 8/14/2005, Brett Porter wrote:

It appears it is not working, or that surefire doesn't honour them at
least. I know it used to, but am not sure when it regressed, and
haven't tested it beyond that one case.

Can you file a JIRA issue? (that way you can follow the fix).

Sorry if this has caused some inconvenience.

Here are my settings:
build
  plugins
plugin
  artifactIdmaven-surefire-plugin/artifactId
  configuration
excludes
  exclude implementation=java.lang.String**/AppTest.*/exclude
/excludes
  /configuration
/plugin
  /plugins
/build

Thanks,
Brett


Andy Glick wrote:

Can you file a JIRA issue? (that way you can follow the fix).


Done, MNG-739

In Jira Kenney Westerhof wrote:
 [ http://jira.codehaus.org/browse/MNG-739?page=all ]

Kenney Westerhof closed MNG-739:


Resolution: Cannot Reproduce

Added it0050 to check this.


I have checked out and executed it0050 (see POM fragment below) In my 
environment the tests are compiled but none are executed (see execution 
trace below). I am using m2 2.0-alpha-3 and surefire plugin 2.0-alpha-3. 
Brett and I each reported this problem. Kenney reports that it0050 worked 
for him. It does not work for me. Anybody have any sense about why the 
results might diverge?



  build
plugins
  plugin
artifactIdmaven-surefire-plugin/artifactId
configuration
  excludes
exclude implementation=java.lang.StringDontRunTest.*/exclude
  /excludes
  includes
include 
implementation=java.lang.StringNotIncludedByDefault.java/include

include implementation=java.lang.String*Test.java/include
  /includes
/configuration
  /plugin
/plugins
  /build
/project




F:\devel4\maven-2-trunk\maven-core-it\it0050m2 test
[INFO] 
-

---
[INFO] Building org.apache.maven.it:maven-it0050:jar:1.0-SNAPSHOT
[INFO] 
-

---
[INFO] [resources:resources]
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] [compiler:testCompile]
Compiling 3 source files to 
F:\devel4\maven-2-trunk\maven-core-it\it0050\target\

test-classes
[INFO] [surefire:test]
[INFO] Setting reports dir: 
F:\devel4\maven-2-trunk\maven-core-it\it0050\target/

surefire-reports

---
 T E S T S
---

Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0

[INFO] 
-

---
[INFO] BUILD SUCCESSFUL
[INFO] 
-

---
[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Aug 16 08:19:02 EDT 2005
[INFO] Final Memory: 2M/9M
[INFO] 
-

---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] Requesting an example of a POM plugin entry for M2 plugin that allows the inclusion and exclusion of artifacts, and works

2005-08-16 Thread Trygve Laugstøl
On Tue, Aug 16, 2005 at 08:31:53AM -0400, Andy Glick wrote:
 On 8/15/05, Andy Glick [EMAIL PROTECTED] wrote:
[snip]

 I have checked out and executed it0050 (see POM fragment below) In my 
 environment the tests are compiled but none are executed (see execution 
 trace below). I am using m2 2.0-alpha-3 and surefire plugin 2.0-alpha-3. 
 Brett and I each reported this problem. Kenney reports that it0050 worked 
 for him. It does not work for me. Anybody have any sense about why the 
 results might diverge?

One difference here is that you're using the last version of the plugin
while Kenney's test are testing the latest version. Can you try to build
Maven 2 from trunk and see if the problem persists?

[snip]

--
Trygve


signature.asc
Description: Digital signature


Re: [M2] Requesting an example of a POM plugin entry for M2 plugin that allows the inclusion and exclusion of artifacts, and works

2005-08-15 Thread Andy Glick

Brett Porter wrote:
- snip

Can you file a JIRA issue? (that way you can follow the fix).


Done, MNG-739


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] Requesting an example of a POM plugin entry for M2 plugin that allows the inclusion and exclusion of artifacts, and works

2005-08-14 Thread Brett Porter
It appears it is not working, or that surefire doesn't honour them at
least. I know it used to, but am not sure when it regressed, and
haven't tested it beyond that one case.

Can you file a JIRA issue? (that way you can follow the fix).

Sorry if this has caused some inconvenience.

Here are my settings:
build
  plugins
plugin
  artifactIdmaven-surefire-plugin/artifactId
  configuration
excludes
  exclude implementation=java.lang.String**/AppTest.*/exclude
/excludes
  /configuration
/plugin
  /plugins
/build

Thanks,
Brett

On 8/15/05, Andy Glick [EMAIL PROTECTED] wrote:
 So far using M2 2.0-alpha-3, I have made many vain attempts to construct
 XML syntax that would successfully configure a plugin that accepts
 includes and excludes directives to ACTUALLY use the specifications.
 So far, not 1 has worked.
 
 I've found some example POMs in various repositories, but of course
 replicating their configuration doesn't work. :-)
 
 So, rather than list the ones that didn't work, I would like to request
 that someone write a fragment starting with an opening build tag thru
 a closing /build tag that will work for a plugin which accepts
 includes and excludes specifications.
 
 If an example of this, that actually works already exists, and somehow I
 managed to miss it, as I have looked, I apologize for not being
 sagacious enough to find it, so please bear with me and reply with the URL.
 
 Thanks
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]