7f301c8b2262c62783ce0929a267af513d337d82
[yangtools.git] / plugin / yang-maven-plugin-it / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>odlparent</artifactId>
15         <version>9.0.11</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.yangtools</groupId>
21     <artifactId>yang-maven-plugin-it</artifactId>
22     <version>8.0.0-SNAPSHOT</version>
23
24     <properties>
25         <!-- We are doing abhorrent things here unpacking our dependencies, which confuses analysis, just skip it -->
26         <odlparent.dependency.skip>true</odlparent.dependency.skip>
27     </properties>
28
29     <dependencies>
30         <dependency>
31             <groupId>org.apache.maven.shared</groupId>
32             <artifactId>maven-verifier</artifactId>
33             <version>1.7.2</version>
34             <scope>test</scope>
35         </dependency>
36         <dependency>
37             <groupId>com.google.guava</groupId>
38             <artifactId>guava</artifactId>
39             <scope>test</scope>
40         </dependency>
41         <dependency>
42             <groupId>org.opendaylight.yangtools</groupId>
43             <artifactId>yang-maven-plugin</artifactId>
44             <version>${project.version}</version>
45             <scope>test</scope>
46         </dependency>
47     </dependencies>
48
49     <build>
50         <testResources>
51             <testResource>
52                 <directory>${basedir}/src/test/resources</directory>
53                 <filtering>true</filtering>
54             </testResource>
55         </testResources>
56         <plugins>
57             <plugin>
58                 <artifactId>maven-resources-plugin</artifactId>
59                 <executions>
60                     <execution>
61                         <id>default-testResources</id>
62                         <phase>process-test-resources</phase>
63                         <goals>
64                             <goal>testResources</goal>
65                         </goals>
66                         <configuration>
67                             <useDefaultDelimiters>false</useDefaultDelimiters>
68                             <delimiters>
69                                 <delimiter>@</delimiter>
70                             </delimiters>
71                         </configuration>
72                     </execution>
73                 </executions>
74             </plugin>
75             <plugin>
76                 <groupId>org.codehaus.mojo</groupId>
77                 <artifactId>properties-maven-plugin</artifactId>
78                 <executions>
79                     <execution>
80                         <phase>generate-resources</phase>
81                         <goals>
82                             <goal>write-project-properties</goal>
83                         </goals>
84                         <configuration>
85                             <outputFile>${project.build.directory}/it-project.properties</outputFile>
86                         </configuration>
87                     </execution>
88                 </executions>
89             </plugin>
90             <plugin>
91                 <artifactId>maven-help-plugin</artifactId>
92                 <configuration>
93                     <output>${project.build.directory}/effective-settings.xml</output>
94                 </configuration>
95                 <executions>
96                     <execution>
97                         <phase>pre-integration-test</phase>
98                         <goals>
99                             <goal>effective-settings</goal>
100                         </goals>
101                     </execution>
102                 </executions>
103             </plugin>
104             <plugin>
105                 <artifactId>maven-failsafe-plugin</artifactId>
106                 <executions>
107                     <execution>
108                         <goals>
109                             <goal>integration-test</goal>
110                             <goal>verify</goal>
111                         </goals>
112                         <configuration>
113                             <!-- We want to pass argLine down to maven invocations, not to failsafe -->
114                             <argLine>-DitArgPath='@{argLine}'</argLine>
115                         </configuration>
116                     </execution>
117                 </executions>
118             </plugin>
119
120             <plugin>
121                 <groupId>org.jacoco</groupId>
122                 <artifactId>jacoco-maven-plugin</artifactId>
123                 <executions>
124                     <execution>
125                         <id>merge-reports</id>
126                         <phase>post-integration-test</phase>
127                         <goals>
128                             <goal>merge</goal>
129                         </goals>
130                         <configuration>
131                             <fileSets>
132                                 <fileSet>
133                                     <directory>${project.build.directory}/test-classes/test-parent</directory>
134                                     <includes>
135                                         <include>*.exec</include>
136                                     </includes>
137                                 </fileSet>
138                             </fileSets>
139                         </configuration>
140                     </execution>
141                 </executions>
142             </plugin>
143
144             <!-- Okay, this is rather ugly, but is needed to fool JaCoCo to generate an XML report -->
145             <plugin>
146                 <artifactId>maven-dependency-plugin</artifactId>
147                 <executions>
148                     <execution>
149                         <id>fake-classes</id>
150                         <phase>post-integration-test</phase>
151                         <goals>
152                             <goal>unpack-dependencies</goal>
153                         </goals>
154                         <configuration>
155                             <includeGroupIds>org.opendaylight.yangtools</includeGroupIds>
156                             <includes>**/*.class</includes>
157                             <outputDirectory>${project.build.directory}/classes</outputDirectory>
158                         </configuration>
159                     </execution>
160                 </executions>
161             </plugin>
162         </plugins>
163     </build>
164 </project>