4a0827bd8ab73ee42646facbad4c6520c7cda924
[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         <groupId>org.onap.appc.parent</groupId>
27         <artifactId>binding-parent</artifactId>
28         <version>1.4.0</version>
29     </parent>
30     <groupId>org.onap.appc</groupId>
31     <artifactId>appc-provider-model</artifactId>
32     <version>1.4.3-SNAPSHOT</version>
33     <packaging>bundle</packaging>
34
35     <name>appc-provider-model</name>
36     <build>
37         <plugins>
38             <plugin>
39                 <groupId>org.apache.felix</groupId>
40                 <artifactId>maven-bundle-plugin</artifactId>
41                 <extensions>true</extensions>
42                 <configuration>
43                     <instructions>
44 <!--                         <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> -->
45 <!--                         <Bundle-Version>${project.version}</Bundle-Version> -->
46 <!--                         <Export-Package>org.onap.appc</Export-Package> -->
47                              <Export-Package>org.opendaylight.yang.gen.v1.org.onap.appc.lcm.rev160108,org.opendaylight.yang.gen.v1.org.onap.appc.lcm.rev160108.*</Export-Package>
48                     </instructions>
49                 </configuration>
50             </plugin>
51             <plugin>
52                 <groupId>org.opendaylight.yangtools</groupId>
53                 <artifactId>yang-maven-plugin</artifactId>
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                 <executions>
84                     <execution>
85                         <id>yang</id>
86                         <phase>initialize</phase>
87                         <goals>
88                             <goal>install-file</goal>
89                         </goals>
90                         <configuration>
91                             <file>${project.basedir}/src/main/yang/appc-provider-lcm.yang</file>
92                             <groupId>${project.groupId}</groupId>
93                             <artifactId>${project.artifactId}</artifactId>
94                             <version>${project.version}</version>
95                             <packaging>yang</packaging>
96                         </configuration>
97                     </execution>
98                 </executions>
99             </plugin>
100         </plugins>
101
102     </build>
103     <dependencies>
104         <dependency>
105             <groupId>org.opendaylight.mdsal</groupId>
106             <artifactId>yang-binding</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>org.opendaylight.yangtools</groupId>
110             <artifactId>yang-common</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>org.opendaylight.mdsal.model</groupId>
114             <artifactId>ietf-inet-types</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>org.opendaylight.mdsal.model</groupId>
118             <artifactId>ietf-yang-types</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>com.google.guava</groupId>
122             <artifactId>guava</artifactId>
123         </dependency>
124     </dependencies>
125 </project>