Refer JUNIT version of parent pom.
[sdnc/northbound.git] / generic-resource-api / provider / 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.provider</artifactId>
12         <packaging>bundle</packaging>
13
14         <dependencies>
15                 <dependency>
16                         <groupId>org.onap.sdnc.northbound</groupId>
17                         <artifactId>generic-resource-api.model</artifactId>
18                 </dependency>
19                 <dependency>
20                         <groupId>org.opendaylight.controller</groupId>
21                         <artifactId>config-api</artifactId>
22                         <version>${odl.controller.config.api.version}</version>
23                 </dependency>
24                 <dependency>
25                         <groupId>org.opendaylight.controller</groupId>
26                         <artifactId>sal-binding-config</artifactId>
27                         <version>${odl.mdsal.version}</version>
28                 </dependency>
29                 <dependency>
30                         <groupId>org.opendaylight.controller</groupId>
31                         <artifactId>sal-binding-api</artifactId>
32                         <version>${odl.mdsal.version}</version>
33                 </dependency>
34                 <dependency>
35                         <groupId>org.opendaylight.controller</groupId>
36                         <artifactId>sal-common-util</artifactId>
37                         <version>${odl.mdsal.version}</version>
38                 </dependency>
39
40         <!--
41                 <dependency>
42                         <groupId>org.opendaylight.controller</groupId>
43                         <artifactId>sal-test-model</artifactId>
44                         <version>${odl.mdsal.version}</version>
45                         <scope>test</scope>
46                 </dependency>
47                 <dependency>
48                         <groupId>org.opendaylight.netconf</groupId>
49                         <artifactId>sal-rest-connector</artifactId>
50                         <version>${odl.mdsal.version}</version>
51                         <scope>test</scope>
52                 </dependency>
53
54                 <dependency>
55                         <groupId>org.opendaylight.controller</groupId>
56                         <artifactId>sal-binding-broker-impl</artifactId>
57                         <version>${odl.mdsal.version}</version>
58                         <scope>test</scope>
59                 </dependency>
60                 <dependency>
61                         <groupId>org.opendaylight.controller</groupId>
62                         <artifactId>sal-binding-broker-impl</artifactId>
63                         <version>${odl.mdsal.version}}</version>
64                         <type>test-jar</type>
65                         <classifier>tests</classifier>
66                         <scope>test</scope>
67                 </dependency>
68         -->
69                 <dependency>
70                         <groupId>org.apache.commons</groupId>
71                         <artifactId>commons-lang3</artifactId>
72                 </dependency>
73
74         <dependency>
75             <groupId>org.onap.ccsdk.sli.core</groupId>
76             <artifactId>sli-common</artifactId>
77             <version>${sdnctl.sli.version}</version>
78         </dependency>
79                 <dependency>
80                         <groupId>junit</groupId>
81                         <artifactId>junit</artifactId>
82                         <version>${junit.version}</version>
83                         <scope>test</scope>
84                 </dependency>
85         <dependency>
86             <groupId>org.onap.ccsdk.sli.core</groupId>
87             <artifactId>sli-provider</artifactId>
88             <version>${sdnctl.sli.version}</version>
89         </dependency>
90         </dependencies>
91
92         <build>
93             <plugins>
94         <!--
95                 <plugin>
96                 <groupId>com.brocade.tools</groupId>
97                     <artifactId>providermodule-plugin</artifactId>
98                     <version>1.0.0-SNAPSHOT</version>
99                     <configuration>
100                         <packageId>org.onap.sdnc.northbound</packageId>
101                         <appName>generic-resource-api</appName>
102                     </configuration>
103                     <executions>
104                        <execution>
105                           <phase>process-sources</phase>
106                           <goals>
107                               <goal>process</goal>
108                           </goals>
109                     </execution>
110                 </executions>
111             </plugin>
112             -->
113                         <plugin>
114                                 <groupId>org.apache.felix</groupId>
115                                 <artifactId>maven-bundle-plugin</artifactId>
116                                 <extensions>true</extensions>
117                                 <configuration>
118                                         <instructions>
119                                                 <Export-Package>org.opendaylight.controller.config.yang.config.generic-resource-api_provider.impl</Export-Package>
120                                                 <Import-Package>*</Import-Package>
121                                         </instructions>
122                                 </configuration>
123                         </plugin>
124                         <plugin>
125                                 <groupId>org.opendaylight.yangtools</groupId>
126                                 <artifactId>yang-maven-plugin</artifactId>
127                                 <executions>
128                                         <execution>
129                                                 <id>config</id>
130                                                 <goals>
131                                                         <goal>generate-sources</goal>
132                                                 </goals>
133                                                 <configuration>
134                                                         <codeGenerators>
135                                                                 <generator>
136                                                                         <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
137                                                                         <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
138                                                                         <additionalConfiguration>
139                                                                                 <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
140                                                                         </additionalConfiguration>
141                                                                 </generator>
142                                                                 <generator>
143                                                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
144                                                                         <outputBaseDir>${salGeneratorPath}</outputBaseDir>
145                                                                 </generator>
146                                                         </codeGenerators>
147                                                         <inspectDependencies>true</inspectDependencies>
148                                                 </configuration>
149                                         </execution>
150                                 </executions>
151                                 <dependencies>
152                                         <dependency>
153                                                 <groupId>org.opendaylight.mdsal</groupId>
154                                                 <artifactId>maven-sal-api-gen-plugin</artifactId>
155                                                 <version>${odl.sal.api.gen.plugin.version}</version>
156                                                 <type>jar</type>
157                                         </dependency>
158                                         <dependency>
159                                                 <groupId>org.opendaylight.controller</groupId>
160                                                 <artifactId>yang-jmx-generator-plugin</artifactId>
161                                                 <version>${odl.yang.jmx.generator.version}</version>
162                                         </dependency>
163                                 </dependencies>
164                         </plugin>
165                         <plugin>
166                                 <groupId>org.codehaus.mojo</groupId>
167                                 <artifactId>build-helper-maven-plugin</artifactId>
168                                 <executions>
169                                         <execution>
170                                                 <id>attach-artifacts</id>
171                                                 <goals>
172                                                         <goal>attach-artifact</goal>
173                                                 </goals>
174                                                 <phase>package</phase>
175                                                 <configuration>
176                                                         <artifacts>
177                                                                 <artifact>
178                                                                         <file>${project.build.directory}/classes/initial/generic-resource-api-provider.xml</file>
179                                                                         <type>xml</type>
180                                                                         <classifier>config</classifier>
181                                                                 </artifact>
182                                                         </artifacts>
183                                                 </configuration>
184                                         </execution>
185                                 </executions>
186                         </plugin>
187                 </plugins>
188         </build>
189 </project>