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