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>
<artifactId>maven-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>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude implementation="java.lang.String">DontRunTest.*</exclude>
</excludes>
<includes>
<include
implementation="java.lang.String">NotIncludedByDefault.java</include>
<include implementation="java.lang.String">*Test.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</project>
F:\devel4\maven-2-trunk\maven-core-it\it0050>m2 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]