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