blob: 36acb55ecafe35ea547d8302cdd918cefbfe2553 [file] [log] [blame]
Skip Wonnellab6c2c02017-08-14 17:47:10 -05001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <artifactId>appc-artifact-handler</artifactId>
Patrick Brady07567592017-12-13 11:09:30 -08007 <groupId>org.onap.appc</groupId>
Jessica Wagantall65367992017-11-16 17:22:13 -08008 <version>1.3.0-SNAPSHOT</version>
Skip Wonnellab6c2c02017-08-14 17:47:10 -05009 </parent>
10 <artifactId>appc-artifact-handler-model</artifactId>
Dilip kumar Pampana819f39b2018-01-05 11:47:22 -050011 <name>APPC Artifact Handler - Model</name>
Skip Wonnellab6c2c02017-08-14 17:47:10 -050012 <packaging>bundle</packaging>
13
14 <build>
15
16 <plugins>
17 <plugin>
18 <groupId>org.apache.felix</groupId>
19 <artifactId>maven-bundle-plugin</artifactId>
20 <extensions>true</extensions>
21 <configuration>
22 <instructions>
23 <Import-Package>*</Import-Package>
24 </instructions>
25 </configuration>
26 </plugin>
27 <plugin>
28 <groupId>org.opendaylight.yangtools</groupId>
29 <artifactId>yang-maven-plugin</artifactId>
Patrick Brady76706002017-09-04 21:37:25 -070030 <version>${odl.yangtools.version}</version>
Skip Wonnellab6c2c02017-08-14 17:47:10 -050031 <dependencies>
32 <dependency>
33 <groupId>org.opendaylight.mdsal</groupId>
34 <artifactId>maven-sal-api-gen-plugin</artifactId>
35 <!-- <version>${odl.yangtools.version}</version> -->
36 <version>${odl.sal.api.gen.plugin.version}</version>
37 <type>jar</type>
38 </dependency>
39 </dependencies>
40 <executions>
41 <execution>
42 <goals>
43 <goal>generate-sources</goal>
44 </goals>
45 <configuration>
46 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
47 <codeGenerators>
48 <generator>
Patrick Brady76706002017-09-04 21:37:25 -070049 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
Skip Wonnellab6c2c02017-08-14 17:47:10 -050050 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
51 </generator>
52 </codeGenerators>
53 <inspectDependencies>true</inspectDependencies>
54 </configuration>
55 </execution>
56 </executions>
57 </plugin>
58 <plugin>
59 <groupId>org.codehaus.mojo</groupId>
60 <artifactId>exec-maven-plugin</artifactId>
61 <version>1.2.1</version>
62 <executions>
63 <execution>
64 <configuration>
65 <executable>python</executable>
66 <arguments>
67 <argument>scripts/python/yang2props.py</argument>
68 <argument>src/main/yang/artifact-handler.yang</argument>
69 <argument>target/artifact-handler.properties</argument>
70 </arguments>
71 </configuration>
72 <id>generation</id>
73 <phase>generate-resources</phase>
74 <goals>
75 <goal>exec</goal>
76 </goals>
77 </execution>
78 </executions>
79 </plugin>
80 <plugin>
81 <groupId>org.codehaus.mojo</groupId>
82 <artifactId>build-helper-maven-plugin</artifactId>
83 <executions>
84 <execution>
85 <id>attach-artifacts</id>
86 <goals>
87 <goal>attach-artifact</goal>
88 </goals>
89 <phase>package</phase>
90 <configuration>
91 <artifacts>
92 <artifact>
93 <file>${project.build.directory}/artifact-handler.properties</file>
94 <type>properties</type>
95 <classifier>artifact-handler</classifier>
96 </artifact>
97 </artifacts>
98 </configuration>
99 </execution>
100 </executions>
101 </plugin>
102 </plugins>
103 <pluginManagement>
104 <plugins>
105 <!--This plugin's configuration is used to store Eclipse m2e settings
106 only. It has no influence on the Maven build itself. -->
107 <plugin>
108 <groupId>org.eclipse.m2e</groupId>
109 <artifactId>lifecycle-mapping</artifactId>
110 <version>1.0.0</version>
111 <configuration>
112 <lifecycleMappingMetadata>
113 <pluginExecutions>
114 <pluginExecution>
115 <pluginExecutionFilter>
116 <groupId>
117 org.codehaus.mojo
118 </groupId>
119 <artifactId>
120 exec-maven-plugin
121 </artifactId>
122 <versionRange>
123 [1.2.1,)
124 </versionRange>
125 <goals>
126 <goal>exec</goal>
127 </goals>
128 </pluginExecutionFilter>
129 <action>
130 <ignore />
131 </action>
132 </pluginExecution>
133 </pluginExecutions>
134 </lifecycleMappingMetadata>
135 </configuration>
136 </plugin>
137 </plugins>
138 </pluginManagement>
139 </build>
140 <dependencies>
141 <dependency>
142 <groupId>org.opendaylight.mdsal</groupId>
143 <artifactId>yang-binding</artifactId>
144 </dependency>
145 <dependency>
146 <groupId>org.opendaylight.yangtools</groupId>
147 <artifactId>yang-common</artifactId>
148 </dependency>
149 <dependency>
150 <groupId>org.opendaylight.mdsal.model</groupId>
151 <artifactId>ietf-inet-types</artifactId>
152 <version>${odl.ietf-inet-types.version}</version>
153 </dependency>
154 <dependency>
155 <groupId>org.opendaylight.mdsal.model</groupId>
156 <artifactId>ietf-yang-types</artifactId>
157 <version>${odl.ietf-yang-types.version}</version>
158 </dependency>
159 </dependencies>
160</project>