blob: 329f566ed06192160ebdbfe8803a1eb1c21ddbfc [file] [log] [blame]
Skip Wonnell8c4b89b2018-01-12 09:24:03 -06001<!--
2 ============LICENSE_START=======================================================
3 ONAP : APPC
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 Copyright (C) 2017 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 -->
Patrick Brady57b5eef2017-02-10 15:00:49 -080022<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">
23 <modelVersion>4.0.0</modelVersion>
24 <parent>
Patrick Brady07567592017-12-13 11:09:30 -080025 <groupId>org.onap.appc</groupId>
Patrick Brady57b5eef2017-02-10 15:00:49 -080026 <artifactId>appc</artifactId>
Jessica Wagantall65367992017-11-16 17:22:13 -080027 <version>1.3.0-SNAPSHOT</version>
Patrick Bradyc7d00752017-06-01 10:45:37 -070028 </parent>
29 <artifactId>appc-common</artifactId>
30 <name>APP-C Common</name>
31 <packaging>bundle</packaging>
32 <description>Common library shared across all modules</description>
Patrick Brady57b5eef2017-02-10 15:00:49 -080033
34<!-- <packaging>bundle</packaging> -->
35
36 <dependencies>
37 <dependency>
38 <groupId>junit</groupId>
39 <artifactId>junit</artifactId>
40 <scope>test</scope>
41 </dependency>
42
43 <dependency>
44 <groupId>ch.qos.logback</groupId>
45 <artifactId>logback-core</artifactId>
46 <scope>compile</scope>
47 </dependency>
48
49 <dependency>
50 <groupId>ch.qos.logback</groupId>
51 <artifactId>logback-classic</artifactId>
52 <scope>compile</scope>
53 </dependency>
54
55 <dependency>
56 <groupId>org.slf4j</groupId>
57 <artifactId>slf4j-api</artifactId>
58 </dependency>
59
60 <!-- Needed for EELF (Event and Error Logging Framework) support -->
61 <dependency>
62 <groupId>com.att.eelf</groupId>
63 <artifactId>eelf-core</artifactId>
64 </dependency>
65
66 <!-- Needed for encryption -->
67 <dependency>
68 <groupId>org.jasypt</groupId>
69 <artifactId>jasypt</artifactId>
70 <version>1.9.2</version>
71<!-- <classifier>lite</classifier> -->
72 <scope>compile</scope>
73 </dependency>
74
75 <dependency>
76 <groupId>org.apache.commons</groupId>
77 <artifactId>commons-lang3</artifactId>
78 </dependency>
79
80 <dependency>
81 <groupId>javax</groupId>
82 <artifactId>javaee-api</artifactId>
83 <version>7.0</version>
84 </dependency>
85 <dependency>
86 <groupId>org.apache.httpcomponents</groupId>
87 <artifactId>httpclient</artifactId>
88 <version>4.5.1</version>
89 </dependency>
90 <dependency>
91 <groupId>org.apache.httpcomponents</groupId>
92 <artifactId>httpcore</artifactId>
93 <version>${apache.httpcomponents.version}</version>
94 </dependency>
95 <dependency>
96 <groupId>com.fasterxml.jackson.core</groupId>
97 <artifactId>jackson-core</artifactId>
98 </dependency>
99 <dependency>
100 <groupId>com.fasterxml.jackson.core</groupId>
101 <artifactId>jackson-databind</artifactId>
102 </dependency>
103 <dependency>
104 <groupId>com.fasterxml.jackson.core</groupId>
105 <artifactId>jackson-annotations</artifactId>
106 </dependency>
Patrick Bradyc7d00752017-06-01 10:45:37 -0700107 <dependency>
Patrick Brady76706002017-09-04 21:37:25 -0700108 <groupId>org.onap.ccsdk.sli.core</groupId>
Patrick Bradyc7d00752017-06-01 10:45:37 -0700109 <artifactId>dblib-provider</artifactId>
110 </dependency>
111 <dependency>
112 <groupId>org.mockito</groupId>
113 <artifactId>mockito-core</artifactId>
114 <scope>test</scope>
115 </dependency>
beili.zhouab6544c2017-09-22 17:16:48 -0400116 <dependency>
beili.zhoucf896d82017-09-27 14:37:10 -0400117 <groupId>org.powermock</groupId>
118 <artifactId>powermock-reflect</artifactId>
119 </dependency>
120 <dependency>
121 <groupId>org.powermock</groupId>
122 <artifactId>powermock-module-junit4</artifactId>
123 </dependency>
124 <dependency>
125 <groupId>org.powermock</groupId>
126 <artifactId>powermock-api-mockito</artifactId>
127 </dependency>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800128
129 </dependencies>
130
131 <build>
132 <resources>
133 <resource>
134 <directory>src/main/resources</directory>
135 <filtering>true</filtering>
136 </resource>
137 <resource>
138 <directory>src/main/java</directory>
139 <includes>
140 <include>**/*.java</include>
141 </includes>
142 </resource>
143 </resources>
144
145 <plugins>
146 <plugin>
147 <groupId>org.apache.felix</groupId>
148 <artifactId>maven-bundle-plugin</artifactId>
149 <extensions>true</extensions>
150 <configuration>
151 <instructions>
152 <Bundle-SymbolicName>appc-common</Bundle-SymbolicName>
Patrick Bradyc7d00752017-06-01 10:45:37 -0700153 <Export-Package>
Patrick Brady07567592017-12-13 11:09:30 -0800154 org.onap.appc.*, com.att.eelf.*, ch.qos.logback.*, org.jasypt.*
Patrick Bradyc7d00752017-06-01 10:45:37 -0700155 </Export-Package>
156 <Import-Package>*;resolution:=optional</Import-Package>
157 <Embed-Dependency>eelf-core, logback-core, logback-classic, jasypt</Embed-Dependency>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800158 <Embed-Transitive>true</Embed-Transitive>
159 </instructions>
160 </configuration>
161 </plugin>
162
163 <plugin>
164 <groupId>com.att.eelf</groupId>
165 <artifactId>eelf-maven-plugin</artifactId>
Patrick Brady76706002017-09-04 21:37:25 -0700166 <version>1.0.0</version>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800167 <executions>
168 <execution>
169 <id>validation</id>
170 <phase>install</phase>
171 <goals>
172 <goal>ValidateApplicationMsgs</goal>
173 </goals>
174 <configuration>
175 <resources>
176 <resource>
Patrick Brady07567592017-12-13 11:09:30 -0800177 <messageClass>org.onap.appc.i18n.Msg</messageClass>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800178 </resource>
179 </resources>
180 </configuration>
181 </execution>
182 <execution>
183 <id>generate</id>
184 <phase>install</phase>
185 <goals>
186 <goal>WikiMsgGenerator</goal>
187 </goals>
188 <configuration>
189 <outputDirectory>target/messages</outputDirectory>
190 <outputFile>messages.html</outputFile>
191 <resources>
192 <resource>
Patrick Brady07567592017-12-13 11:09:30 -0800193 <messageClass>org.onap.appc.i18n.Msg</messageClass>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800194 <header><![CDATA[<p> <ac:macro ac:name="toc" /> </p>]]></header>
195 </resource>
196 </resources>
197 </configuration>
198 </execution>
199 </executions>
200 <dependencies>
201 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -0800202 <groupId>org.onap.appc</groupId>
Patrick Brady57b5eef2017-02-10 15:00:49 -0800203 <artifactId>appc-common</artifactId>
204 <version>${project.version}</version>
205 </dependency>
206 </dependencies>
207 </plugin>
208
209 <!-- For embedding dependencies -->
210
211 <plugin>
212 <groupId>org.apache.maven.plugins</groupId>
213 <artifactId>maven-assembly-plugin</artifactId>
214 <configuration>
215 <descriptorRefs>
216 <descriptorRef>jar-with-dependencies</descriptorRef>
217 </descriptorRefs>
218 </configuration>
219 <executions>
220 <execution>
221 <id>make-assembly</id>
222 <phase>package</phase>
223 <goals>
224 <goal>single</goal>
225 </goals>
226 </execution>
227 </executions>
228 </plugin>
229
230 <plugin>
231 <groupId>org.apache.maven.plugins</groupId>
232 <artifactId>maven-shade-plugin</artifactId>
233 <executions>
234 <execution>
235 <phase>install</phase>
236 <goals>
237 <goal>shade</goal>
238 </goals>
239 <configuration>
240 <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
241 <artifactSet>
242 <excludes>
243 <exclude>junit:junit</exclude>
244 <exclude>ch.qos.logback:*</exclude>
245 <exclude>org.slf4j:slf4j-api</exclude>
246 </excludes>
247 </artifactSet>
248 </configuration>
249 </execution>
250 </executions>
251 </plugin>
252
253 </plugins>
254 </build>
255</project>