1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  ~ Licensed to the Apache Software Foundation (ASF) under one
4  ~ or more contributor license agreements.  See the NOTICE file
5  ~ distributed with this work for additional information
6  ~ regarding copyright ownership.  The ASF licenses this file
7  ~ to you under the Apache License, Version 2.0 (the
8  ~ "License"); you may not use this file except in compliance
9  ~ with the License.  You may obtain a copy of the License at
10  ~
11  ~     http://www.apache.org/licenses/LICENSE-2.0
12  ~
13  ~ Unless required by applicable law or agreed to in writing,
14  ~ software distributed under the License is distributed on an
15  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  ~ KIND, either express or implied.  See the License for the
17  ~ specific language governing permissions and limitations
18  ~ under the License.
19  -->
20
21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22    <modelVersion>4.0.0</modelVersion>
23
24    <parent>
25        <groupId>org.apache.maven.surefire</groupId>
26        <artifactId>surefire</artifactId>
27        <version>3.0.0-M3</version>
28    </parent>
29
30    <groupId>org.apache.maven.plugins</groupId>
31    <artifactId>maven-surefire-plugin</artifactId>
32    <packaging>maven-plugin</packaging>
33
34    <name>Maven Surefire Plugin</name>
35    <description>Maven Surefire MOJO in maven-surefire-plugin.</description>
36
37    <prerequisites>
38        <maven>3.0</maven>
39    </prerequisites>
40
41    <properties>
42        <thisPlugin>Surefire</thisPlugin>
43        <thatPlugin>Failsafe</thatPlugin>
44    </properties>
45
46    <dependencies>
47        <dependency>
48            <groupId>org.apache.maven.surefire</groupId>
49            <artifactId>maven-surefire-common</artifactId>
50            <version>${project.version}</version>
51        </dependency>
52        <dependency>
53            <groupId>org.apache.maven.plugin-tools</groupId>
54            <artifactId>maven-plugin-annotations</artifactId>
55            <scope>provided</scope>
56        </dependency>
57    </dependencies>
58
59    <build>
60        <plugins>
61            <plugin>
62                <groupId>org.apache.maven.plugins</groupId>
63                <artifactId>maven-plugin-plugin</artifactId>
64                <configuration>
65                    <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
66                </configuration>
67                <executions>
68                    <execution>
69                        <id>mojo-descriptor</id>
70                        <phase>process-classes</phase>
71                        <goals>
72                            <goal>descriptor</goal>
73                        </goals>
74                    </execution>
75                    <execution>
76                        <id>help-goal</id>
77                        <goals>
78                            <goal>helpmojo</goal>
79                        </goals>
80                    </execution>
81                </executions>
82            </plugin>
83            <plugin>
84                <artifactId>maven-surefire-plugin</artifactId>
85                <dependencies>
86                    <dependency>
87                        <groupId>org.apache.maven.surefire</groupId>
88                        <artifactId>surefire-shadefire</artifactId>
89                        <version>3.0.0-M2</version> <!-- ${shadedVersion}, but resolved due to https://issues.apache.org/jira/browse/MRELEASE-799 -->
90                    </dependency>
91                </dependencies>
92            </plugin>
93            <plugin>
94                <artifactId>maven-assembly-plugin</artifactId>
95                <version>2.6</version>
96                <executions>
97                    <execution>
98                        <id>build-site</id>
99                        <phase>package</phase>
100                        <goals>
101                            <goal>single</goal>
102                        </goals>
103                        <configuration>
104                            <attach>true</attach>
105                            <classifier>site-source</classifier>
106                            <descriptors>
107                                <descriptor>src/assembly/site-source.xml</descriptor>
108                            </descriptors>
109                        </configuration>
110                    </execution>
111                </executions>
112            </plugin>
113            <plugin>
114                <artifactId>maven-antrun-plugin</artifactId>
115                <executions>
116                    <execution>
117                        <id>generate-test-report</id>
118                        <phase>site</phase>
119                        <goals>
120                            <goal>run</goal>
121                        </goals>
122                        <configuration>
123                            <target name="generate-legacy-surefire-test-report">
124                                <move file="${project.build.directory}/site/xsd/legacy-surefire-test-report.xsd" tofile="${project.build.directory}/site/xsd/surefire-test-report.xsd" />
125                            </target>
126                        </configuration>
127                    </execution>
128                </executions>
129            </plugin>
130        </plugins>
131    </build>
132
133    <reporting>
134        <plugins>
135            <plugin>
136                <groupId>org.apache.maven.plugins</groupId>
137                <artifactId>maven-plugin-plugin</artifactId>
138            </plugin>
139        </plugins>
140    </reporting>
141
142    <profiles>
143        <profile>
144            <id>ci</id>
145            <activation>
146                <property>
147                    <name>enableCiProfile</name>
148                    <value>true</value>
149                </property>
150            </activation>
151            <build>
152                <plugins>
153                    <plugin>
154                        <artifactId>maven-docck-plugin</artifactId>
155                        <version>1.0</version>
156                        <executions>
157                            <execution>
158                                <goals>
159                                    <goal>check</goal>
160                                </goals>
161                            </execution>
162                        </executions>
163                    </plugin>
164                </plugins>
165            </build>
166        </profile>
167        <profile>
168            <id>reporting</id>
169            <reporting>
170                <plugins>
171                    <plugin>
172                        <groupId>org.apache.maven.plugins</groupId>
173                        <artifactId>maven-changes-plugin</artifactId>
174                        <configuration>
175                            <skip>false</skip>
176                        </configuration>
177                        <reportSets>
178                            <reportSet>
179                                <reports>
180                                    <report>jira-report</report>
181                                </reports>
182                            </reportSet>
183                        </reportSets>
184                    </plugin>
185                </plugins>
186            </reporting>
187        </profile>
188    </profiles>
189</project>
190