Release appc
[appc.git] / appc-directed-graph / dg-loader / 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         <groupId>org.onap.appc.plugins</groupId>
29         <artifactId>dg-loader</artifactId>
30         <version>1.6.3</version>
31     </parent>
32     <artifactId>dg-loader-provider</artifactId>
33     <packaging>bundle</packaging>
34     <name>APPC Directed Graph Loader - Provider</name>
35
36     <dependencies>
37         <dependency>
38             <groupId>org.onap.ccsdk.sli.core</groupId>
39             <artifactId>sli-provider</artifactId>
40             <version>${sdnctl.sli.version}</version>
41             <scope>compile</scope>
42             <exclusions>
43                 <exclusion>
44                     <groupId>org.slf4j</groupId>
45                     <artifactId>slf4j-api</artifactId>
46                 </exclusion>
47                 <exclusion>
48                     <groupId>org.slf4j</groupId>
49                     <artifactId>jcl-over-slf4j</artifactId>
50                 </exclusion>
51             </exclusions>
52         </dependency>
53         <dependency>
54             <groupId>commons-io</groupId>
55             <artifactId>commons-io</artifactId>
56         </dependency>
57         <dependency>
58             <groupId>com.att.eelf</groupId>
59             <artifactId>eelf-core</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>junit</groupId>
63             <artifactId>junit</artifactId>
64             <scope>test</scope>
65         </dependency>
66         <dependency>
67             <groupId>org.osgi</groupId>
68             <artifactId>org.osgi.core</artifactId>
69             <scope>provided</scope>
70         </dependency>
71         <dependency>
72             <groupId>org.slf4j</groupId>
73             <artifactId>slf4j-api</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.slf4j</groupId>
77             <artifactId>jcl-over-slf4j</artifactId>
78         </dependency>
79        <dependency>
80         <groupId>org.powermock</groupId>
81                 <artifactId>powermock-api-mockito</artifactId>
82                 <version>1.6.4</version>
83                 <scope>test</scope>
84         </dependency>
85         <dependency>
86             <groupId>org.mockito</groupId>
87             <artifactId>mockito-core</artifactId>
88             <scope>test</scope>
89         </dependency>
90
91     </dependencies>
92
93     <build>
94         <plugins>
95             <plugin>
96                 <groupId>org.apache.felix</groupId>
97                 <artifactId>maven-bundle-plugin</artifactId>
98                 <version>${bundle.plugin.version}</version>
99                 <extensions>true</extensions>
100                 <configuration>
101                     <instructions>
102                         <Bundle-SymbolicName>org.onap.sdnc.dg.loader</Bundle-SymbolicName>
103                         <Bundle-Activator>org.onap.sdnc.dg.loader.DGLoaderActivator</Bundle-Activator>
104                         <Export-Package>org.onap.sdnc.dg.loader</Export-Package>
105                         <Import-Package>*</Import-Package>
106                         <DynamicImport-Package>*</DynamicImport-Package>
107                         <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
108                     </instructions>
109                     <manifestLocation>${project.basedir}/src/main/resources/META-INF</manifestLocation>
110                 </configuration>
111             </plugin>
112
113             <plugin>
114                 <groupId>org.apache.maven.plugins</groupId>
115                 <artifactId>maven-assembly-plugin</artifactId>
116                 <version>2.4.1</version>
117                 <configuration>
118                     <descriptorRefs>
119                         <descriptorRef>jar-with-dependencies</descriptorRef>
120                     </descriptorRefs>
121                     <finalName>dg-loader</finalName>
122                     <archive>
123                         <manifest>
124                             <mainClass>org.onap.sdnc.dg.loader.DGXMLLoadNActivate</mainClass>
125                         </manifest>
126                     </archive>
127                     <attach>false</attach>
128                 </configuration>
129                 <executions>
130                     <execution>
131                         <id>make-assembly</id>
132                         <phase>package</phase>
133                         <goals>
134                             <goal>single</goal>
135                         </goals>
136                     </execution>
137                 </executions>
138             </plugin>
139             <!-- Adding this plugin to be able to deploy the dg-loader JAR with dependencies to the Nexus Repo.
140                  This is needed to be able to run the java cmds in 
141                  deployment.git/platform-logic/installer/src/main/scripts/install-converted-dgs.sh -->
142             <plugin>
143                 <groupId>org.apache.maven.plugins</groupId>
144                 <artifactId>maven-shade-plugin</artifactId>
145                 <version>2.0</version>
146                 <executions>
147                     <execution>
148                         <phase>package</phase>
149                         <goals>
150                             <goal>shade</goal>
151                         </goals>
152                         <configuration>
153                             <filters>
154                                 <filter>
155                                     <artifact>*:*</artifact>
156                                     <excludes>
157                                         <exclude>META-INF/*.SF</exclude>
158                                         <exclude>META-INF/*.DSA</exclude>
159                                         <exclude>META-INF/*.RSA</exclude>
160                                     </excludes>
161                                 </filter>
162                             </filters>
163                             <shadedArtifactAttached>true</shadedArtifactAttached>
164                             <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
165                         </configuration>
166                     </execution>
167                 </executions>
168             </plugin>
169
170         </plugins>
171     </build>
172 </project>