Changes to fix artifact handler
[appc.git] / appc-inbound / appc-artifact-handler / provider / 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-artifact-handler</artifactId>
29                 <groupId>org.onap.appc</groupId>
30                 <version>1.3.0-SNAPSHOT</version>
31         </parent>
32         <artifactId>appc-artifact-handler-provider</artifactId>
33         <packaging>bundle</packaging>
34
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                                                 <Bundle-SymbolicName>org.onap.appc.artifact.handler</Bundle-SymbolicName>
44                                                 <Bundle-Activator>org.onap.appc.artifact.handler.SdcArtifactHandlerActivator</Bundle-Activator>
45                                                 <Export-Package>org.onap.appc.artifact.handler,org.opendaylight.controller.config.yang.config.artifact-handler_provider.impl</Export-Package>
46                                                 <Import-Package>!com.google,!org.apache.commons.configuration,*;resolution:=optional</Import-Package>
47                                                 <Embed-Dependency>commons-configuration,guava,jackson-databind,jackson-annotations,jackson-core,jackson-dataformat-yaml,snakeyaml</Embed-Dependency>
48                                         </instructions>
49                                         <manifestLocation>${project.basedir}/src/main/resources/META-INF</manifestLocation>
50                                 </configuration>
51                         </plugin>
52             <plugin>
53                 <groupId>org.opendaylight.yangtools</groupId>
54                 <artifactId>yang-maven-plugin</artifactId>
55                 <version>${odl.yangtools.version}</version>
56                 <executions>
57                     <execution>
58                         <id>config</id>
59                         <goals>
60                             <goal>generate-sources</goal>
61                         </goals>
62                         <configuration>
63                             <codeGenerators>
64                                 <generator>
65                                     <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
66                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
67                                     <additionalConfiguration>
68                                         <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
69                                     </additionalConfiguration>
70                                 </generator>
71                                 <generator>
72                                     <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
73                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
74                                 </generator>
75                             </codeGenerators>
76                             <inspectDependencies>true</inspectDependencies>
77                         </configuration>
78                     </execution>
79                 </executions>
80                 <dependencies>
81                     <dependency>
82                         <groupId>org.opendaylight.mdsal</groupId>
83                         <artifactId>maven-sal-api-gen-plugin</artifactId>
84                         <version>${odl.sal.api.gen.plugin.version}</version>
85                         <type>jar</type>
86                     </dependency>
87                     <dependency>
88                         <groupId>org.opendaylight.controller</groupId>
89                         <artifactId>yang-jmx-generator-plugin</artifactId>
90                         <version>${odl.yang.jmx.generator.version}</version>
91                     </dependency>
92                 </dependencies>
93             </plugin>
94                         <plugin>
95                                 <groupId>org.codehaus.mojo</groupId>
96                                 <artifactId>build-helper-maven-plugin</artifactId>
97                                 <executions>
98                                         <execution>
99                                                 <id>attach-artifacts</id>
100                                                 <goals>
101                                                         <goal>attach-artifact</goal>
102                                                 </goals>
103                                                 <phase>package</phase>
104                                                 <configuration>
105                                                         <artifacts>
106                                                                 <artifact>
107                                                                         <file>${project.build.directory}/classes/initial/appc-artifact-handler-provider.xml</file>
108                                                                         <type>xml</type>
109                                                                         <classifier>config</classifier>
110                                                                 </artifact>
111                                                         </artifacts>
112                                                 </configuration>
113                                         </execution>
114                                 </executions>
115                         </plugin>
116                 </plugins>
117         </build>
118
119         <dependencies>
120                 <dependency>
121                         <groupId>org.onap.appc</groupId>
122                         <artifactId>appc-artifact-handler-model</artifactId>
123                         <version>${project.version}</version>
124                 </dependency>
125                 <dependency>
126                         <groupId>org.opendaylight.controller</groupId>
127                         <artifactId>config-api</artifactId>
128                 </dependency>
129                 <dependency>
130                         <groupId>org.onap.appc</groupId>
131                         <artifactId>appc-yang-generator</artifactId>
132                         <version>${project.version}</version>
133                 </dependency>
134
135                 <dependency>
136                         <groupId>org.opendaylight.controller</groupId>
137                         <artifactId>sal-binding-config</artifactId>
138                         </dependency>
139                 <dependency>
140                         <groupId>org.opendaylight.controller</groupId>
141                         <artifactId>sal-binding-api</artifactId>
142                         </dependency>
143                 <dependency>
144                         <groupId>org.opendaylight.mdsal</groupId>
145                         <artifactId>yang-binding</artifactId>
146                         </dependency>
147                 <dependency>
148                         <groupId>org.opendaylight.controller</groupId>
149                         <artifactId>sal-common-util</artifactId>
150                         </dependency>
151                 <dependency>
152                         <groupId>org.onap.ccsdk.sli.core</groupId>
153                         <artifactId>sli-common</artifactId>
154                 </dependency>
155                 <dependency>
156                         <groupId>org.onap.ccsdk.sli.core</groupId>
157                         <artifactId>sli-provider</artifactId>
158                 </dependency>
159                 <dependency>
160                         <groupId>commons-configuration</groupId>
161                         <artifactId>commons-configuration</artifactId>
162                         <version>1.10</version>
163                 </dependency>
164                 <dependency>
165                         <groupId>org.onap.appc</groupId>
166                         <artifactId>appc-config-params-provider</artifactId>
167                         <version>${project.version}</version>
168                 </dependency>
169                 <dependency>
170                         <artifactId>sal-test-model</artifactId>
171                         <groupId>org.opendaylight.controller</groupId>
172                         <scope>test</scope>
173                         </dependency>
174                 <dependency>
175                         <artifactId>sal-rest-connector</artifactId>
176                         <groupId>org.opendaylight.netconf</groupId>
177                         <scope>test</scope>
178                         </dependency>
179                 <dependency>
180                         <groupId>org.opendaylight.controller</groupId>
181                         <artifactId>sal-binding-broker-impl</artifactId>
182                         <scope>test</scope>
183                         </dependency>
184                 <dependency>
185                         <groupId>org.opendaylight.controller</groupId>
186                         <artifactId>sal-binding-broker-impl</artifactId>
187                         <version>${odl.mdsal.version}</version>
188                         <classifier>tests</classifier>
189                         <type>test-jar</type>
190                         <scope>test</scope>
191                 </dependency>
192                 <dependency>
193                         <groupId>com.att.eelf</groupId>
194                         <artifactId>eelf-core</artifactId>
195                 </dependency>
196                 <dependency>
197                         <groupId>junit</groupId>
198                         <artifactId>junit</artifactId>
199                         <scope>test</scope>
200                 </dependency>
201                 <dependency>
202                         <groupId>org.apache.commons</groupId>
203                         <artifactId>commons-lang3</artifactId>
204                 </dependency>
205                 <dependency>
206                         <groupId>org.json</groupId>
207                         <artifactId>json</artifactId>
208                 </dependency>
209                 <dependency>
210                         <groupId>org.onap.ccsdk.sli.adaptors</groupId>
211                         <artifactId>sql-resource-provider</artifactId>
212                         <version>${ccsdk.sli.adaptors.version}</version>
213                         <scope>compile</scope>
214                 </dependency>
215                 <dependency>
216                         <groupId>org.powermock</groupId>
217                         <artifactId>powermock-api-mockito</artifactId>
218                         <scope>test</scope>
219                 </dependency>
220                 <dependency>
221                         <groupId>org.mockito</groupId>
222                         <artifactId>mockito-core</artifactId>
223                         <scope>test</scope>
224                 </dependency>
225         </dependencies>
226 </project>