~ubuntu-branches/ubuntu/precise/surefire/precise

« back to all changes in this revision

Viewing changes to surefire-integration-tests/src/test/resources/includes-excludes/pom.xml

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2011-10-10 20:42:16 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20111010204216-cemva69wkagf4fay
Tags: 2.10-1
* Team upload.
* New upstream release.
* Refresh and remove unneccesary patches.
* Add Build-Depends on libsurefire-java and
  libmaven-common-artifact-filters-java.
* Drop outdated Maven artifact surefire-junit.
* Provide new Maven artifacts: surefire-junit3, maven-surefire-common,
  common-junit3, common-junit4, surefire-junit47 and surefire-testng-utils.
* Fix clean target to allow "two in a row" builds.
* Update Vcs-Browser field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
 
 
3
<!--
 
4
Licensed to the Apache Software Foundation (ASF) under one
 
5
or more contributor license agreements.  See the NOTICE file
 
6
distributed with this work for additional information
 
7
regarding copyright ownership.  The ASF licenses this file
 
8
to you under the Apache License, Version 2.0 (the
 
9
"License"); you may not use this file except in compliance
 
10
with the License.  You may obtain a copy of the License at
 
11
 
 
12
  http://www.apache.org/licenses/LICENSE-2.0
 
13
 
 
14
Unless required by applicable law or agreed to in writing,
 
15
software distributed under the License is distributed on an
 
16
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
17
KIND, either express or implied.  See the License for the
 
18
specific language governing permissions and limitations
 
19
under the License.
 
20
-->
 
21
 
 
22
<project>
 
23
  <modelVersion>4.0.0</modelVersion>
 
24
 
 
25
  <groupId>org.apache.maven.plugins.surefire</groupId>
 
26
  <artifactId>maven-it-includes-excludes</artifactId>
 
27
  <version>1.0-SNAPSHOT</version>
 
28
 
 
29
  <name>Maven Integration Test :: includes-excludes</name>
 
30
  <description>Test surefire inclusion/exclusions</description>
 
31
 
 
32
  <dependencies>
 
33
    <dependency>
 
34
      <artifactId>junit</artifactId>
 
35
      <groupId>junit</groupId>
 
36
      <version>3.8.2</version>
 
37
      <scope>test</scope>
 
38
    </dependency>
 
39
  </dependencies>
 
40
 
 
41
  <build>
 
42
    <pluginManagement>
 
43
      <plugins>
 
44
        <plugin>
 
45
          <artifactId>maven-surefire-plugin</artifactId>
 
46
          <version>${surefire.version}</version>
 
47
        </plugin>
 
48
      </plugins>
 
49
    </pluginManagement>
 
50
  </build>
 
51
  <profiles>
 
52
    <profile>
 
53
      <id>simple</id>
 
54
      <build>
 
55
        <plugins>
 
56
          <plugin>
 
57
            <artifactId>maven-surefire-plugin</artifactId>
 
58
            <configuration>
 
59
              <excludes>
 
60
                <exclude>**/DontRunTest.*</exclude>
 
61
              </excludes>
 
62
              <includes>
 
63
                <include>**/NotIncludedByDefault.java</include>
 
64
                <include>**/*Test.java</include>
 
65
              </includes>
 
66
            </configuration>
 
67
          </plugin>
 
68
        </plugins>
 
69
      </build>
 
70
    </profile>
 
71
    <profile>
 
72
      <id>regex</id>
 
73
      <build>
 
74
        <plugins>
 
75
          <plugin>
 
76
            <artifactId>maven-surefire-plugin</artifactId>
 
77
            <configuration>
 
78
              <excludes>
 
79
                <exclude>**/DontRunTest.*</exclude>
 
80
              </excludes>
 
81
              <includes>
 
82
                <include>%regex[.*Test.*|.*Not.*]</include>
 
83
              </includes>
 
84
            </configuration>
 
85
          </plugin>
 
86
        </plugins>
 
87
      </build>
 
88
    </profile>
 
89
    <profile>
 
90
      <id>path</id>
 
91
      <build>
 
92
        <plugins>
 
93
          <plugin>
 
94
            <artifactId>maven-surefire-plugin</artifactId>
 
95
            <configuration>
 
96
              <excludes>
 
97
                <exclude>**/DontRunTest.java</exclude>
 
98
              </excludes>
 
99
              <includes>
 
100
                <include>*/test/*</include>
 
101
              </includes>
 
102
            </configuration>
 
103
          </plugin>
 
104
        </plugins>
 
105
      </build>
 
106
    </profile>
 
107
 
 
108
  </profiles>
 
109
</project>