40b3ada2882ecd6c205222612b98ee16ca92cecf
[appc.git] / appc-inbound / appc-artifact-handler / 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-artifact-handler</artifactId>
27                 <groupId>org.onap.appc</groupId>
28                 <version>1.3.0-SNAPSHOT</version>
29         </parent>
30         <artifactId>appc-artifact-handler-model</artifactId>
31         <name>APPC Artifact Handler - Model</name>
32         <packaging>bundle</packaging>
33
34         <build>
35
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>!com.google.common.collect,*</Import-Package>
44                                                 <Embed-Dependency>*</Embed-Dependency>
45                                         </instructions>
46                                 </configuration>
47                         </plugin>
48                         <plugin>
49                                 <groupId>org.opendaylight.yangtools</groupId>
50                                 <artifactId>yang-maven-plugin</artifactId>
51                                 <version>${odl.yangtools.version}</version>
52                                 <dependencies>
53                                         <dependency>
54                                                 <groupId>org.opendaylight.mdsal</groupId>
55                                                 <artifactId>maven-sal-api-gen-plugin</artifactId>
56                                                 <!-- <version>${odl.yangtools.version}</version> -->
57                                                 <version>${odl.sal.api.gen.plugin.version}</version>
58                                                 <type>jar</type>
59                                         </dependency>
60                                 </dependencies>
61                                 <executions>
62                                         <execution>
63                                                 <goals>
64                                                         <goal>generate-sources</goal>
65                                                 </goals>
66                                                 <configuration>
67                                                         <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
68                                                         <codeGenerators>
69                                                                 <generator>
70                                                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
71                                                                         <outputBaseDir>${salGeneratorPath}</outputBaseDir>
72                                                                 </generator>
73                                                         </codeGenerators>
74                                                         <inspectDependencies>true</inspectDependencies>
75                                                 </configuration>
76                                         </execution>
77                                 </executions>
78                         </plugin>
79                         <plugin>
80                                 <groupId>org.codehaus.mojo</groupId>
81                                 <artifactId>exec-maven-plugin</artifactId>
82                                 <version>1.2.1</version>
83                                 <executions>
84                                         <execution>
85                                                 <configuration>
86                                                         <executable>python</executable>
87                                                         <arguments>
88                                                                 <argument>scripts/python/yang2props.py</argument>
89                                                                 <argument>src/main/yang/artifact-handler.yang</argument>
90                                                                 <argument>target/artifact-handler.properties</argument>
91                                                         </arguments>
92                                                 </configuration>
93                                                 <id>generation</id>
94                                                 <phase>generate-resources</phase>
95                                                 <goals>
96                                                         <goal>exec</goal>
97                                                 </goals>
98                                         </execution>
99                                 </executions>
100                         </plugin>
101                         <plugin>
102                                 <groupId>org.codehaus.mojo</groupId>
103                                 <artifactId>build-helper-maven-plugin</artifactId>
104                                 <executions>
105                                         <execution>
106                                                 <id>attach-artifacts</id>
107                                                 <goals>
108                                                         <goal>attach-artifact</goal>
109                                                 </goals>
110                                                 <phase>package</phase>
111                                                 <configuration>
112                                                         <artifacts>
113                                                                 <artifact>
114                                                                         <file>${project.build.directory}/artifact-handler.properties</file>
115                                                                         <type>properties</type>
116                                                                         <classifier>artifact-handler</classifier>
117                                                                 </artifact>
118                                                         </artifacts>
119                                                 </configuration>
120                                         </execution>
121                                 </executions>
122                         </plugin>
123                 </plugins>
124                 <pluginManagement>
125                         <plugins>
126                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
127                                         only. It has no influence on the Maven build itself. -->
128                                 <plugin>
129                                         <groupId>org.eclipse.m2e</groupId>
130                                         <artifactId>lifecycle-mapping</artifactId>
131                                         <version>1.0.0</version>
132                                         <configuration>
133                                                 <lifecycleMappingMetadata>
134                                                         <pluginExecutions>
135                                                                 <pluginExecution>
136                                                                         <pluginExecutionFilter>
137                                                                                 <groupId>
138                                                                                         org.codehaus.mojo
139                                                                                 </groupId>
140                                                                                 <artifactId>
141                                                                                         exec-maven-plugin
142                                                                                 </artifactId>
143                                                                                 <versionRange>
144                                                                                         [1.2.1,)
145                                                                                 </versionRange>
146                                                                                 <goals>
147                                                                                         <goal>exec</goal>
148                                                                                 </goals>
149                                                                         </pluginExecutionFilter>
150                                                                         <action>
151                                                                                 <ignore />
152                                                                         </action>
153                                                                 </pluginExecution>
154                                                         </pluginExecutions>
155                                                 </lifecycleMappingMetadata>
156                                         </configuration>
157                                 </plugin>
158                         </plugins>
159                 </pluginManagement>
160         </build>
161         <dependencies>
162                 <dependency>
163                         <groupId>org.opendaylight.mdsal</groupId>
164                         <artifactId>yang-binding</artifactId>
165                 </dependency>
166                 <dependency>
167                         <groupId>org.opendaylight.yangtools</groupId>
168                         <artifactId>yang-common</artifactId>
169                 </dependency>
170                 <dependency>
171                         <groupId>org.opendaylight.mdsal.model</groupId>
172                         <artifactId>ietf-inet-types</artifactId>
173                         <version>${odl.ietf-inet-types.version}</version>
174                 </dependency>
175                 <dependency>
176                         <groupId>org.opendaylight.mdsal.model</groupId>
177                         <artifactId>ietf-yang-types</artifactId>
178                         <version>${odl.ietf-yang-types.version}</version>
179                 </dependency>
180         </dependencies>
181 </project>