Override license checker for yang-test
[controller.git] / opendaylight / config / yang-test / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <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">
4   <modelVersion>4.0.0</modelVersion>
5   <parent>
6     <groupId>org.opendaylight.controller</groupId>
7     <artifactId>config-plugin-parent</artifactId>
8     <version>0.4.0-SNAPSHOT</version>
9     <relativePath>../config-plugin-parent</relativePath>
10   </parent>
11
12   <artifactId>yang-test</artifactId>
13   <packaging>bundle</packaging>
14   <name>${project.artifactId}</name>
15
16   <description>Artifact that contains only generated code from yang files. Suitable for testing.</description>
17
18   <dependencies>
19     <dependency>
20       <groupId>${project.groupId}</groupId>
21       <artifactId>config-api</artifactId>
22     </dependency>
23     <dependency>
24       <groupId>org.opendaylight.yangtools</groupId>
25       <artifactId>mockito-configuration</artifactId>
26     </dependency>
27     <dependency>
28       <groupId>org.opendaylight.mdsal.model</groupId>
29       <artifactId>ietf-inet-types</artifactId>
30     </dependency>
31     <dependency>
32       <groupId>org.slf4j</groupId>
33       <artifactId>slf4j-api</artifactId>
34     </dependency>
35     <dependency>
36       <groupId>${project.groupId}</groupId>
37       <artifactId>config-manager</artifactId>
38       <scope>test</scope>
39     </dependency>
40     <dependency>
41       <groupId>${project.groupId}</groupId>
42       <artifactId>config-manager</artifactId>
43       <type>test-jar</type>
44       <scope>test</scope>
45     </dependency>
46     <dependency>
47       <groupId>junit</groupId>
48       <artifactId>junit</artifactId>
49       <scope>test</scope>
50     </dependency>
51     <dependency>
52       <groupId>org.opendaylight.controller</groupId>
53       <artifactId>config-util</artifactId>
54       <scope>test</scope>
55     </dependency>
56   </dependencies>
57
58   <build>
59     <pluginManagement>
60       <plugins>
61         <plugin>
62           <groupId>org.eclipse.m2e</groupId>
63           <artifactId>lifecycle-mapping</artifactId>
64           <version>${lifecycle.mapping.version}</version>
65           <configuration>
66             <lifecycleMappingMetadata>
67               <pluginExecutions>
68                 <pluginExecution>
69                   <pluginExecutionFilter>
70                     <groupId>org.opendaylight.controller</groupId>
71                     <artifactId>yang-test-plugin</artifactId>
72                     <versionRange>[0.2.3,)</versionRange>
73                     <goals>
74                       <goal>delete-sources</goal>
75                       <goal>process-sources</goal>
76                     </goals>
77                   </pluginExecutionFilter>
78                   <action>
79                     <ignore></ignore>
80                   </action>
81                 </pluginExecution>
82               </pluginExecutions>
83             </lifecycleMappingMetadata>
84           </configuration>
85         </plugin>
86       </plugins>
87     </pluginManagement>
88
89     <plugins>
90
91       <plugin>
92         <groupId>org.apache.felix</groupId>
93         <artifactId>maven-bundle-plugin</artifactId>
94         <configuration>
95           <instructions></instructions>
96         </configuration>
97       </plugin>
98
99
100         <plugin>
101           <artifactId>maven-checkstyle-plugin</artifactId>
102           <version>${checkstyle.version}</version>
103           <dependencies>
104             <dependency>
105               <groupId>org.opendaylight.odlparent</groupId>
106               <artifactId>checkstyle</artifactId>
107               <version>${odl.checkstyle.version}</version>
108             </dependency>
109             <dependency>
110               <groupId>org.opendaylight.odlparent</groupId>
111               <artifactId>odl-license</artifactId>
112               <version>0.0.1-SNAPSHOT</version>
113             </dependency>
114           </dependencies>
115           <configuration>
116             <configLocation>odl_checks.xml</configLocation>
117             <!-- <sourceDirectory> is needed so that checkstyle ignores the
118                  generated sources directory -->
119             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
120             <excludes>
121               org/opendaylight/yang/gen/**,
122               **/protobuff/messages/**,
123               **/thrift/gen/*.java
124             </excludes>
125             <failsOnError>false</failsOnError>
126             <consoleOutput>true</consoleOutput>
127           </configuration>
128           <executions>
129             <execution>
130               <id>check-license</id>
131               <goals>
132                 <goal>check</goal>
133               </goals>
134               <phase>process-sources</phase>
135               <configuration>
136                 <configLocation>check-license.xml</configLocation>
137                 <includeResources>false</includeResources>
138                 <includeTestResources>false</includeTestResources>
139                 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
140                 <excludes>
141                   org/opendaylight/yang/gen/**,
142                   **/protobuff/messages/**,
143                   **/thrift/gen/*.java,
144                   **/config/yang/test/**
145                 </excludes>
146                 <failsOnError>false</failsOnError>
147                 <consoleOutput>true</consoleOutput>
148               </configuration>
149             </execution>
150           </executions>
151         </plugin>
152
153       <plugin>
154         <groupId>org.opendaylight.controller</groupId>
155         <artifactId>yang-test-plugin</artifactId>
156         <version>${config.version}</version>
157         <executions>
158           <execution>
159             <goals>
160               <goal>delete-sources</goal>
161
162               <goal>process-sources</goal>
163             </goals>
164           </execution>
165         </executions>
166       </plugin>
167       <plugin>
168         <groupId>org.opendaylight.yangtools</groupId>
169         <artifactId>yang-maven-plugin</artifactId>
170       </plugin>
171     </plugins>
172   </build>
173 </project>