Added domain model package as bundle dependency
[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 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
27     <modelVersion>4.0.0</modelVersion>
28     <parent>
29         <artifactId>appc-provider</artifactId>
30         <groupId>org.openecomp.appc</groupId>
31         <version>1.1.0-SNAPSHOT</version>
32     </parent>
33     <artifactId>appc-provider-bundle</artifactId>
34     <packaging>bundle</packaging>
35     <build>
36         <plugins>
37             <plugin>
38                 <groupId>org.apache.felix</groupId>
39                 <artifactId>maven-bundle-plugin</artifactId>
40                 <extensions>true</extensions>
41                 <configuration>
42                     <instructions>
43                         <Export-Package>org.opendaylight.controller.config.yang.config.sample_provider.impl</Export-Package>
44                         <Export-Package>org.openecomp.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.openecomp.appc.domainmodel.lcm,
49                             org.openecomp.appc.i18n,
50                             org.openecomp.appc.logging,
51                             org.openecomp.appc.util,
52                             com.att.eelf.configuration,
53                             com.att.eelf.i18n,
54                             *;resolution:=optional
55                         </Import-Package>
56                         <Embed-Dependency>
57                             appc-common;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>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
77                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
78                                     <additionalConfiguration>
79                                         <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
80                                     </additionalConfiguration>
81                                 </generator>
82                                 <generator>
83                                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
84                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
85                                 </generator>
86                             </codeGenerators>
87                             <inspectDependencies>true</inspectDependencies>
88                         </configuration>
89                     </execution>
90                 </executions>
91                 <dependencies>
92                     <dependency>
93                         <groupId>org.opendaylight.mdsal</groupId>
94                         <artifactId>maven-sal-api-gen-plugin</artifactId>
95                         <version>${odl.sal.api.gen.plugin.version}</version>
96                         <type>jar</type>
97                     </dependency>
98                     <dependency>
99                         <groupId>org.opendaylight.controller</groupId>
100                         <artifactId>yang-jmx-generator-plugin</artifactId>
101                         <version>${odl.yang.jmx.generator.version}</version>
102                     </dependency>
103                 </dependencies>
104             </plugin>
105             <plugin>
106                 <groupId>org.codehaus.mojo</groupId>
107                 <artifactId>build-helper-maven-plugin</artifactId>
108                 <executions>
109                     <execution>
110                         <id>attach-artifacts</id>
111                         <goals>
112                             <goal>attach-artifact</goal>
113                         </goals>
114                         <phase>package</phase>
115                         <configuration>
116                             <artifacts>
117                                 <artifact>
118                                     <file>${project.build.directory}/classes/initial/appc-provider.xml</file>
119                                     <type>xml</type>
120                                     <classifier>config</classifier>
121                                 </artifact>
122                             </artifacts>
123                         </configuration>
124                     </execution>
125                 </executions>
126             </plugin>
127         </plugins>
128         <pluginManagement>
129             <plugins>
130                 <!--This plugin's configuration is used to store Eclipse 
131                     m2e settings only. It has no influence on the Maven build itself. -->
132                 <plugin>
133                     <groupId>org.eclipse.m2e</groupId>
134                     <artifactId>lifecycle-mapping</artifactId>
135                     <version>1.0.0</version>
136                     <configuration>
137                         <lifecycleMappingMetadata>
138                             <pluginExecutions>
139                                 <pluginExecution>
140                                     <pluginExecutionFilter>
141                                         <groupId>org.codehaus.mojo</groupId>
142                                         <artifactId>build-helper-maven-plugin</artifactId>
143                                         <versionRange>[1.9.1,)</versionRange>
144                                         <goals>
145                                             <goal>add-source</goal>
146                                         </goals>
147                                     </pluginExecutionFilter>
148                                     <action>
149                                         <ignore />
150                                     </action>
151                                 </pluginExecution>
152                             </pluginExecutions>
153                         </lifecycleMappingMetadata>
154                     </configuration>
155                 </plugin>
156             </plugins>
157         </pluginManagement>
158     </build>
159     <dependencies>
160         <dependency>
161             <groupId>org.openecomp.appc</groupId>
162             <artifactId>appc-request-handler-api</artifactId>
163             <version>${project.version}</version>
164             <type>bundle</type>
165             <scope>provided</scope>
166 <!--             <exclusions> -->
167 <!--                 <exclusion> -->
168 <!--                     <groupId>org.openecomp.appc</groupId> -->
169 <!--                     <artifactId>domain-model-lib</artifactId> -->
170 <!--                 </exclusion> -->
171 <!--             </exclusions> -->
172         </dependency>
173         <dependency>
174             <groupId>org.openecomp.appc</groupId>
175             <artifactId>appc-common</artifactId>
176             <version>${project.version}</version>
177 <!--             <classifier>jar-with-dependencies</classifier> -->
178         </dependency>
179         <dependency>
180             <groupId>org.openecomp.appc</groupId>
181             <artifactId>appc-provider-model</artifactId>
182             <version>${project.version}</version>
183         </dependency>
184
185         <!-- ADDED THIS ARTIFACT TO BE ABLE TO FIND org.openecomp.appc.domainmodel.lcm -->
186 <!--         <dependency> -->
187 <!--             <groupId>org.openecomp.appc</groupId> -->
188 <!--             <artifactId>domain-model-lib</artifactId> -->
189 <!--             <version>${project.version}</version> -->
190 <!--         </dependency> -->
191
192         <dependency>
193             <groupId>org.opendaylight.controller</groupId>
194             <artifactId>config-api</artifactId>
195         </dependency>
196         <dependency>
197             <groupId>org.opendaylight.controller</groupId>
198             <artifactId>sal-binding-config</artifactId>
199         </dependency>
200         <dependency>
201             <groupId>org.opendaylight.controller</groupId>
202             <artifactId>sal-binding-api</artifactId>
203         </dependency>
204         <dependency>
205             <groupId>org.opendaylight.controller</groupId>
206             <artifactId>sal-common-util</artifactId>
207         </dependency>
208         <dependency>
209             <groupId>org.openecomp.sdnc.core</groupId>
210             <artifactId>sli-common</artifactId>
211         </dependency>
212         <dependency>
213             <groupId>org.openecomp.sdnc.core</groupId>
214             <artifactId>sli-provider</artifactId>
215         </dependency>
216         <dependency>
217             <artifactId>sal-test-model</artifactId>
218             <groupId>org.opendaylight.controller</groupId>
219             <scope>test</scope>
220         </dependency>
221         <dependency>
222             <artifactId>sal-rest-connector</artifactId>
223             <groupId>org.opendaylight.netconf</groupId>
224             <scope>test</scope>
225         </dependency>
226         <dependency>
227             <groupId>org.opendaylight.controller</groupId>
228             <artifactId>sal-binding-broker-impl</artifactId>
229             <scope>test</scope>
230         </dependency>
231         <dependency>
232             <groupId>org.opendaylight.controller</groupId>
233             <artifactId>sal-binding-broker-impl</artifactId>
234             <classifier>tests</classifier>
235             <version>${odl.mdsal.version}</version>
236             <type>test-jar</type>
237             <scope>test</scope>
238         </dependency>
239         <dependency>
240             <groupId>junit</groupId>
241             <artifactId>junit</artifactId>
242             <scope>test</scope>
243         </dependency>
244         <!-- TEMP CODE -->
245         <dependency>
246             <groupId>org.json</groupId>
247             <artifactId>json</artifactId>
248         </dependency>
249     </dependencies>
250 </project>