blob: d9019c068fddaa3fb56d8a8427227af5eb931efc [file] [log] [blame]
Skip Wonnellab6c2c02017-08-14 17:47:10 -05001<?xml version="1.0" encoding="UTF-8"?>
Skip Wonnell463f70e2018-01-12 10:00:59 -06002<!--
3 ============LICENSE_START=======================================================
4 ONAP : APPC
5 ================================================================================
6 Copyright (C) 2017 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 ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 -->
Skip Wonnellab6c2c02017-08-14 17:47:10 -050023<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <artifactId>appc-artifact-handler</artifactId>
Patrick Brady07567592017-12-13 11:09:30 -080028 <groupId>org.onap.appc</groupId>
Jessica Wagantall65367992017-11-16 17:22:13 -080029 <version>1.3.0-SNAPSHOT</version>
Skip Wonnellab6c2c02017-08-14 17:47:10 -050030 </parent>
31 <artifactId>appc-artifact-handler-model</artifactId>
Dilip kumar Pampana819f39b2018-01-05 11:47:22 -050032 <name>APPC Artifact Handler - Model</name>
Skip Wonnellab6c2c02017-08-14 17:47:10 -050033 <packaging>bundle</packaging>
34
35 <build>
36
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 <Import-Package>*</Import-Package>
45 </instructions>
46 </configuration>
47 </plugin>
48 <plugin>
49 <groupId>org.opendaylight.yangtools</groupId>
50 <artifactId>yang-maven-plugin</artifactId>
Patrick Brady76706002017-09-04 21:37:25 -070051 <version>${odl.yangtools.version}</version>
Skip Wonnellab6c2c02017-08-14 17:47:10 -050052 <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>
Patrick Brady76706002017-09-04 21:37:25 -070070 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
Skip Wonnellab6c2c02017-08-14 17:47:10 -050071 <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>