Add karaf distribution
[netconf.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.opendaylight.odlparent</groupId>
7         <artifactId>odlparent</artifactId>
8         <version>1.6.0-SNAPSHOT</version>
9     </parent>
10
11     <groupId>org.opendaylight.netconf</groupId>
12     <artifactId>netconf-parent</artifactId>
13     <version>1.0.0-SNAPSHOT</version>
14     <packaging>pom</packaging>
15     <name>${project.artifactId}</name>
16
17     <modules>
18         <module>opendaylight/netconf</module>
19         <module>opendaylight/restconf</module>
20
21         <module>features</module>
22         <module>karaf</module>
23     </modules>
24
25     <properties>
26         <config.netconf.client.configfile>01-netconf.xml</config.netconf.client.configfile>
27         <config.netconf.topology.configfile>02-netconf-topology.xml</config.netconf.topology.configfile>
28         <config.netconf.mdsal.configfile>08-mdsal-netconf.xml</config.netconf.mdsal.configfile>
29         <config.restconf.configfile>10-rest-connector.xml</config.restconf.configfile>
30         <config.netconf.connector.configfile>99-netconf-connector.xml</config.netconf.connector.configfile>
31
32         <aaa.version>0.3.0-SNAPSHOT</aaa.version>
33         <commons.logback_settings.version>0.2.0-SNAPSHOT</commons.logback_settings.version>
34         <commons.opendaylight.version>1.6.0-SNAPSHOT</commons.opendaylight.version>
35         <config.version>0.4.0-SNAPSHOT</config.version>
36         <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
37         <exi.nagasena.version>0000.0002.0053.0</exi.nagasena.version>
38         <features.test.version>1.6.0-SNAPSHOT</features.test.version>
39         <ietf-inet-types.version>2010.09.24.8-SNAPSHOT</ietf-inet-types.version>
40         <ietf-restconf.version>2013.10.19.8-SNAPSHOT</ietf-restconf.version>
41         <ietf-topology.version>2013.10.21.8-SNAPSHOT</ietf-topology.version>
42         <ietf-yang-types.version>2010.09.24.8-SNAPSHOT</ietf-yang-types.version>
43         <jersey-servlet.version>1.17</jersey-servlet.version>
44         <mdsal.version>1.3.0-SNAPSHOT</mdsal.version>
45         <netconf.version>1.0.0-SNAPSHOT</netconf.version>
46         <restconf.version>1.3.0-SNAPSHOT</restconf.version>
47         <protocol-framework.version>0.7.0-SNAPSHOT</protocol-framework.version>
48         <sshd-core.version>0.14.0</sshd-core.version>
49         <surefire.version>2.15</surefire.version>
50         <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
51
52         <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
53         <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
54
55     </properties>
56
57     <build>
58         <pluginManagement>
59             <plugins>
60                 <plugin>
61                     <groupId>org.apache.maven.plugins</groupId>
62                     <artifactId>maven-checkstyle-plugin</artifactId>
63                     <configuration>
64                         <failsOnError>true</failsOnError>
65                         <configLocation>controller/checkstyle.xml</configLocation>
66                         <consoleOutput>true</consoleOutput>
67                         <includeTestSourceDirectory>true</includeTestSourceDirectory>
68                         <sourceDirectory>${project.basedir}</sourceDirectory>
69                         <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
70                         <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/,**\/protobuff\/,**\/src\/main\/resources\/archetype-resources\/**\/*.java</excludes>
71                     </configuration>
72                     <dependencies>
73                         <dependency>
74                             <groupId>org.opendaylight.controller</groupId>
75                             <artifactId>checkstyle</artifactId>
76                             <version>0.2.0-SNAPSHOT</version>
77                         </dependency>
78                     </dependencies>
79                     <executions>
80                         <execution>
81                             <goals>
82                                 <goal>check</goal>
83                             </goals>
84                             <phase>process-sources</phase>
85                         </execution>
86                     </executions>
87                 </plugin>
88                 <plugin>
89                     <groupId>org.apache.felix</groupId>
90                     <artifactId>maven-bundle-plugin</artifactId>
91                     <extensions>true</extensions>
92                     <configuration>
93                         <instructions>
94                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
95                         </instructions>
96                     </configuration>
97                 </plugin>
98                 <plugin>
99                     <groupId>org.opendaylight.yangtools</groupId>
100                     <artifactId>yang-maven-plugin</artifactId>
101                     <version>${yangtools.version}</version>
102                     <executions>
103                         <execution>
104                             <id>config</id>
105                             <goals>
106                                 <goal>generate-sources</goal>
107                             </goals>
108                             <configuration>
109                                 <codeGenerators>
110                                     <generator>
111                                         <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
112                                         <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
113                                         <additionalConfiguration>
114                                             <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
115                                         </additionalConfiguration>
116                                     </generator>
117                                     <generator>
118                                         <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
119                                         <outputBaseDir>${salGeneratorPath}</outputBaseDir>
120                                     </generator>
121                                 </codeGenerators>
122                                 <inspectDependencies>true</inspectDependencies>
123                             </configuration>
124                         </execution>
125                     </executions>
126                     <dependencies>
127                         <dependency>
128                             <groupId>org.opendaylight.controller</groupId>
129                             <artifactId>yang-jmx-generator-plugin</artifactId>
130                             <version>${config.version}</version>
131                         </dependency>
132                         <dependency>
133                             <groupId>org.opendaylight.yangtools</groupId>
134                             <artifactId>maven-sal-api-gen-plugin</artifactId>
135                             <version>${yangtools.version}</version>
136                             <type>jar</type>
137                         </dependency>
138                         <dependency>
139                             <groupId>org.opendaylight.yangtools</groupId>
140                             <artifactId>yang-binding</artifactId>
141                             <version>${yangtools.version}</version>
142                             <type>jar</type>
143                         </dependency>
144                     </dependencies>
145                 </plugin>
146                 <plugin>
147                     <groupId>org.codehaus.mojo</groupId>
148                     <artifactId>build-helper-maven-plugin</artifactId>
149                     <version>1.8</version>
150                     <executions>
151                         <execution>
152                             <id>add-source</id>
153                             <phase>generate-sources</phase>
154                             <goals>
155                                 <goal>add-source</goal>
156                             </goals>
157                             <configuration>
158                                 <sources>
159                                     <source>${project.build.directory}/generated-sources/config</source>;
160                                 </sources>
161                             </configuration>
162                         </execution>
163                     </executions>
164                 </plugin>
165             </plugins>
166         </pluginManagement>
167     </build>
168
169     <profiles>
170         <profile>
171             <id>integrationtests</id>
172             <activation>
173                 <activeByDefault>false</activeByDefault>
174             </activation>
175             <modules>
176                 <module>opendaylight/netconf/netconf-it</module>
177             </modules>
178         </profile>
179         <profile>
180             <id>doclint-java8-disable</id>
181             <activation>
182                 <jdk>[1.8,)</jdk>
183             </activation>
184             <build>
185                 <plugins>
186                     <plugin>
187                         <groupId>org.apache.maven.plugins</groupId>
188                         <artifactId>maven-javadoc-plugin</artifactId>
189                         <configuration>
190                             <additionalparam>-Xdoclint:none</additionalparam>
191                         </configuration>
192                     </plugin>
193                 </plugins>
194             </build>
195         </profile>
196     </profiles>
197 </project>