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