Release appc
[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-2019 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                 <groupId>org.onap.appc.parent</groupId>
29                 <artifactId>binding-parent</artifactId>
30                 <version>2.6.1</version>
31                 <relativePath />
32         </parent>
33         <groupId>org.onap.appc</groupId>
34     <artifactId>appc-oam-model</artifactId>
35     <name>APPC OAM - Model</name>
36     <packaging>bundle</packaging>
37
38     <build>
39
40         <plugins>
41             <plugin>
42                 <groupId>org.apache.felix</groupId>
43                 <artifactId>maven-bundle-plugin</artifactId>
44                 <extensions>true</extensions>
45                 <configuration>
46                     <instructions>
47                         <Import-Package>!com.google.common.collect,*</Import-Package>
48                         <Embed-Dependency>guava</Embed-Dependency>
49                     </instructions>
50                 </configuration>
51             </plugin>
52             <plugin>
53                 <groupId>org.opendaylight.yangtools</groupId>
54                 <artifactId>yang-maven-plugin</artifactId>
55                 <dependencies>
56                     <dependency>
57                         <groupId>org.opendaylight.mdsal</groupId>
58                         <artifactId>maven-sal-api-gen-plugin</artifactId>
59                         <version>${odl.sal.api.gen.plugin.version}</version>
60                         <type>jar</type>
61                     </dependency>
62                 </dependencies>
63                 <executions>
64                     <execution>
65                         <goals>
66                             <goal>generate-sources</goal>
67                         </goals>
68                         <configuration>
69                             <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
70                             <codeGenerators>
71                                 <generator>
72                                     <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
73                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
74                                 </generator>
75                             </codeGenerators>
76                             <inspectDependencies>true</inspectDependencies>
77                         </configuration>
78                     </execution>
79                 </executions>
80             </plugin>
81             <plugin>
82                 <groupId>org.apache.maven.plugins</groupId>
83                 <artifactId>maven-install-plugin</artifactId>
84                 <version>2.5.2</version>
85                 <executions>
86                     <execution>
87                         <id>yang</id>
88                         <phase>initialize</phase>
89                         <goals>
90                             <goal>install-file</goal>
91                         </goals>
92                         <configuration>
93                             <file>${project.basedir}/src/main/yang/appc-oam.yang</file>
94                             <groupId>${project.groupId}</groupId>
95                             <artifactId>${project.artifactId}</artifactId>
96                             <version>${project.version}</version>
97                             <packaging>yang</packaging>
98                         </configuration>
99                     </execution>
100                 </executions>
101             </plugin>
102         </plugins>
103
104     </build>
105     <dependencies>
106         <dependency>
107             <groupId>org.opendaylight.mdsal</groupId>
108             <artifactId>yang-binding</artifactId>
109         </dependency>
110         <dependency>
111             <groupId>org.opendaylight.yangtools</groupId>
112             <artifactId>yang-common</artifactId>
113         </dependency>
114         <dependency>
115             <groupId>org.opendaylight.mdsal.model</groupId>
116             <artifactId>ietf-inet-types-2013-07-15</artifactId>
117         </dependency>
118         <dependency>
119             <groupId>org.opendaylight.mdsal.model</groupId>
120             <artifactId>ietf-yang-types-20130715</artifactId>
121         </dependency>
122     </dependencies>
123     <version>1.6.3</version>
124 </project>