Fix warnings about overriden versions
[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.2.4-SNAPSHOT</version>
9         <relativePath>../config-plugin-parent</relativePath>
10     </parent>
11
12     <artifactId>yang-test</artifactId>
13     <packaging>bundle</packaging>
14
15     <description>Artifact that contains only generated code from yang files. Suitable for testing.
16     </description>
17     <name>${project.artifactId}</name>
18     <prerequisites>
19         <maven>3.0.4</maven>
20     </prerequisites>
21
22     <dependencies>
23         <dependency>
24             <groupId>${project.groupId}</groupId>
25             <artifactId>config-api</artifactId>
26         </dependency>
27         <dependency>
28             <groupId>org.slf4j</groupId>
29             <artifactId>slf4j-api</artifactId>
30         </dependency>
31         <dependency>
32             <groupId>org.opendaylight.yangtools.model</groupId>
33             <artifactId>ietf-inet-types</artifactId>
34         </dependency>
35         <dependency>
36             <groupId>org.opendaylight.yangtools</groupId>
37             <artifactId>mockito-configuration</artifactId>
38         </dependency>
39         <dependency>
40             <groupId>${project.groupId}</groupId>
41             <artifactId>config-manager</artifactId>
42             <scope>test</scope>
43         </dependency>
44         <dependency>
45             <groupId>${project.groupId}</groupId>
46             <artifactId>config-manager</artifactId>
47             <type>test-jar</type>
48             <scope>test</scope>
49         </dependency>
50         <dependency>
51             <groupId>org.opendaylight.controller</groupId>
52             <artifactId>config-util</artifactId>
53             <scope>test</scope>
54         </dependency>
55         <dependency>
56             <groupId>junit</groupId>
57             <artifactId>junit</artifactId>
58             <scope>test</scope>
59         </dependency>
60     </dependencies>
61
62
63
64     <build>
65         <pluginManagement>
66             <plugins>
67                 <plugin>
68                     <groupId>org.eclipse.m2e</groupId>
69                     <artifactId>lifecycle-mapping</artifactId>
70                     <version>1.0.0</version>
71                     <configuration>
72                         <lifecycleMappingMetadata>
73                             <pluginExecutions>
74                                 <pluginExecution>
75                                     <pluginExecutionFilter>
76                                         <groupId>
77                                             org.opendaylight.controller
78                                         </groupId>
79                                         <artifactId>
80                                             yang-test-plugin
81                                         </artifactId>
82                                         <versionRange>
83                                             [0.2.3,)
84                                         </versionRange>
85                                         <goals>
86                                             <goal>
87                                                 delete-sources
88                                             </goal>
89                                             <goal>
90                                                 process-sources
91                                             </goal>
92                                         </goals>
93                                     </pluginExecutionFilter>
94                                     <action>
95                                         <ignore/>
96                                     </action>
97                                 </pluginExecution>
98                             </pluginExecutions>
99                         </lifecycleMappingMetadata>
100                     </configuration>
101                 </plugin>
102             </plugins>
103         </pluginManagement>
104
105         <plugins>
106             <plugin>
107                 <groupId>org.opendaylight.yangtools</groupId>
108                 <artifactId>yang-maven-plugin</artifactId>
109                 <executions>
110                     <execution>
111                         <id>config</id>
112                         <goals>
113                             <goal>generate-sources</goal>
114                         </goals>
115                         <configuration>
116                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
117                             <codeGenerators>
118                                 <generator>
119                                     <codeGeneratorClass>
120                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
121                                     </codeGeneratorClass>
122                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
123                                     <additionalConfiguration>
124                                         <namespaceToPackage1>
125                                             urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
126                                         </namespaceToPackage1>
127                                     </additionalConfiguration>
128                                 </generator>
129                             </codeGenerators>
130                             <inspectDependencies>true</inspectDependencies>
131                         </configuration>
132                     </execution>
133
134                     <execution>
135                         <id>types</id>
136                         <goals>
137                             <goal>generate-sources</goal>
138                         </goals>
139                         <configuration>
140                             <yangFilesRootDir>src/main/yang/types</yangFilesRootDir>
141                             <codeGenerators>
142                               <generator>
143                                     <codeGeneratorClass>
144                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
145                                     </codeGeneratorClass>
146                                     <outputBaseDir>
147                                         ${project.build.directory}/generated-sources/sal
148                                     </outputBaseDir>
149                                 </generator>
150                             </codeGenerators>
151                             <inspectDependencies>true</inspectDependencies>
152                         </configuration>
153                     </execution>
154                 </executions>
155                 <dependencies>
156                     <dependency>
157                         <groupId>org.opendaylight.controller</groupId>
158                         <artifactId>yang-jmx-generator-plugin</artifactId>
159                         <version>${config.version}</version>
160                     </dependency>
161
162                     <dependency>
163                         <groupId>org.opendaylight.yangtools</groupId>
164                         <artifactId>maven-sal-api-gen-plugin</artifactId>
165                         <version>${yangtools.version}</version>
166                     </dependency>
167                 </dependencies>
168             </plugin>
169             <plugin>
170                 <groupId>org.opendaylight.controller</groupId>
171                 <artifactId>yang-test-plugin</artifactId>
172                 <version>${config.version}</version>
173                 <executions>
174                     <execution>
175                         <goals>
176                             <goal>delete-sources</goal>
177                             <goal>process-sources</goal>
178                         </goals>
179                     </execution>
180                 </executions>
181             </plugin>
182
183             <plugin>
184                 <groupId>org.apache.felix</groupId>
185                 <artifactId>maven-bundle-plugin</artifactId>
186                 <configuration>
187                     <instructions>
188                     </instructions>
189                 </configuration>
190             </plugin>
191         </plugins>
192     </build>
193 </project>