blob: 46aba8314722bfe4827fa0d3db1796bd7f1378e0 [file] [log] [blame]
Patrick Brady57b5eef2017-02-10 15:00:49 -08001<?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"
Patrick Bradyc7d00752017-06-01 10:45:37 -07003 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-provider</artifactId>
7 <groupId>org.openecomp.appc</groupId>
8 <version>1.1.0-SNAPSHOT</version>
9 </parent>
10 <artifactId>appc-provider-model</artifactId>
11 <packaging>bundle</packaging>
Patrick Brady57b5eef2017-02-10 15:00:49 -080012
Patrick Bradyc7d00752017-06-01 10:45:37 -070013 <build>
Patrick Brady57b5eef2017-02-10 15:00:49 -080014
Patrick Bradyc7d00752017-06-01 10:45:37 -070015 <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 <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>
Patrick Brady76706002017-09-04 21:37:25 -070047 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
Patrick Bradyc7d00752017-06-01 10:45:37 -070048 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
49 </generator>
50 </codeGenerators>
51 <inspectDependencies>true</inspectDependencies>
52 </configuration>
53 </execution>
54 </executions>
55 </plugin>
56 <!-- <plugin> -->
57 <!-- <groupId>org.codehaus.mojo</groupId> -->
58 <!-- <artifactId>build-helper-maven-plugin</artifactId> -->
59 <!-- <version>1.12</version> -->
60 <!-- <executions> -->
61 <!-- <execution> -->
62 <!-- <id>add-generated-source</id> -->
63 <!-- <phase>generate-sources</phase> -->
64 <!-- <goals> -->
65 <!-- <goal>add-source</goal> -->
66 <!-- </goals> -->
67 <!-- <configuration> -->
68 <!-- <sources> -->
69 <!-- project.build.directory defaults to be the "target" folder -->
70 <!-- <source>${project.build.directory}/generated-sources/yang-gen-sal</source> -->
71 <!-- </sources> -->
72 <!-- </configuration> -->
73 <!-- </execution> -->
74 <!-- </executions> -->
75 <!-- </plugin> -->
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-install-plugin</artifactId>
79 <version>2.5.2</version>
80 <executions>
81 <execution>
82 <id>yang</id>
83 <phase>initialize</phase>
84 <goals>
85 <goal>install-file</goal>
86 </goals>
87 <configuration>
88 <file>${project.basedir}/src/main/yang/appc-provider-lcm.yang</file>
89 <groupId>${project.groupId}</groupId>
90 <artifactId>${project.artifactId}</artifactId>
91 <version>${project.version}</version>
92 <packaging>yang</packaging>
93 </configuration>
94 </execution>
95 </executions>
96 </plugin>
97 </plugins>
98
99 </build>
100 <dependencies>
101 <dependency>
102 <groupId>org.opendaylight.mdsal</groupId>
103 <artifactId>yang-binding</artifactId>
104 </dependency>
105 <dependency>
106 <groupId>org.opendaylight.yangtools</groupId>
107 <artifactId>yang-common</artifactId>
108 </dependency>
109 <dependency>
110 <groupId>org.opendaylight.mdsal.model</groupId>
111 <artifactId>ietf-inet-types</artifactId>
112 </dependency>
113 <dependency>
114 <groupId>org.opendaylight.mdsal.model</groupId>
115 <artifactId>ietf-yang-types</artifactId>
116 </dependency>
117 </dependencies>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800118</project>