Netconf-cli compilable and included in project
[controller.git] / opendaylight / netconf / 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.controller</groupId>
7     <artifactId>commons.opendaylight</artifactId>
8     <version>1.5.0-SNAPSHOT</version>
9     <relativePath>../commons/opendaylight</relativePath>
10   </parent>
11   <artifactId>netconf-subsystem</artifactId>
12
13   <version>0.3.0-SNAPSHOT</version>
14   <packaging>pom</packaging>
15   <name>${project.artifactId}</name>
16   <prerequisites>
17     <maven>3.0.4</maven>
18   </prerequisites>
19
20   <modules>
21     <module>netconf-api</module>
22     <module>netconf-cli</module>
23     <module>netconf-config</module>
24     <module>netconf-impl</module>
25     <module>config-netconf-connector</module>
26     <module>netconf-util</module>
27     <module>netconf-netty-util</module>
28     <module>config-persister-impl</module>
29     <module>netconf-mapping-api</module>
30     <module>netconf-client</module>
31     <module>netconf-ssh</module>
32     <module>netconf-tcp</module>
33     <module>netconf-monitoring</module>
34     <module>ietf-netconf-monitoring</module>
35     <module>ietf-netconf-monitoring-extension</module>
36     <module>netconf-connector-config</module>
37     <module>netconf-auth</module>
38     <module>netconf-usermanager</module>
39     <module>netconf-testtool</module>
40
41     <module>netconf-artifacts</module>
42   </modules>
43
44   <dependencies>
45     <dependency>
46       <groupId>org.osgi</groupId>
47       <artifactId>org.osgi.core</artifactId>
48     </dependency>
49     <dependency>
50       <groupId>ch.qos.logback</groupId>
51       <artifactId>logback-classic</artifactId>
52       <scope>test</scope>
53     </dependency>
54     <dependency>
55       <groupId>junit</groupId>
56       <artifactId>junit</artifactId>
57       <scope>test</scope>
58     </dependency>
59   </dependencies>
60
61   <build>
62     <pluginManagement>
63       <plugins>
64         <plugin>
65           <groupId>org.apache.felix</groupId>
66           <artifactId>maven-bundle-plugin</artifactId>
67           <extensions>true</extensions>
68           <configuration>
69             <instructions>
70               <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
71             </instructions>
72           </configuration>
73         </plugin>
74         <plugin>
75           <groupId>org.opendaylight.yangtools</groupId>
76           <artifactId>yang-maven-plugin</artifactId>
77           <version>${yangtools.version}</version>
78           <dependencies>
79             <dependency>
80               <groupId>org.opendaylight.yangtools</groupId>
81               <artifactId>maven-sal-api-gen-plugin</artifactId>
82               <version>${yangtools.version}</version>
83             </dependency>
84           </dependencies>
85           <executions>
86             <execution>
87               <goals>
88                 <goal>generate-sources</goal>
89               </goals>
90               <configuration>
91                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
92                 <codeGenerators>
93                   <generator>
94                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
95                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
96                   </generator>
97                   <generator>
98                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
99                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
100                   </generator>
101                 </codeGenerators>
102                 <inspectDependencies>true</inspectDependencies>
103               </configuration>
104             </execution>
105           </executions>
106         </plugin>
107       </plugins>
108
109     </pluginManagement>
110     <plugins>
111       <plugin>
112         <groupId>org.apache.maven.plugins</groupId>
113         <artifactId>maven-checkstyle-plugin</artifactId>
114         <configuration>
115           <failsOnError>false</failsOnError>
116           <failOnViolation>false</failOnViolation>
117           <configLocation>checkstyle-logging.xml</configLocation>
118           <consoleOutput>true</consoleOutput>
119           <includeTestSourceDirectory>true</includeTestSourceDirectory>
120           <sourceDirectory>${project.basedir}</sourceDirectory>
121           <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
122           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/,**\/netconf\/test\/tool\/Main.java</excludes>
123         </configuration>
124         <dependencies>
125           <dependency>
126             <groupId>org.opendaylight.yangtools</groupId>
127             <artifactId>checkstyle-logging</artifactId>
128             <version>${yangtools.version}</version>
129           </dependency>
130         </dependencies>
131         <executions>
132           <execution>
133             <goals>
134               <goal>check</goal>
135             </goals>
136           </execution>
137         </executions>
138       </plugin>
139       <plugin>
140         <groupId>org.apache.maven.plugins</groupId>
141         <artifactId>maven-compiler-plugin</artifactId>
142       </plugin>
143     </plugins>
144   </build>
145
146   <profiles>
147     <profile>
148       <id>integrationtests</id>
149       <activation>
150         <activeByDefault>false</activeByDefault>
151       </activation>
152       <modules>
153         <module>netconf-it</module>
154       </modules>
155     </profile>
156   </profiles>
157 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.