56a3f63899b4951a87d38c9d8251e9daaacf936d
[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                 <groupId>org.onap.appc.parent</groupId>
29                 <artifactId>binding-parent</artifactId>
30                 <version>1.4.0</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                 <version>${odl.yangtools.version}</version>
56                 <dependencies>
57                     <dependency>
58                         <groupId>org.opendaylight.mdsal</groupId>
59                         <artifactId>maven-sal-api-gen-plugin</artifactId>
60                         <version>${odl.sal.api.gen.plugin.version}</version>
61                         <type>jar</type>
62                     </dependency>
63                 </dependencies>
64                 <executions>
65                     <execution>
66                         <goals>
67                             <goal>generate-sources</goal>
68                         </goals>
69                         <configuration>
70                             <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
71                             <codeGenerators>
72                                 <generator>
73                                     <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
74                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
75                                 </generator>
76                             </codeGenerators>
77                             <inspectDependencies>true</inspectDependencies>
78                         </configuration>
79                     </execution>
80                 </executions>
81             </plugin>
82             <plugin>
83                 <groupId>org.apache.maven.plugins</groupId>
84                 <artifactId>maven-install-plugin</artifactId>
85                 <version>2.5.2</version>
86                 <executions>
87                     <execution>
88                         <id>yang</id>
89                         <phase>initialize</phase>
90                         <goals>
91                             <goal>install-file</goal>
92                         </goals>
93                         <configuration>
94                             <file>${project.basedir}/src/main/yang/appc-oam.yang</file>
95                             <groupId>${project.groupId}</groupId>
96                             <artifactId>${project.artifactId}</artifactId>
97                             <version>${project.version}</version>
98                             <packaging>yang</packaging>
99                         </configuration>
100                     </execution>
101                 </executions>
102             </plugin>
103         </plugins>
104
105     </build>
106     <dependencies>
107         <dependency>
108             <groupId>org.opendaylight.mdsal</groupId>
109             <artifactId>yang-binding</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>org.opendaylight.yangtools</groupId>
113             <artifactId>yang-common</artifactId>
114         </dependency>
115         <dependency>
116             <groupId>org.opendaylight.mdsal.model</groupId>
117             <artifactId>ietf-inet-types</artifactId>
118         </dependency>
119         <dependency>
120             <groupId>org.opendaylight.mdsal.model</groupId>
121             <artifactId>ietf-yang-types</artifactId>
122         </dependency>
123     </dependencies>
124     <version>1.4.2-SNAPSHOT</version>
125 </project>