Karaf 4 for appc-inbound
[appc.git] / appc-provider / appc-provider-bundle / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  ============LICENSE_START=======================================================
4  ONAP : APPC
5  ================================================================================
6  Copyright (C) 2017-2018 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  ============LICENSE_END=========================================================
23 -->
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26     <modelVersion>4.0.0</modelVersion>
27     <parent>
28         <artifactId>appc-provider</artifactId>
29         <groupId>org.onap.appc</groupId>
30         <version>1.4.0-SNAPSHOT</version>
31     </parent>
32     <artifactId>appc-provider-bundle</artifactId>
33     <packaging>bundle</packaging>
34     <build>
35         <plugins>
36             <plugin>
37                 <groupId>org.apache.felix</groupId>
38                 <artifactId>maven-bundle-plugin</artifactId>
39                 <extensions>true</extensions>
40                 <configuration>
41                     <instructions>
42                         <Export-Package>org.opendaylight.controller.config.yang.config.sample_provider.impl
43                         </Export-Package>
44                         <Export-Package>org.onap.appc.provider</Export-Package>
45                         <!-- <Import-Package>!groovy.lang,!javax.jms,!org.codehaus.commons.compiler,!org.codehaus.groovy.*,!org.codehaus.janino,!com.ibm.icu.*,!com.sun.faces.*,!org.apache.log,*;resolution:=optional</Import-Package> -->
46                         <!-- <Embed-Dependency>appc-common,eelf-core,logback-core,logback-classic;scope=compile|runtime;inline=false,domain-model-lib,appc-command-executor-api,appc-request-handler-api</Embed-Dependency> -->
47                         <Import-Package>
48                             org.onap.appc.domainmodel.lcm,
49                             org.onap.appc.i18n,
50                             org.onap.appc.logging,
51                             org.onap.appc.util,
52                             com.att.eelf.configuration,
53                             com.att.eelf.i18n,
54                             *;resolution:=optional
55                         </Import-Package>
56                         <Embed-Dependency>
57                             appc-common,org.apache.http;scope=compile|runtime;inline=false
58                         </Embed-Dependency>
59                         <Embed-Transitive>true</Embed-Transitive>
60                     </instructions>
61                 </configuration>
62             </plugin>
63             <plugin>
64                 <groupId>org.opendaylight.yangtools</groupId>
65                 <artifactId>yang-maven-plugin</artifactId>
66                 <version>${odl.yangtools.version}</version>
67                 <executions>
68                     <execution>
69                         <id>config</id>
70                         <goals>
71                             <goal>generate-sources</goal>
72                         </goals>
73                         <configuration>
74                             <codeGenerators>
75                                 <generator>
76                                     <codeGeneratorClass>
77                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
78                                     </codeGeneratorClass>
79                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
80                                     <additionalConfiguration>
81                                         <namespaceToPackage1>
82                                             urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
83                                         </namespaceToPackage1>
84                                     </additionalConfiguration>
85                                 </generator>
86                                 <generator>
87                                     <codeGeneratorClass>
88                                         org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
89                                     </codeGeneratorClass>
90                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
91                                 </generator>
92                             </codeGenerators>
93                             <inspectDependencies>true</inspectDependencies>
94                         </configuration>
95                     </execution>
96                 </executions>
97                 <dependencies>
98                     <dependency>
99                         <groupId>org.opendaylight.mdsal</groupId>
100                         <artifactId>maven-sal-api-gen-plugin</artifactId>
101                         <version>${odl.sal.api.gen.plugin.version}</version>
102                         <type>jar</type>
103                     </dependency>
104                     <dependency>
105                         <groupId>org.opendaylight.controller</groupId>
106                         <artifactId>yang-jmx-generator-plugin</artifactId>
107                         <version>${odl.yang.jmx.generator.version}</version>
108                     </dependency>
109                 </dependencies>
110             </plugin>
111             <plugin>
112                 <groupId>org.codehaus.mojo</groupId>
113                 <artifactId>build-helper-maven-plugin</artifactId>
114                 <executions>
115                     <execution>
116                         <id>attach-artifacts</id>
117                         <goals>
118                             <goal>attach-artifact</goal>
119                         </goals>
120                         <phase>package</phase>
121                         <configuration>
122                             <artifacts>
123                                 <artifact>
124                                     <file>${project.build.directory}/classes/initial/appc-provider.xml</file>
125                                     <type>xml</type>
126                                     <classifier>config</classifier>
127                                 </artifact>
128                             </artifacts>
129                         </configuration>
130                     </execution>
131                 </executions>
132             </plugin>
133         </plugins>
134         <pluginManagement>
135             <plugins>
136                 <!--This plugin's configuration is used to store Eclipse 
137                     m2e settings only. It has no influence on the Maven build itself. -->
138                 <plugin>
139                     <groupId>org.eclipse.m2e</groupId>
140                     <artifactId>lifecycle-mapping</artifactId>
141                     <version>1.0.0</version>
142                     <configuration>
143                         <lifecycleMappingMetadata>
144                             <pluginExecutions>
145                                 <pluginExecution>
146                                     <pluginExecutionFilter>
147                                         <groupId>org.codehaus.mojo</groupId>
148                                         <artifactId>build-helper-maven-plugin</artifactId>
149                                         <versionRange>[1.9.1,)</versionRange>
150                                         <goals>
151                                             <goal>add-source</goal>
152                                         </goals>
153                                     </pluginExecutionFilter>
154                                     <action>
155                                         <ignore/>
156                                     </action>
157                                 </pluginExecution>
158                             </pluginExecutions>
159                         </lifecycleMappingMetadata>
160                     </configuration>
161                 </plugin>
162             </plugins>
163         </pluginManagement>
164     </build>
165     <dependencies>
166         <dependency>
167             <groupId>org.onap.appc</groupId>
168             <artifactId>appc-request-handler-api</artifactId>
169             <version>${project.version}</version>
170             <type>bundle</type>
171             <scope>provided</scope>
172             <!--             <exclusions> -->
173             <!--                 <exclusion> -->
174             <!--                     <groupId>org.onap.appc</groupId> -->
175             <!--                     <artifactId>domain-model-lib</artifactId> -->
176             <!--                 </exclusion> -->
177             <!--             </exclusions> -->
178         </dependency>
179         <dependency>
180             <groupId>org.onap.appc</groupId>
181             <artifactId>appc-common</artifactId>
182             <version>${project.version}</version>
183             <!--             <classifier>jar-with-dependencies</classifier> -->
184         </dependency>
185         <dependency>
186             <groupId>org.onap.appc</groupId>
187             <artifactId>appc-provider-model</artifactId>
188             <version>${project.version}</version>
189         </dependency>
190
191         <!-- ADDED THIS ARTIFACT TO BE ABLE TO FIND org.onap.appc.domainmodel.lcm -->
192         <!--         <dependency> -->
193         <!--             <groupId>org.onap.appc</groupId> -->
194         <!--             <artifactId>domain-model-lib</artifactId> -->
195         <!--             <version>${project.version}</version> -->
196         <!--         </dependency> -->
197
198         <dependency>
199             <groupId>org.opendaylight.controller</groupId>
200             <artifactId>config-api</artifactId>
201         </dependency>
202         <dependency>
203             <groupId>org.opendaylight.controller</groupId>
204             <artifactId>sal-binding-config</artifactId>
205         </dependency>
206         <dependency>
207             <groupId>org.opendaylight.controller</groupId>
208             <artifactId>sal-binding-api</artifactId>
209         </dependency>
210         <dependency>
211             <groupId>org.opendaylight.controller</groupId>
212             <artifactId>sal-common-util</artifactId>
213         </dependency>
214         <dependency>
215             <groupId>org.onap.ccsdk.sli.core</groupId>
216             <artifactId>sli-common</artifactId>
217         </dependency>
218         <dependency>
219             <groupId>org.onap.ccsdk.sli.core</groupId>
220             <artifactId>sli-provider</artifactId>
221         </dependency>
222         <dependency>
223             <artifactId>sal-test-model</artifactId>
224             <groupId>org.opendaylight.controller</groupId>
225             <scope>test</scope>
226         </dependency>
227         <dependency>
228             <groupId>org.opendaylight.controller</groupId>
229             <artifactId>sal-binding-broker-impl</artifactId>
230             <scope>test</scope>
231         </dependency>
232         <dependency>
233             <groupId>org.opendaylight.controller</groupId>
234             <artifactId>sal-binding-broker-impl</artifactId>
235             <classifier>tests</classifier>
236             <version>${odl.mdsal.version}</version>
237             <type>test-jar</type>
238             <scope>test</scope>
239         </dependency>
240         <dependency>
241             <groupId>junit</groupId>
242             <artifactId>junit</artifactId>
243             <scope>test</scope>
244         </dependency>
245         <dependency>
246             <groupId>org.mockito</groupId>
247             <artifactId>mockito-core</artifactId>
248             <scope>test</scope>
249         </dependency>
250         <dependency>
251             <groupId>org.powermock</groupId>
252             <artifactId>powermock-api-mockito</artifactId>
253             <scope>test</scope>
254         </dependency>
255         <dependency>
256             <groupId>org.powermock</groupId>
257             <artifactId>powermock-module-junit4</artifactId>
258             <scope>test</scope>
259         </dependency>
260         <!-- TEMP CODE -->
261         <dependency>
262             <groupId>org.json</groupId>
263             <artifactId>json</artifactId>
264         </dependency>
265     </dependencies>
266 </project>