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