Decouple config and netconf subsystems.
[controller.git] / opendaylight / netconf / tools / 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>netconf-subsystem</artifactId>
8     <version>0.4.0-SNAPSHOT</version>
9     <relativePath>../</relativePath>
10   </parent>
11   <artifactId>netconf-tools</artifactId>
12
13   <version>0.4.0-SNAPSHOT</version>
14   <packaging>pom</packaging>
15   <name>${project.artifactId}</name>
16
17   <modules>
18     <module>netconf-cli</module>
19     <module>netconf-testtool</module>
20   </modules>
21
22   <build>
23     <pluginManagement>
24       <plugins>
25         <plugin>
26           <groupId>org.apache.felix</groupId>
27           <artifactId>maven-bundle-plugin</artifactId>
28           <extensions>true</extensions>
29           <configuration>
30             <instructions>
31               <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
32             </instructions>
33           </configuration>
34         </plugin>
35         <plugin>
36           <groupId>org.opendaylight.yangtools</groupId>
37           <artifactId>yang-maven-plugin</artifactId>
38           <version>${yangtools.version}</version>
39           <dependencies>
40             <dependency>
41               <groupId>org.opendaylight.yangtools</groupId>
42               <artifactId>maven-sal-api-gen-plugin</artifactId>
43               <version>${yangtools.version}</version>
44             </dependency>
45           </dependencies>
46           <executions>
47             <execution>
48               <goals>
49                 <goal>generate-sources</goal>
50               </goals>
51               <configuration>
52                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
53                 <codeGenerators>
54                   <generator>
55                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
56                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
57                   </generator>
58                   <generator>
59                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
60                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
61                   </generator>
62                 </codeGenerators>
63                 <inspectDependencies>true</inspectDependencies>
64               </configuration>
65             </execution>
66           </executions>
67         </plugin>
68       </plugins>
69
70     </pluginManagement>
71     <plugins>
72       <plugin>
73         <groupId>org.apache.maven.plugins</groupId>
74         <artifactId>maven-checkstyle-plugin</artifactId>
75         <configuration>
76           <failsOnError>false</failsOnError>
77           <failOnViolation>true</failOnViolation>
78           <configLocation>checkstyle-logging.xml</configLocation>
79           <consoleOutput>true</consoleOutput>
80           <includeTestSourceDirectory>true</includeTestSourceDirectory>
81           <sourceDirectory>${project.basedir}</sourceDirectory>
82           <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
83           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/,**\/netconf\/test\/tool\/Main.java, **\/netconf\/test\/tool\/client\/stress\/StressClient.java</excludes>
84         </configuration>
85         <dependencies>
86           <dependency>
87             <groupId>org.opendaylight.yangtools</groupId>
88             <artifactId>checkstyle-logging</artifactId>
89             <version>${yangtools.version}</version>
90           </dependency>
91         </dependencies>
92         <executions>
93           <execution>
94             <goals>
95               <goal>check</goal>
96             </goals>
97           </execution>
98         </executions>
99       </plugin>
100       <plugin>
101         <groupId>org.apache.maven.plugins</groupId>
102         <artifactId>maven-compiler-plugin</artifactId>
103       </plugin>
104     </plugins>
105   </build>
106 </project>