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