Resolve duplicate file name
[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.3.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                 <version>${odl.yangtools.yang.maven.plugin.version}</version>
54                                 <dependencies>
55                                         <dependency>
56                                                 <groupId>org.opendaylight.mdsal</groupId>
57                                                 <artifactId>maven-sal-api-gen-plugin</artifactId>
58                                                 <version>${odl.sal.api.gen.plugin.version}</version>
59                                                 <type>jar</type>
60                                         </dependency>
61                                         <dependency>
62                                                 <groupId>org.opendaylight.netconf</groupId>
63                                                 <artifactId>sal-rest-docgen-maven</artifactId>
64                                                 <version>${odl.restconf.version}</version>
65                                                 <type>jar</type>
66                                         </dependency>
67                                 </dependencies>
68                                 <executions>
69                                         <execution>
70                                                 <goals>
71                                                         <goal>generate-sources</goal>
72                                                 </goals>
73                                                 <configuration>
74                                                         <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
75                                                         <codeGenerators>
76                                                                 <generator>
77                                                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
78                                                                         <outputBaseDir>${salGeneratorPath}</outputBaseDir>
79                                                                 </generator>
80                                                                 <generator>
81                                                                         <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
82                                                                         <outputBaseDir>target/swagger</outputBaseDir>
83                                                                 </generator>
84                                                         </codeGenerators>
85                                                         <inspectDependencies>true</inspectDependencies>
86                                                 </configuration>
87                                         </execution>
88                                 </executions>
89                         </plugin>
90                         <plugin>
91                                 <groupId>org.codehaus.mojo</groupId>
92                                 <artifactId>exec-maven-plugin</artifactId>
93                                 <version>1.2.1</version>
94                                 <executions>
95                                         <execution>
96                                                 <configuration>
97                                                         <executable>python</executable>
98                                                         <arguments>
99                                                                 <argument>scripts/python/yang2props.py</argument>
100                                                                 <argument>src/main/yang/GENERIC-RESOURCE-API.yang</argument>
101                                                                 <argument>target/generic-resource-api.properties</argument>
102                                                         </arguments>
103                                                 </configuration>
104                                                 <id>generation</id>
105                                                 <phase>generate-resources</phase>
106                                                 <goals>
107                                                         <goal>exec</goal>
108                                                 </goals>
109                                         </execution>
110                                 </executions>
111                         </plugin>
112                         <plugin>
113                                 <groupId>org.codehaus.mojo</groupId>
114                                 <artifactId>build-helper-maven-plugin</artifactId>
115                                 <executions>
116                                         <execution>
117                                                 <id>attach-artifacts</id>
118                                                 <goals>
119                                                         <goal>attach-artifact</goal>
120                                                 </goals>
121                                                 <phase>package</phase>
122                                                 <configuration>
123                                                         <artifacts>
124                                                                 <artifact>
125                                                                         <file>${project.build.directory}/generic-resource-api.properties</file>
126                                                                         <type>properties</type>
127                                                                         <classifier>generic-resource-api</classifier>
128                                                                 </artifact>
129                                                         </artifacts>
130                                                 </configuration>
131                                         </execution>
132                                 </executions>
133                         </plugin>
134
135         </plugins>
136         <pluginManagement>
137             <plugins>
138                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
139                 <plugin>
140                     <groupId>org.eclipse.m2e</groupId>
141                     <artifactId>lifecycle-mapping</artifactId>
142                     <version>1.0.0</version>
143                     <configuration>
144                         <lifecycleMappingMetadata>
145                             <pluginExecutions>
146                                 <pluginExecution>
147                                     <pluginExecutionFilter>
148                                         <groupId>
149                                             org.codehaus.mojo
150                                         </groupId>
151                                         <artifactId>
152                                             exec-maven-plugin
153                                         </artifactId>
154                                         <versionRange>
155                                             [1.2.1,)
156                                         </versionRange>
157                                         <goals>
158                                             <goal>exec</goal>
159                                         </goals>
160                                     </pluginExecutionFilter>
161                                     <action>
162                                         <ignore />
163                                     </action>
164                                 </pluginExecution>
165                             </pluginExecutions>
166                         </lifecycleMappingMetadata>
167                     </configuration>
168                 </plugin>
169             </plugins>
170         </pluginManagement>
171         </build>
172 </project>