Fixed address domain to match documentation.
[affinity.git] / affinity / yang / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
4     <!-- parent>
5         <groupId>org.opendaylight.controller</groupId>
6         <artifactId>sal-parent</artifactId>
7         <version>1.0-SNAPSHOT</version>
8     </parent -->
9     <scm>
10       <connection>scm:git:ssh://git.opendaylight.org:29418/affinity.git</connection>
11       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/affinity.git</developerConnection>
12       <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
13     </scm>
14
15     <modelVersion>4.0.0</modelVersion>
16     <groupId>org.opendaylight.affinity</groupId>
17     <artifactId>model</artifactId>
18     <version>1.0-SNAPSHOT</version>
19     <packaging>jar</packaging>
20
21     <properties>
22         <yang.version>0.5.9-SNAPSHOT</yang.version>
23         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24         <maven.compiler.source>1.7</maven.compiler.source>
25         <maven.compiler.target>1.7</maven.compiler.target>
26         <maven.bundle.version>2.4.0</maven.bundle.version>
27         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
28     </properties>
29
30     <repositories>
31         <!-- OpenDayLight Released artifact -->
32         <repository>
33             <id>opendaylight-release</id>
34             <name>opendaylight-release</name>
35             <url>${nexusproxy}/repositories/opendaylight.release/</url>
36         </repository>
37         <!-- OpenDayLight Snapshot artifact -->
38         <repository>
39             <id>opendaylight-snapshot</id>
40             <name>opendaylight-snapshot</name>
41             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
42         </repository>
43     </repositories>
44
45     <pluginRepositories>
46         <pluginRepository>
47             <id>central2</id>
48             <name>central2</name>
49             <url>${nexusproxy}/repositories/central2/</url>
50         </pluginRepository>
51        <pluginRepository>
52             <id>opendaylight-release</id>
53             <url>${nexusproxy}/repositories/opendaylight.release/</url>
54         </pluginRepository>
55         <!-- OpenDayLight Snapshot artifact -->
56         <pluginRepository>
57             <id>opendaylight-snapshot</id>
58             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
59         </pluginRepository>
60     </pluginRepositories>
61
62
63     <build>
64         <plugins>
65             <plugin>
66                 <groupId>org.apache.felix</groupId>
67                 <artifactId>maven-bundle-plugin</artifactId>
68                 <version>${maven.bundle.version}</version>
69                 <extensions>true</extensions>
70                 <configuration>
71                     <instructions>
72                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
73                     </instructions>
74                 </configuration>
75             </plugin>
76             <plugin>
77                 <groupId>org.opendaylight.yangtools</groupId>
78                 <artifactId>yang-maven-plugin</artifactId>
79                 <version>${yang.version}</version>
80                 <executions>
81                     <execution>
82                         <goals>
83                             <goal>generate-sources</goal>
84                         </goals>
85                         <configuration>
86                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
87                             <codeGenerators>
88                                 <generator>
89                                     <codeGeneratorClass>
90                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
91                                     </codeGeneratorClass>
92                                     <outputBaseDir>
93                                         target/generated-sources/sal
94                                     </outputBaseDir>
95                                 </generator>
96                             </codeGenerators>
97                             <inspectDependencies>true</inspectDependencies>
98                         </configuration>
99                     </execution>
100                 </executions>
101                 <dependencies>
102                     <dependency>
103                         <groupId>org.opendaylight.yangtools</groupId>
104                         <artifactId>maven-sal-api-gen-plugin</artifactId>
105                         <version>0.5.8-SNAPSHOT</version>
106                         <type>jar</type>
107                     </dependency>
108                 </dependencies>
109             </plugin>
110             <plugin>
111                 <groupId>org.codehaus.mojo</groupId>
112                 <artifactId>build-helper-maven-plugin</artifactId>
113                 <version>1.7</version>
114                 <executions>
115                     <execution>
116                         <phase>generate-sources</phase>
117                         <goals>
118                             <goal>add-source</goal>
119                         </goals>
120                         <configuration>
121                             <sources>
122                                 <source>target/generated-sources/sal</source>
123                             </sources>
124                         </configuration>
125                     </execution>
126                 </executions>
127             </plugin>
128         </plugins>
129         <pluginManagement>
130             <plugins>
131                 <!--This plugin's configuration is used to store Eclipse 
132                     m2e settings only. It has no influence on the Maven build itself. -->
133                 <plugin>
134                     <groupId>org.eclipse.m2e</groupId>
135                     <artifactId>lifecycle-mapping</artifactId>
136                     <version>1.0.0</version>
137                     <configuration>
138                         <lifecycleMappingMetadata>
139                             <pluginExecutions>
140                                 <pluginExecution>
141                                     <pluginExecutionFilter>
142                                         <groupId>
143                                             org.opendaylight.yangtools
144                                         </groupId>
145                                         <artifactId>
146                                             yang-maven-plugin
147                                         </artifactId>
148                                         <versionRange>
149                                             [0.5,)
150                                         </versionRange>
151                                         <goals>
152                                             <goal>
153                                                 generate-sources
154                                             </goal>
155                                         </goals>
156                                     </pluginExecutionFilter>
157                                     <action>
158                                         <ignore></ignore>
159                                     </action>
160                                 </pluginExecution>
161                             </pluginExecutions>
162                         </lifecycleMappingMetadata>
163                     </configuration>
164                 </plugin>
165             </plugins>
166         </pluginManagement>
167     </build>
168
169     <dependencies>
170       <dependency>
171         <groupId>org.opendaylight.controller.model</groupId>
172         <artifactId>model-inventory</artifactId>
173         <version>1.0-SNAPSHOT</version> 
174       </dependency>
175       
176       <dependency>
177         <groupId>org.opendaylight.yangtools</groupId>
178         <artifactId>yang-binding</artifactId>
179         <version>${yang.version}</version>
180       </dependency>
181       <dependency>
182         <groupId>org.opendaylight.yangtools</groupId>
183         <artifactId>yang-common</artifactId>
184         <version>${yang.version}</version>
185       </dependency>
186       <dependency>
187         <groupId>org.opendaylight.yangtools.model</groupId>
188         <artifactId>ietf-inet-types</artifactId>
189         <version>2010.09.24-SNAPSHOT</version>
190       </dependency>
191       <dependency>
192         <groupId>org.opendaylight.yangtools.model</groupId>
193         <artifactId>ietf-yang-types</artifactId>
194         <version>2010.09.24-SNAPSHOT</version>
195       </dependency>
196 <!--      <dependency>
197         <groupId>org.opendaylight.yangtools</groupId>
198         <artifactId>yang-ext</artifactId>
199         <version>2013.09.07-SNAPSHOT</version>
200       </dependency> -->
201       <dependency>
202         <groupId>org.opendaylight.yangtools.model</groupId>
203         <artifactId>opendaylight-l2-types</artifactId>
204         <version>2013.08.27.1-SNAPSHOT</version>
205       </dependency>
206     </dependencies>
207
208 </project>