blob: 8b4ebdcdb097db9525b616cf095efb8e1f7309a4 [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"
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-provider</artifactId>
7 <groupId>org.openecomp.appc</groupId>
8 <version>1.0.0</version>
9 </parent>
10 <artifactId>appc-provider-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 <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.yangtools.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.yangtools.maven.sal.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>
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 </plugins>
77 </build>
78 <dependencies>
79 <dependency>
80 <groupId>org.opendaylight.mdsal</groupId>
81 <artifactId>yang-binding</artifactId>
82 </dependency>
83 <dependency>
84 <groupId>org.opendaylight.yangtools</groupId>
85 <artifactId>yang-common</artifactId>
86 </dependency>
87 <dependency>
88 <groupId>org.opendaylight.mdsal.model</groupId>
89 <artifactId>ietf-inet-types</artifactId>
90 </dependency>
91 <dependency>
92 <groupId>org.opendaylight.mdsal.model</groupId>
93 <artifactId>ietf-yang-types</artifactId>
94 </dependency>
95 </dependencies>
96</project>