Fix the dependency issues and unify the version to 1.0.0
[alto.git] / alto-model / 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"
3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5     <parent>
6         <groupId>org.opendaylight.alto</groupId>
7         <artifactId>alto-parent</artifactId>
8         <version>1.0.0-SNAPSHOT</version>
9         <relativePath>../</relativePath>
10     </parent>
11
12     <artifactId>alto-model</artifactId>
13     <packaging>bundle</packaging>
14
15     <properties>
16         <jmxGeneratorPath>${project.build.directory}/generated-sources/config</jmxGeneratorPath>
17     </properties>
18
19     <build>
20         <plugins>
21             <plugin>
22                 <groupId>org.apache.maven.plugins</groupId>
23                 <artifactId>maven-checkstyle-plugin</artifactId>
24                 <version>${checkstyle.version}</version>
25                 <executions>
26                     <execution>
27                         <phase>process-sources</phase>
28                         <goals>
29                             <goal>check</goal>
30                         </goals>
31                     </execution>
32                 </executions>
33                 <configuration>
34                     <failsOnError>true</failsOnError>
35                     <configLocation>../checkstyle.xml</configLocation>
36                     <consoleOutput>true</consoleOutput>
37                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
38                     <sourceDirectory>${project.basedir}</sourceDirectory>
39                     <includes>**\/*.yang</includes>
40                     <excludes>**\/target\/,**\/bin\/,**\/third-party,**\/yang-gen-sal</excludes>
41                 </configuration>
42             </plugin>
43             <plugin>
44                 <groupId>org.apache.maven.plugins</groupId>
45                 <artifactId>maven-compiler-plugin</artifactId>
46                 <version>${compiler.version}</version>
47                 <inherited>true</inherited>
48                 <configuration>
49                     <source>1.7</source>
50                     <target>1.7</target>
51                 </configuration>
52             </plugin>
53             <plugin>
54                 <groupId>org.apache.felix</groupId>
55                 <artifactId>maven-bundle-plugin</artifactId>
56                 <version>${bundle.plugin.version}</version>
57                 <extensions>true</extensions>
58                 <configuration>
59                     <instructions>
60                         <Export-Package>
61                             org.opendaylight.yang.gen.v1.urn.cisco.*;
62                             org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.acl.rev140520.*;
63                             org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.packet.fields.rev140625.*;
64                         </Export-Package>
65                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
66                     </instructions>
67                 </configuration>
68             </plugin>
69             <plugin>
70                 <groupId>org.opendaylight.yangtools</groupId>
71                 <artifactId>yang-maven-plugin</artifactId>
72                 <executions>
73                     <execution>
74                         <goals>
75                             <goal>generate-sources</goal>
76                         </goals>
77                         <configuration>
78                             <codeGenerators>
79                                 <generator>
80                                     <codeGeneratorClass>
81                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
82                                     </codeGeneratorClass>
83                                     <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
84                                     <additionalConfiguration>
85                                         <namespaceToPackage1>
86                                             urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
87                                         </namespaceToPackage1>
88                                     </additionalConfiguration>
89                                 </generator>
90                                 <generator>
91                                     <codeGeneratorClass>
92                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
93                                     </codeGeneratorClass>
94                                     <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
95                                 </generator>
96                                 <generator>
97                                     <codeGeneratorClass>
98                                         org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl
99                                     </codeGeneratorClass>
100                                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
101                                 </generator>
102                             </codeGenerators>
103                             <inspectDependencies>true</inspectDependencies>
104                         </configuration>
105                     </execution>
106                 </executions>
107                 <dependencies>
108                     <dependency>
109                         <groupId>org.opendaylight.controller</groupId>
110                         <artifactId>yang-jmx-generator-plugin</artifactId>
111                         <version>0.3.0-SNAPSHOT</version>
112                     </dependency>
113                     <dependency>
114                         <groupId>org.opendaylight.yangtools</groupId>
115                         <artifactId>maven-sal-api-gen-plugin</artifactId>
116                         <version>${yangtools.version}</version>
117                         <type>jar</type>
118                     </dependency>
119                 </dependencies>
120             </plugin>
121         </plugins>
122     </build>
123
124     <dependencies>
125         <dependency>
126             <groupId>org.opendaylight.yangtools.model</groupId>
127             <artifactId>ietf-inet-types</artifactId>
128             <version>${ietf.model.version}</version>
129         </dependency>
130         <dependency>
131             <groupId>org.opendaylight.yangtools.model</groupId>
132             <artifactId>ietf-yang-types-20130715</artifactId>
133             <version>${ietf.yang.types.version}</version>
134         </dependency>
135         <dependency>
136             <groupId>org.opendaylight.ovsdb</groupId>
137             <artifactId>southbound-api</artifactId>
138             <version>${ovsdb.southbound.version}</version>
139         </dependency>
140     </dependencies>
141 </project>
142