blob: 0e6f600b7290c32a4d2417bd47a45c4e1988aaac [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-design-services</artifactId>
7 <groupId>org.openecomp.appc</groupId>
Patrick Bradyed9fd622017-11-07 11:59:14 -08008 <version>1.2.0-SNAPSHOT</version>
Skip Wonnellab6c2c02017-08-14 17:47:10 -05009 </parent>
10 <artifactId>appc-design-services-model</artifactId>
11 <packaging>bundle</packaging>
12
13 <build>
14
15 <plugins>
16 <plugin>
17 <groupId>org.apache.felix</groupId>
18 <artifactId>maven-bundle-plugin</artifactId>
19 <extensions>true</extensions>
20 <configuration>
21 <instructions>
22 <Import-Package>*</Import-Package>
23 </instructions>
24 </configuration>
25 </plugin>
Patrick Brady76706002017-09-04 21:37:25 -070026 <plugin>
27 <groupId>org.opendaylight.yangtools</groupId>
28 <artifactId>yang-maven-plugin</artifactId>
29 <version>${odl.yangtools.version}</version>
30 <dependencies>
31 <dependency>
32 <groupId>org.opendaylight.mdsal</groupId>
33 <artifactId>maven-sal-api-gen-plugin</artifactId>
34 <version>${odl.sal.api.gen.plugin.version}</version>
35 <type>jar</type>
36 </dependency>
37 </dependencies>
38 <executions>
39 <execution>
40 <goals>
41 <goal>generate-sources</goal>
42 </goals>
43 <configuration>
44 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
45 <codeGenerators>
46 <generator>
47 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
48 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
49 </generator>
50 </codeGenerators>
51 <inspectDependencies>true</inspectDependencies>
52 </configuration>
53 </execution>
54 </executions>
55 </plugin>
Skip Wonnellab6c2c02017-08-14 17:47:10 -050056 <plugin>
57 <groupId>org.codehaus.mojo</groupId>
58 <artifactId>exec-maven-plugin</artifactId>
59 <version>1.2.1</version>
60 <executions>
61 <execution>
62 <configuration>
63 <executable>python</executable>
64 <arguments>
65 <argument>scripts/python/yang2props.py</argument>
66 <argument>src/main/yang/appc-design-services.yang</argument>
67 <argument>target/appc-design-services.properties</argument>
68 </arguments>
69 </configuration>
70 <id>generation</id>
71 <phase>generate-resources</phase>
72 <goals>
73 <goal>exec</goal>
74 </goals>
75 </execution>
76 </executions>
77 </plugin>
78 <plugin>
79 <groupId>org.codehaus.mojo</groupId>
80 <artifactId>build-helper-maven-plugin</artifactId>
81 <executions>
82 <execution>
83 <id>attach-artifacts</id>
84 <goals>
85 <goal>attach-artifact</goal>
86 </goals>
87 <phase>package</phase>
88 <configuration>
89 <artifacts>
90 <artifact>
91 <file>${project.build.directory}/appc-design-services.properties</file>
92 <type>properties</type>
93 <classifier>appc-design-services</classifier>
94 </artifact>
95 </artifacts>
96 </configuration>
97 </execution>
98 </executions>
99 </plugin>
100 </plugins>
101 <pluginManagement>
102 <plugins>
103 <!--This plugin's configuration is used to store Eclipse m2e settings
104 only. It has no influence on the Maven build itself. -->
105 <plugin>
106 <groupId>org.eclipse.m2e</groupId>
107 <artifactId>lifecycle-mapping</artifactId>
108 <version>1.0.0</version>
109 <configuration>
110 <lifecycleMappingMetadata>
111 <pluginExecutions>
112 <pluginExecution>
113 <pluginExecutionFilter>
114 <groupId>
115 org.codehaus.mojo
116 </groupId>
117 <artifactId>
118 exec-maven-plugin
119 </artifactId>
120 <versionRange>
121 [1.2.1,)
122 </versionRange>
123 <goals>
124 <goal>exec</goal>
125 </goals>
126 </pluginExecutionFilter>
127 <action>
128 <ignore />
129 </action>
130 </pluginExecution>
131 </pluginExecutions>
132 </lifecycleMappingMetadata>
133 </configuration>
134 </plugin>
135 </plugins>
136 </pluginManagement>
137 </build>
138 <dependencies>
139 <dependency>
140 <groupId>org.opendaylight.mdsal</groupId>
141 <artifactId>yang-binding</artifactId>
142 </dependency>
143 <dependency>
144 <groupId>org.opendaylight.yangtools</groupId>
145 <artifactId>yang-common</artifactId>
146 </dependency>
147 <dependency>
148 <groupId>org.opendaylight.mdsal.model</groupId>
149 <artifactId>ietf-inet-types</artifactId>
150 </dependency>
151 <dependency>
152 <groupId>org.opendaylight.mdsal.model</groupId>
153 <artifactId>ietf-yang-types</artifactId>
154 </dependency>
155 </dependencies>
156</project>