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