Merge "Fix for bug #236 and bug #240 Have made changes in opendaylight-table-types...
[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                 <version>${yangtools.version}</version>
110                 <executions>
111                     <execution>
112                         <id>config</id>
113                         <goals>
114                             <goal>generate-sources</goal>
115                         </goals>
116                         <configuration>
117                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
118                             <codeGenerators>
119                                 <generator>
120                                     <codeGeneratorClass>
121                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
122                                     </codeGeneratorClass>
123                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
124                                     <additionalConfiguration>
125                                         <namespaceToPackage1>
126                                             urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
127                                         </namespaceToPackage1>
128                                     </additionalConfiguration>
129                                 </generator>
130                             </codeGenerators>
131                             <inspectDependencies>true</inspectDependencies>
132                         </configuration>
133                     </execution>
134
135                     <execution>
136                         <id>types</id>
137                         <goals>
138                             <goal>generate-sources</goal>
139                         </goals>
140                         <configuration>
141                             <yangFilesRootDir>src/main/yang/types</yangFilesRootDir>
142                             <codeGenerators>
143                               <generator>
144                                     <codeGeneratorClass>
145                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
146                                     </codeGeneratorClass>
147                                     <outputBaseDir>
148                                         ${project.build.directory}/generated-sources/sal
149                                     </outputBaseDir>
150                                 </generator>
151                             </codeGenerators>
152                             <inspectDependencies>true</inspectDependencies>
153                         </configuration>
154                     </execution>
155                 </executions>
156                 <dependencies>
157                     <dependency>
158                         <groupId>org.opendaylight.controller</groupId>
159                         <artifactId>yang-jmx-generator-plugin</artifactId>
160                         <version>${config.version}</version>
161                     </dependency>
162
163                     <dependency>
164                         <groupId>org.opendaylight.yangtools</groupId>
165                         <artifactId>maven-sal-api-gen-plugin</artifactId>
166                         <version>${yangtools.version}</version>
167                     </dependency>
168                 </dependencies>
169             </plugin>
170             <plugin>
171                 <groupId>org.opendaylight.controller</groupId>
172                 <artifactId>yang-test-plugin</artifactId>
173                 <version>${config.version}</version>
174                 <executions>
175                     <execution>
176                         <goals>
177                             <goal>delete-sources</goal>
178                             <goal>process-sources</goal>
179                         </goals>
180                     </execution>
181                 </executions>
182             </plugin>
183
184             <plugin>
185                 <groupId>org.apache.felix</groupId>
186                 <artifactId>maven-bundle-plugin</artifactId>
187                 <configuration>
188                     <instructions>
189                     </instructions>
190                 </configuration>
191             </plugin>
192         </plugins>
193     </build>
194 </project>