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.0</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.slf4j</groupId>
68             <artifactId>slf4j-api</artifactId>
69         </dependency>
70         <dependency>
71             <groupId>org.slf4j</groupId>
72             <artifactId>jcl-over-slf4j</artifactId>
73         </dependency>
74        <dependency>
75         <groupId>org.powermock</groupId>
76                 <artifactId>powermock-api-mockito</artifactId>
77                 <version>1.6.4</version>
78                 <scope>test</scope>
79         </dependency>
80         <dependency>
81             <groupId>org.mockito</groupId>
82             <artifactId>mockito-core</artifactId>
83             <scope>test</scope>
84         </dependency>
85
86     </dependencies>
87
88     <build>
89         <plugins>
90             <plugin>
91                 <groupId>org.apache.felix</groupId>
92                 <artifactId>maven-bundle-plugin</artifactId>
93                 <version>${bundle.plugin.version}</version>
94                 <extensions>true</extensions>
95                 <configuration>
96                     <instructions>
97                         <Bundle-SymbolicName>org.onap.sdnc.dg.loader</Bundle-SymbolicName>
98                         <Bundle-Activator>org.onap.sdnc.dg.loader.DGLoaderActivator</Bundle-Activator>
99                         <Export-Package>org.onap.sdnc.dg.loader</Export-Package>
100                         <Import-Package>*</Import-Package>
101                         <DynamicImport-Package>*</DynamicImport-Package>
102                         <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
103                     </instructions>
104                     <manifestLocation>${project.basedir}/src/main/resources/META-INF</manifestLocation>
105                 </configuration>
106             </plugin>
107
108             <plugin>
109                 <groupId>org.apache.maven.plugins</groupId>
110                 <artifactId>maven-assembly-plugin</artifactId>
111                 <version>2.4.1</version>
112                 <configuration>
113                     <descriptorRefs>
114                         <descriptorRef>jar-with-dependencies</descriptorRef>
115                     </descriptorRefs>
116                     <finalName>dg-loader</finalName>
117                     <archive>
118                         <manifest>
119                             <mainClass>org.onap.sdnc.dg.loader.DGXMLLoadNActivate</mainClass>
120                         </manifest>
121                     </archive>
122                     <attach>false</attach>
123                 </configuration>
124                 <executions>
125                     <execution>
126                         <id>make-assembly</id>
127                         <phase>package</phase>
128                         <goals>
129                             <goal>single</goal>
130                         </goals>
131                     </execution>
132                 </executions>
133             </plugin>
134             <!-- Adding this plugin to be able to deploy the dg-loader JAR with dependencies to the Nexus Repo.
135                  This is needed to be able to run the java cmds in 
136                  deployment.git/platform-logic/installer/src/main/scripts/install-converted-dgs.sh -->
137             <plugin>
138                 <groupId>org.apache.maven.plugins</groupId>
139                 <artifactId>maven-shade-plugin</artifactId>
140                 <version>2.0</version>
141                 <executions>
142                     <execution>
143                         <phase>package</phase>
144                         <goals>
145                             <goal>shade</goal>
146                         </goals>
147                         <configuration>
148                             <filters>
149                                 <filter>
150                                     <artifact>*:*</artifact>
151                                     <excludes>
152                                         <exclude>META-INF/*.SF</exclude>
153                                         <exclude>META-INF/*.DSA</exclude>
154                                         <exclude>META-INF/*.RSA</exclude>
155                                     </excludes>
156                                 </filter>
157                             </filters>
158                             <shadedArtifactAttached>true</shadedArtifactAttached>
159                             <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
160                         </configuration>
161                     </execution>
162                 </executions>
163             </plugin>
164
165         </plugins>
166     </build>
167 </project>