Release appc
[appc.git] / appc-inbound / appc-interfaces-service / 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   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>2.6.0-SNAPSHOT</version>
29                 <relativePath />
30         </parent>
31         <groupId>org.onap.appc</groupId>
32     <artifactId>appc-interfaces-service-model</artifactId>
33     <packaging>bundle</packaging>
34         
35     <build>
36         <plugins>
37             <plugin>
38                 <groupId>org.apache.felix</groupId>
39                 <artifactId>maven-bundle-plugin</artifactId>
40                 <extensions>true</extensions>
41                 <configuration>
42                     <instructions>
43                         <Import-Package>*</Import-Package>
44                     </instructions>
45                 </configuration>
46             </plugin>
47             <plugin>
48                 <groupId>org.opendaylight.yangtools</groupId>
49                 <artifactId>yang-maven-plugin</artifactId>
50                 <dependencies>
51                     <dependency>
52                         <groupId>org.opendaylight.mdsal</groupId>
53                         <artifactId>maven-sal-api-gen-plugin</artifactId>
54                         <version>${odl.sal.api.gen.plugin.version}</version>
55                         <type>jar</type>
56                     </dependency>
57                 </dependencies>
58                 
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>exec-maven-plugin</artifactId>
80                 <version>1.2.1</version>
81                 <executions>
82                     <execution>
83                         <configuration>
84                             <executable>python</executable>
85                             <arguments>
86                                 <argument>scripts/python/yang2props.py</argument>
87                                 <argument>src/main/yang/appc-interfaces-service.yang</argument>
88                                 <argument>target/appc-interfaces-service.properties</argument>
89                             </arguments>
90                         </configuration>
91                         <id>generation</id>
92                         <phase>generate-resources</phase>
93                         <goals>
94                             <goal>exec</goal>
95                         </goals>
96                     </execution>
97                 </executions>
98             </plugin>
99             <plugin>
100                 <groupId>org.codehaus.mojo</groupId>
101                 <artifactId>build-helper-maven-plugin</artifactId>
102                 <executions>
103                     <execution>
104                         <id>attach-artifacts</id>
105                         <goals>
106                             <goal>attach-artifact</goal>
107                         </goals>
108                         <phase>package</phase>
109                         <configuration>
110                             <artifacts>
111                                 <artifact>
112                                     <file>${project.build.directory}/appc-interfaces-service.properties</file>
113                                     <type>properties</type>
114                                     <classifier>appc-interfaces-service</classifier>
115                                 </artifact>
116                             </artifacts>
117                         </configuration>
118                     </execution>
119                 </executions>
120             </plugin>
121         </plugins>
122         <pluginManagement>
123             <plugins>
124                 <!--This plugin's configuration is used to store Eclipse m2e settings
125                     only. It has no influence on the Maven build itself. -->
126                 <plugin>
127                     <groupId>org.eclipse.m2e</groupId>
128                     <artifactId>lifecycle-mapping</artifactId>
129                     <version>1.0.0</version>
130                     <configuration>
131                         <lifecycleMappingMetadata>
132                             <pluginExecutions>
133                                 <pluginExecution>
134                                     <pluginExecutionFilter>
135                                         <groupId>
136                                             org.codehaus.mojo
137                                         </groupId>
138                                         <artifactId>
139                                             exec-maven-plugin
140                                         </artifactId>
141                                         <versionRange>
142                                             [1.2.1,)
143                                         </versionRange>
144                                         <goals>
145                                             <goal>exec</goal>
146                                         </goals>
147                                     </pluginExecutionFilter>
148                                     <action>
149                                         <ignore />
150                                     </action>
151                                 </pluginExecution>
152                             </pluginExecutions>
153                         </lifecycleMappingMetadata>
154                     </configuration>
155                 </plugin>
156             </plugins>
157         </pluginManagement>
158     </build>
159     <dependencies>
160         <dependency>
161             <groupId>org.opendaylight.mdsal</groupId>
162             <artifactId>yang-binding</artifactId>
163         </dependency>
164         <dependency>
165             <groupId>org.opendaylight.yangtools</groupId>
166             <artifactId>yang-common</artifactId>
167             </dependency>
168         <dependency>
169             <groupId>org.opendaylight.mdsal.model</groupId>
170             <artifactId>ietf-inet-types-2013-07-15</artifactId>
171             </dependency>
172         <dependency>
173             <groupId>org.opendaylight.mdsal.model</groupId>
174             <artifactId>ietf-yang-types-20130715</artifactId>
175             </dependency>
176     </dependencies>
177     <version>1.6.0</version>
178 </project>