blob: 3abb4fefb90b178d10092793de43c06ff322d8ea [file] [log] [blame]
Skip Wonnellcf4b15a2017-08-15 21:18:04 -05001<?xml version="1.0" encoding="UTF-8"?>
Skip Wonnell574417b2017-08-28 22:02:54 -05002<!--
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 -->
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050025<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Hao Kuang58a71962017-09-01 14:11:57 +000026 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050027 <modelVersion>4.0.0</modelVersion>
28 <parent>
Patrick Brady07567592017-12-13 11:09:30 -080029 <groupId>org.onap.appc.plugins</groupId>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050030 <artifactId>dg-loader</artifactId>
Jessica Wagantall65367992017-11-16 17:22:13 -080031 <version>1.3.0-SNAPSHOT</version>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050032 </parent>
33 <artifactId>dg-loader-provider</artifactId>
34 <packaging>bundle</packaging>
Skip Wonnell574417b2017-08-28 22:02:54 -050035 <name>APPC Directed Graph Loader - Provider</name>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050036
37 <dependencies>
38 <dependency>
Patrick Brady76706002017-09-04 21:37:25 -070039 <groupId>org.onap.ccsdk.sli.core</groupId>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050040 <artifactId>sli-provider</artifactId>
41 <version>${sdnctl.sli.version}</version>
42 <scope>compile</scope>
Hao Kuang58a71962017-09-01 14:11:57 +000043 <exclusions>
44 <exclusion>
45 <groupId>org.slf4j</groupId>
46 <artifactId>slf4j-api</artifactId>
47 </exclusion>
48 <exclusion>
49 <groupId>org.slf4j</groupId>
50 <artifactId>jcl-over-slf4j</artifactId>
51 </exclusion>
52 </exclusions>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050053 </dependency>
54 <dependency>
55 <groupId>commons-io</groupId>
56 <artifactId>commons-io</artifactId>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050057 </dependency>
58 <dependency>
59 <groupId>com.att.eelf</groupId>
60 <artifactId>eelf-core</artifactId>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050061 </dependency>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050062 <dependency>
63 <groupId>junit</groupId>
64 <artifactId>junit</artifactId>
65 <scope>test</scope>
66 </dependency>
Hao Kuang58a71962017-09-01 14:11:57 +000067 <dependency>
68 <groupId>org.slf4j</groupId>
69 <artifactId>slf4j-api</artifactId>
70 </dependency>
71 <dependency>
72 <groupId>org.slf4j</groupId>
73 <artifactId>jcl-over-slf4j</artifactId>
74 </dependency>
Chaturvedi, Anand (ac204h)50fdfca2017-09-01 15:35:26 -040075 <dependency>
Skip Wonnellcaa57682017-12-23 00:18:18 -060076 <groupId>org.powermock</groupId>
Chaturvedi, Anand (ac204h)50fdfca2017-09-01 15:35:26 -040077 <artifactId>powermock-api-mockito</artifactId>
Patrick Brady76706002017-09-04 21:37:25 -070078 <version>1.6.4</version>
Chaturvedi, Anand (ac204h)50fdfca2017-09-01 15:35:26 -040079 <scope>test</scope>
80 </dependency>
81 <dependency>
82 <groupId>org.mockito</groupId>
83 <artifactId>mockito-core</artifactId>
84 <scope>test</scope>
85 </dependency>
86
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050087 </dependencies>
88
89 <build>
90 <plugins>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -050091 <plugin>
92 <groupId>org.apache.felix</groupId>
93 <artifactId>maven-bundle-plugin</artifactId>
94 <version>${bundle.plugin.version}</version>
95 <extensions>true</extensions>
96 <configuration>
97 <instructions>
Takamune Cho8491cc32017-12-19 10:48:02 -060098 <Bundle-SymbolicName>org.onap.sdnc.dg.loader</Bundle-SymbolicName>
99 <Bundle-Activator>org.onap.sdnc.dg.loader.DGLoaderActivator</Bundle-Activator>
100 <Export-Package>org.onap.sdnc.dg.loader</Export-Package>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -0500101 <Import-Package>*</Import-Package>
102 <DynamicImport-Package>*</DynamicImport-Package>
Hector Anapan-Lavalle7886ffe2017-10-25 18:04:31 -0400103 <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -0500104 </instructions>
105 <manifestLocation>${project.basedir}/src/main/resources/META-INF</manifestLocation>
106 </configuration>
107 </plugin>
108
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-assembly-plugin</artifactId>
112 <version>2.4.1</version>
113 <configuration>
114 <descriptorRefs>
115 <descriptorRef>jar-with-dependencies</descriptorRef>
116 </descriptorRefs>
117 <finalName>dg-loader</finalName>
118 <archive>
119 <manifest>
Takamune Cho8491cc32017-12-19 10:48:02 -0600120 <mainClass>org.onap.sdnc.dg.loader.DGXMLLoadNActivate</mainClass>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -0500121 </manifest>
122 </archive>
123 <attach>false</attach>
124 </configuration>
125 <executions>
126 <execution>
127 <id>make-assembly</id>
128 <phase>package</phase>
129 <goals>
130 <goal>single</goal>
131 </goals>
132 </execution>
133 </executions>
134 </plugin>
Hector Anapan-Lavalle7886ffe2017-10-25 18:04:31 -0400135 <!-- Adding this plugin to be able to deploy the dg-loader JAR with dependencies to the Nexus Repo.
136 This is needed to be able to run the java cmds in
137 deployment.git/platform-logic/installer/src/main/scripts/install-converted-dgs.sh -->
138 <plugin>
139 <groupId>org.apache.maven.plugins</groupId>
140 <artifactId>maven-shade-plugin</artifactId>
141 <version>2.0</version>
142 <executions>
143 <execution>
144 <phase>package</phase>
145 <goals>
146 <goal>shade</goal>
147 </goals>
148 <configuration>
149 <filters>
150 <filter>
151 <artifact>*:*</artifact>
152 <excludes>
153 <exclude>META-INF/*.SF</exclude>
154 <exclude>META-INF/*.DSA</exclude>
155 <exclude>META-INF/*.RSA</exclude>
156 </excludes>
157 </filter>
158 </filters>
159 <shadedArtifactAttached>true</shadedArtifactAttached>
160 <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
161 </configuration>
162 </execution>
163 </executions>
164 </plugin>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -0500165
166 </plugins>
Skip Wonnellcf4b15a2017-08-15 21:18:04 -0500167 </build>
168</project>