9a16ca65a8b16f8c0c16a4383c2b215b0f6be718
[appc.git] / appc-dg / appc-dg-shared / appc-dg-mdsal-store / appc-dg-mdsal-bundle / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
5   ================================================================================
6   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Copyright (C) 2017 Amdocs
9   =============================================================================
10   Licensed under the Apache License, Version 2.0 (the "License");
11   you may not use this file except in compliance with the License.
12   You may obtain a copy of the License at
13
14        http://www.apache.org/licenses/LICENSE-2.0
15
16   Unless required by applicable law or agreed to in writing, software
17   distributed under the License is distributed on an "AS IS" BASIS,
18   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   See the License for the specific language governing permissions and
20   limitations under the License.
21
22   ECOMP is a trademark and service mark of AT&T Intellectual Property.
23   ============LICENSE_END=========================================================
24   -->
25 <project xmlns="http://maven.apache.org/POM/4.0.0"
26          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
27          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
28     <modelVersion>4.0.0</modelVersion>
29     <parent>
30         <groupId>org.onap.appc</groupId>
31         <artifactId>appc-dg-mdsal-store</artifactId>
32         <version>1.3.0-SNAPSHOT</version>
33     </parent>
34
35     <artifactId>appc-dg-mdsal-bundle</artifactId>
36     <packaging>bundle</packaging>
37
38     <properties>
39         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40         <licenseDir>${project.parent.parent.parent.basedir}</licenseDir>
41     </properties>
42
43     <build>
44         <plugins>
45             <plugin>
46                 <groupId>org.apache.felix</groupId>
47                 <artifactId>maven-bundle-plugin</artifactId>
48                 <version>${bundle.plugin.version}</version>
49                 <extensions>true</extensions>
50                 <configuration>
51                     <instructions>
52                         <Export-Package>org.onap.appc.mdsal.*</Export-Package>
53                         <Import-Package>*;resolution:=optional</Import-Package>
54                         <DynamicImport-Package>*</DynamicImport-Package>
55                         <Embed-Transitive>true</Embed-Transitive>
56                     </instructions>
57                 </configuration>
58             </plugin>
59             <plugin>
60                 <groupId>org.opendaylight.yangtools</groupId>
61                 <artifactId>yang-maven-plugin</artifactId>
62                 <version>${odl.yangtools.version}</version>
63                 <executions>
64                     <execution>
65                         <id>config</id>
66                         <goals>
67                             <goal>generate-sources</goal>
68                         </goals>
69                         <configuration>
70                             <codeGenerators>
71                                 <generator>
72                                     <codeGeneratorClass>
73                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
74                                     </codeGeneratorClass>
75                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
76                                     <additionalConfiguration>
77                                         <namespaceToPackage1>
78                                             urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
79                                         </namespaceToPackage1>
80                                     </additionalConfiguration>
81                                 </generator>
82                                 <generator>
83                                     <codeGeneratorClass>
84                                         org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
85                                     </codeGeneratorClass>
86                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
87                                 </generator>
88                             </codeGenerators>
89                             <inspectDependencies>true</inspectDependencies>
90                         </configuration>
91                     </execution>
92                 </executions>
93                 <dependencies>
94                     <dependency>
95                         <groupId>org.opendaylight.mdsal</groupId>
96                         <artifactId>maven-sal-api-gen-plugin</artifactId>
97                         <version>${odl.sal.api.gen.plugin.version}</version>
98                         <type>jar</type>
99                     </dependency>
100                     <dependency>
101                         <groupId>org.opendaylight.controller</groupId>
102                         <artifactId>yang-jmx-generator-plugin</artifactId>
103                         <version>${odl.yang.jmx.generator.version}</version>
104                     </dependency>
105                 </dependencies>
106             </plugin>
107             <plugin>
108                 <groupId>org.codehaus.mojo</groupId>
109                 <artifactId>build-helper-maven-plugin</artifactId>
110                 <executions>
111                     <execution>
112                         <id>attach-artifacts</id>
113                         <goals>
114                             <goal>attach-artifact</goal>
115                         </goals>
116                         <phase>package</phase>
117                         <configuration>
118                             <artifacts>
119                                 <artifact>
120                                     <file>${project.build.directory}/classes/initial/appc-mdsal-store.xml</file>
121                                     <type>xml</type>
122                                     <classifier>config</classifier>
123                                 </artifact>
124                             </artifacts>
125                         </configuration>
126                     </execution>
127                 </executions>
128             </plugin>
129         </plugins>
130     </build>
131
132     <dependencies>
133         <dependency>
134             <groupId>junit</groupId>
135             <artifactId>junit</artifactId>
136             <scope>test</scope>
137         </dependency>
138         <dependency>
139             <groupId>org.opendaylight.controller</groupId>
140             <artifactId>config-api</artifactId>
141         </dependency>
142         <dependency>
143             <groupId>org.opendaylight.controller</groupId>
144             <artifactId>sal-binding-config</artifactId>
145         </dependency>
146         <dependency>
147             <groupId>org.opendaylight.controller</groupId>
148             <artifactId>sal-binding-api</artifactId>
149         </dependency>
150         <dependency>
151             <groupId>org.opendaylight.controller</groupId>
152             <artifactId>sal-common-util</artifactId>
153         </dependency>
154         <dependency>
155             <artifactId>sal-test-model</artifactId>
156             <groupId>org.opendaylight.controller</groupId>
157             <scope>test</scope>
158         </dependency>
159         <dependency>
160             <artifactId>sal-rest-connector</artifactId>
161             <groupId>org.opendaylight.netconf</groupId>
162             <scope>test</scope>
163         </dependency>
164         <dependency>
165             <groupId>org.opendaylight.controller</groupId>
166             <artifactId>sal-binding-broker-impl</artifactId>
167             <scope>test</scope>
168         </dependency>
169         <dependency>
170             <groupId>org.opendaylight.controller</groupId>
171             <artifactId>sal-binding-broker-impl</artifactId>
172             <classifier>tests</classifier>
173             <version>${odl.mdsal.version}</version>
174             <type>test-jar</type>
175             <scope>test</scope>
176         </dependency>
177         <dependency>
178             <groupId>org.onap.ccsdk.sli.core</groupId>
179             <artifactId>sli-common</artifactId>
180             <scope>compile</scope>
181             <!-- Added exclusion to prevent missing dependency issue on dblib -->
182             <exclusions>
183                 <exclusion>
184                     <groupId>org.onap.ccsdk.sli.core</groupId>
185                     <artifactId>dblib-provider</artifactId>
186                 </exclusion>
187             </exclusions>
188         </dependency>
189
190         <dependency>
191             <groupId>org.onap.ccsdk.sli.core</groupId>
192             <artifactId>sli-provider</artifactId>
193             <scope>compile</scope>
194             <!-- Added exclusion to prevent missing dependency issue on dblib -->
195             <exclusions>
196                 <exclusion>
197                     <groupId>org.onap.ccsdk.sli.core</groupId>
198                     <artifactId>dblib-provider</artifactId>
199                 </exclusion>
200             </exclusions>
201         </dependency>
202
203         <dependency>
204             <groupId>org.onap.appc</groupId>
205             <artifactId>appc-common</artifactId>
206             <version>${project.version}</version>
207         </dependency>
208         <dependency>
209             <groupId>org.onap.appc</groupId>
210             <artifactId>appc-dg-mdsal-model</artifactId>
211             <version>${project.version}</version>
212         </dependency>
213         <dependency>
214             <groupId>commons-io</groupId>
215             <artifactId>commons-io</artifactId>
216         </dependency>
217     </dependencies>
218 </project>