Merge "Update config-module-archetype."
[controller.git] / opendaylight / commons / protocol-framework / 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
5     <modelVersion>4.0.0</modelVersion>
6     <parent>
7         <groupId>org.opendaylight.controller</groupId>
8         <artifactId>commons.opendaylight</artifactId>
9         <version>1.4.2-SNAPSHOT</version>
10         <relativePath>../../commons/opendaylight</relativePath>
11     </parent>
12     <scm>
13         <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
14         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
15         <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
16         <tag>HEAD</tag>
17     </scm>
18
19     <artifactId>protocol-framework</artifactId>
20     <version>0.5.0-SNAPSHOT</version>
21     <description>Common protocol framework</description>
22     <packaging>bundle</packaging>
23     <name>${project.artifactId}</name>
24     <prerequisites>
25         <maven>3.0.4</maven>
26     </prerequisites>
27
28     <properties>
29         <jmxGeneratorPath>${project.build.directory}/generated-sources/config</jmxGeneratorPath>
30         <salGeneratorPath>${project.build.directory}/generated-sources/sal</salGeneratorPath>
31     </properties>
32
33     <dependencies>
34         <dependency>
35             <groupId>io.netty</groupId>
36             <artifactId>netty-buffer</artifactId>
37         </dependency>
38         <dependency>
39             <groupId>io.netty</groupId>
40             <artifactId>netty-codec</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>io.netty</groupId>
44             <artifactId>netty-common</artifactId>
45         </dependency>
46         <dependency>
47             <groupId>io.netty</groupId>
48             <artifactId>netty-transport</artifactId>
49         </dependency>
50         <dependency>
51             <groupId>com.google.guava</groupId>
52             <artifactId>guava</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>com.google.code.findbugs</groupId>
56             <artifactId>jsr305</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>org.slf4j</groupId>
60             <artifactId>slf4j-api</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>org.opendaylight.controller</groupId>
64             <artifactId>config-api</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>org.opendaylight.controller</groupId>
68             <artifactId>netty-config-api</artifactId>
69         </dependency>
70
71         <!-- Testing dependencies -->
72         <dependency>
73             <groupId>org.opendaylight.yangtools</groupId>
74             <artifactId>mockito-configuration</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>junit</groupId>
78             <artifactId>junit</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>org.opendaylight.controller</groupId>
82             <artifactId>config-manager</artifactId>
83             <scope>test</scope>
84         </dependency>
85         <dependency>
86             <groupId>org.opendaylight.controller</groupId>
87             <artifactId>config-manager</artifactId>
88             <version>${config.version}</version>
89             <scope>test</scope>
90             <type>test-jar</type>
91         </dependency>
92         <dependency>
93             <groupId>org.opendaylight.controller</groupId>
94             <artifactId>config-util</artifactId>
95             <version>${config.version}</version>
96             <scope>test</scope>
97         </dependency>
98         <dependency>
99             <groupId>org.opendaylight.controller</groupId>
100             <artifactId>netty-event-executor-config</artifactId>
101             <scope>test</scope>
102         </dependency>
103     </dependencies>
104
105     <build>
106         <plugins>
107             <plugin>
108                 <groupId>org.apache.felix</groupId>
109                 <artifactId>maven-bundle-plugin</artifactId>
110                 <extensions>true</extensions>
111                 <configuration>
112                     <instructions>
113                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
114                     </instructions>
115                 </configuration>
116             </plugin>
117             <plugin>
118                 <groupId>org.apache.maven.plugins</groupId>
119                 <artifactId>maven-jar-plugin</artifactId>
120                 <executions>
121                     <execution>
122                         <phase>package</phase>
123                         <goals>
124                             <goal>test-jar</goal>
125                         </goals>
126                     </execution>
127                 </executions>
128             </plugin>
129             <plugin>
130               <groupId>org.opendaylight.yangtools</groupId>
131               <artifactId>yang-maven-plugin</artifactId>
132               <executions>
133                   <execution>
134                       <goals>
135                           <goal>generate-sources</goal>
136                       </goals>
137                       <configuration>
138                           <codeGenerators>
139                               <generator>
140                                   <codeGeneratorClass>
141                                       org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
142                                   </codeGeneratorClass>
143                                   <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
144                                   <additionalConfiguration>
145                                       <namespaceToPackage1>
146                                           urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
147                                       </namespaceToPackage1>
148                                   </additionalConfiguration>
149                               </generator>
150                               <generator>
151                                   <codeGeneratorClass>
152                                       org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
153                                   </codeGeneratorClass>
154                                   <outputBaseDir>
155                                      ${salGeneratorPath}
156                                   </outputBaseDir>
157                               </generator>
158                           </codeGenerators>
159                           <inspectDependencies>true</inspectDependencies>
160                       </configuration>
161                   </execution>
162               </executions>
163               <dependencies>
164                   <dependency>
165                       <groupId>org.opendaylight.controller</groupId>
166                       <artifactId>yang-jmx-generator-plugin</artifactId>
167                       <version>${config.version}</version>
168                   </dependency>
169                   <dependency>
170                       <groupId>org.opendaylight.yangtools</groupId>
171                       <artifactId>maven-sal-api-gen-plugin</artifactId>
172                       <version>${yangtools.version}</version>
173                   </dependency>
174               </dependencies>
175           </plugin>
176           <plugin>
177               <groupId>org.codehaus.mojo</groupId>
178               <artifactId>build-helper-maven-plugin</artifactId>
179               <executions>
180                   <execution>
181                       <id>add-source</id>
182                       <phase>generate-sources</phase>
183                       <goals>
184                           <goal>add-source</goal>
185                       </goals>
186                       <configuration>
187                           <sources>
188                               <source>${jmxGeneratorPath}</source>
189                               <source>${salGeneratorPath}</source>
190                           </sources>
191                       </configuration>
192                   </execution>
193               </executions>
194           </plugin>
195         </plugins>
196     </build>
197 </project>