ODL Upgrade Method 2
[appc.git] / appc-oam / appc-oam-model / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
5   ================================================================================
6   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Copyright (C) 2017 Amdocs
9   =============================================================================
10   Licensed under the Apache License, Version 2.0 (the "License");
11   you may not use this file except in compliance with the License.
12   You may obtain a copy of the License at
13
14        http://www.apache.org/licenses/LICENSE-2.0
15
16   Unless required by applicable law or agreed to in writing, software
17   distributed under the License is distributed on an "AS IS" BASIS,
18   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   See the License for the specific language governing permissions and
20   limitations under the License.
21
22   ============LICENSE_END=========================================================
23   -->
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26     <modelVersion>4.0.0</modelVersion>
27     <parent>
28         <artifactId>appc-oam</artifactId>
29         <groupId>org.onap.appc</groupId>
30         <version>1.3.0-SNAPSHOT</version>
31     </parent>
32     <artifactId>appc-oam-model</artifactId>
33     <name>APPC OAM - Model</name>
34     <packaging>bundle</packaging>
35
36     <build>
37
38         <plugins>
39             <plugin>
40                 <groupId>org.apache.felix</groupId>
41                 <artifactId>maven-bundle-plugin</artifactId>
42                 <extensions>true</extensions>
43                 <configuration>
44                     <instructions>
45                         <Import-Package>!com.google.common.collect,*</Import-Package>
46                         <Embed-Dependency>guava</Embed-Dependency>
47                     </instructions>
48                 </configuration>
49             </plugin>
50             <plugin>
51                 <groupId>org.opendaylight.yangtools</groupId>
52                 <artifactId>yang-maven-plugin</artifactId>
53                 <version>${odl.yangtools.version}</version>
54                 <dependencies>
55                     <dependency>
56                         <groupId>org.opendaylight.mdsal</groupId>
57                         <artifactId>maven-sal-api-gen-plugin</artifactId>
58                         <version>${odl.sal.api.gen.plugin.version}</version>
59                         <type>jar</type>
60                     </dependency>
61                 </dependencies>
62                 <executions>
63                     <execution>
64                         <goals>
65                             <goal>generate-sources</goal>
66                         </goals>
67                         <configuration>
68                             <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
69                             <codeGenerators>
70                                 <generator>
71                                     <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
72                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
73                                 </generator>
74                             </codeGenerators>
75                             <inspectDependencies>true</inspectDependencies>
76                         </configuration>
77                     </execution>
78                 </executions>
79             </plugin>
80             <plugin>
81                 <groupId>org.apache.maven.plugins</groupId>
82                 <artifactId>maven-install-plugin</artifactId>
83                 <version>2.5.2</version>
84                 <executions>
85                     <execution>
86                         <id>yang</id>
87                         <phase>initialize</phase>
88                         <goals>
89                             <goal>install-file</goal>
90                         </goals>
91                         <configuration>
92                             <file>${project.basedir}/src/main/yang/appc-oam.yang</file>
93                             <groupId>${project.groupId}</groupId>
94                             <artifactId>${project.artifactId}</artifactId>
95                             <version>${project.version}</version>
96                             <packaging>yang</packaging>
97                         </configuration>
98                     </execution>
99                 </executions>
100             </plugin>
101         </plugins>
102
103     </build>
104     <dependencies>
105         <dependency>
106             <groupId>org.opendaylight.mdsal</groupId>
107             <artifactId>yang-binding</artifactId>
108         </dependency>
109         <dependency>
110             <groupId>org.opendaylight.yangtools</groupId>
111             <artifactId>yang-common</artifactId>
112         </dependency>
113         <dependency>
114             <groupId>org.opendaylight.mdsal.model</groupId>
115             <artifactId>ietf-inet-types</artifactId>
116         </dependency>
117         <dependency>
118             <groupId>org.opendaylight.mdsal.model</groupId>
119             <artifactId>ietf-yang-types</artifactId>
120         </dependency>
121     </dependencies>
122 </project>