Skip Wonnell | 8c4b89b | 2018-01-12 09:24:03 -0600 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP : APPC |
| 4 | ================================================================================ |
Patrick Brady | 5b81764 | 2018-03-22 15:12:48 -0700 | [diff] [blame] | 5 | Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. |
Skip Wonnell | 8c4b89b | 2018-01-12 09:24:03 -0600 | [diff] [blame] | 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========================================================= |
Skip Wonnell | 8c4b89b | 2018-01-12 09:24:03 -0600 | [diff] [blame] | 20 | --> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 21 | <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"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
Patrick Brady | 0756759 | 2017-12-13 11:09:30 -0800 | [diff] [blame] | 24 | <groupId>org.onap.appc</groupId> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 25 | <artifactId>appc</artifactId> |
Patrick Brady | 84d0a25 | 2018-05-22 10:42:55 -0700 | [diff] [blame] | 26 | <version>1.4.0-SNAPSHOT</version> |
Patrick Brady | c7d0075 | 2017-06-01 10:45:37 -0700 | [diff] [blame] | 27 | </parent> |
| 28 | <artifactId>appc-common</artifactId> |
| 29 | <name>APP-C Common</name> |
| 30 | <packaging>bundle</packaging> |
| 31 | <description>Common library shared across all modules</description> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 32 | |
| 33 | <!-- <packaging>bundle</packaging> --> |
| 34 | |
| 35 | <dependencies> |
| 36 | <dependency> |
| 37 | <groupId>junit</groupId> |
| 38 | <artifactId>junit</artifactId> |
| 39 | <scope>test</scope> |
| 40 | </dependency> |
| 41 | |
| 42 | <dependency> |
| 43 | <groupId>ch.qos.logback</groupId> |
| 44 | <artifactId>logback-core</artifactId> |
| 45 | <scope>compile</scope> |
| 46 | </dependency> |
| 47 | |
| 48 | <dependency> |
| 49 | <groupId>ch.qos.logback</groupId> |
| 50 | <artifactId>logback-classic</artifactId> |
| 51 | <scope>compile</scope> |
| 52 | </dependency> |
| 53 | |
| 54 | <dependency> |
| 55 | <groupId>org.slf4j</groupId> |
| 56 | <artifactId>slf4j-api</artifactId> |
| 57 | </dependency> |
| 58 | |
| 59 | <!-- Needed for EELF (Event and Error Logging Framework) support --> |
| 60 | <dependency> |
| 61 | <groupId>com.att.eelf</groupId> |
| 62 | <artifactId>eelf-core</artifactId> |
| 63 | </dependency> |
| 64 | |
| 65 | <!-- Needed for encryption --> |
| 66 | <dependency> |
| 67 | <groupId>org.jasypt</groupId> |
| 68 | <artifactId>jasypt</artifactId> |
| 69 | <version>1.9.2</version> |
| 70 | <!-- <classifier>lite</classifier> --> |
| 71 | <scope>compile</scope> |
| 72 | </dependency> |
| 73 | |
| 74 | <dependency> |
| 75 | <groupId>org.apache.commons</groupId> |
| 76 | <artifactId>commons-lang3</artifactId> |
| 77 | </dependency> |
| 78 | |
| 79 | <dependency> |
| 80 | <groupId>javax</groupId> |
| 81 | <artifactId>javaee-api</artifactId> |
| 82 | <version>7.0</version> |
| 83 | </dependency> |
| 84 | <dependency> |
| 85 | <groupId>org.apache.httpcomponents</groupId> |
| 86 | <artifactId>httpclient</artifactId> |
Taka Cho | bda7652 | 2018-03-07 11:42:59 -0500 | [diff] [blame] | 87 | <version>4.5.3</version> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 88 | </dependency> |
| 89 | <dependency> |
| 90 | <groupId>org.apache.httpcomponents</groupId> |
| 91 | <artifactId>httpcore</artifactId> |
| 92 | <version>${apache.httpcomponents.version}</version> |
| 93 | </dependency> |
| 94 | <dependency> |
| 95 | <groupId>com.fasterxml.jackson.core</groupId> |
| 96 | <artifactId>jackson-core</artifactId> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>com.fasterxml.jackson.core</groupId> |
| 100 | <artifactId>jackson-databind</artifactId> |
| 101 | </dependency> |
| 102 | <dependency> |
| 103 | <groupId>com.fasterxml.jackson.core</groupId> |
| 104 | <artifactId>jackson-annotations</artifactId> |
| 105 | </dependency> |
Patrick Brady | c7d0075 | 2017-06-01 10:45:37 -0700 | [diff] [blame] | 106 | <dependency> |
Patrick Brady | 7670600 | 2017-09-04 21:37:25 -0700 | [diff] [blame] | 107 | <groupId>org.onap.ccsdk.sli.core</groupId> |
Patrick Brady | c7d0075 | 2017-06-01 10:45:37 -0700 | [diff] [blame] | 108 | <artifactId>dblib-provider</artifactId> |
| 109 | </dependency> |
| 110 | <dependency> |
| 111 | <groupId>org.mockito</groupId> |
| 112 | <artifactId>mockito-core</artifactId> |
| 113 | <scope>test</scope> |
| 114 | </dependency> |
beili.zhou | ab6544c | 2017-09-22 17:16:48 -0400 | [diff] [blame] | 115 | <dependency> |
beili.zhou | cf896d8 | 2017-09-27 14:37:10 -0400 | [diff] [blame] | 116 | <groupId>org.powermock</groupId> |
| 117 | <artifactId>powermock-reflect</artifactId> |
| 118 | </dependency> |
| 119 | <dependency> |
| 120 | <groupId>org.powermock</groupId> |
| 121 | <artifactId>powermock-module-junit4</artifactId> |
| 122 | </dependency> |
| 123 | <dependency> |
| 124 | <groupId>org.powermock</groupId> |
| 125 | <artifactId>powermock-api-mockito</artifactId> |
| 126 | </dependency> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 127 | |
| 128 | </dependencies> |
| 129 | |
| 130 | <build> |
| 131 | <resources> |
| 132 | <resource> |
| 133 | <directory>src/main/resources</directory> |
| 134 | <filtering>true</filtering> |
| 135 | </resource> |
| 136 | <resource> |
| 137 | <directory>src/main/java</directory> |
| 138 | <includes> |
| 139 | <include>**/*.java</include> |
| 140 | </includes> |
| 141 | </resource> |
| 142 | </resources> |
| 143 | |
| 144 | <plugins> |
| 145 | <plugin> |
| 146 | <groupId>org.apache.felix</groupId> |
| 147 | <artifactId>maven-bundle-plugin</artifactId> |
| 148 | <extensions>true</extensions> |
| 149 | <configuration> |
| 150 | <instructions> |
| 151 | <Bundle-SymbolicName>appc-common</Bundle-SymbolicName> |
Patrick Brady | c7d0075 | 2017-06-01 10:45:37 -0700 | [diff] [blame] | 152 | <Export-Package> |
Patrick Brady | 0756759 | 2017-12-13 11:09:30 -0800 | [diff] [blame] | 153 | org.onap.appc.*, com.att.eelf.*, ch.qos.logback.*, org.jasypt.* |
Patrick Brady | c7d0075 | 2017-06-01 10:45:37 -0700 | [diff] [blame] | 154 | </Export-Package> |
| 155 | <Import-Package>*;resolution:=optional</Import-Package> |
Patrick Brady | 5b81764 | 2018-03-22 15:12:48 -0700 | [diff] [blame] | 156 | <Embed-Dependency>eelf-core, logback-core, logback-classic, jasypt, dblib-provider</Embed-Dependency> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 157 | <Embed-Transitive>true</Embed-Transitive> |
| 158 | </instructions> |
| 159 | </configuration> |
| 160 | </plugin> |
| 161 | |
| 162 | <plugin> |
| 163 | <groupId>com.att.eelf</groupId> |
| 164 | <artifactId>eelf-maven-plugin</artifactId> |
Patrick Brady | 7670600 | 2017-09-04 21:37:25 -0700 | [diff] [blame] | 165 | <version>1.0.0</version> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 166 | <executions> |
| 167 | <execution> |
| 168 | <id>validation</id> |
| 169 | <phase>install</phase> |
| 170 | <goals> |
| 171 | <goal>ValidateApplicationMsgs</goal> |
| 172 | </goals> |
| 173 | <configuration> |
| 174 | <resources> |
| 175 | <resource> |
Patrick Brady | 0756759 | 2017-12-13 11:09:30 -0800 | [diff] [blame] | 176 | <messageClass>org.onap.appc.i18n.Msg</messageClass> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 177 | </resource> |
| 178 | </resources> |
| 179 | </configuration> |
| 180 | </execution> |
| 181 | <execution> |
| 182 | <id>generate</id> |
| 183 | <phase>install</phase> |
| 184 | <goals> |
| 185 | <goal>WikiMsgGenerator</goal> |
| 186 | </goals> |
| 187 | <configuration> |
| 188 | <outputDirectory>target/messages</outputDirectory> |
| 189 | <outputFile>messages.html</outputFile> |
| 190 | <resources> |
| 191 | <resource> |
Patrick Brady | 0756759 | 2017-12-13 11:09:30 -0800 | [diff] [blame] | 192 | <messageClass>org.onap.appc.i18n.Msg</messageClass> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 193 | <header><![CDATA[<p> <ac:macro ac:name="toc" /> </p>]]></header> |
| 194 | </resource> |
| 195 | </resources> |
| 196 | </configuration> |
| 197 | </execution> |
| 198 | </executions> |
| 199 | <dependencies> |
| 200 | <dependency> |
Patrick Brady | 0756759 | 2017-12-13 11:09:30 -0800 | [diff] [blame] | 201 | <groupId>org.onap.appc</groupId> |
Patrick Brady | 57b5eef | 2017-02-10 15:00:49 -0800 | [diff] [blame] | 202 | <artifactId>appc-common</artifactId> |
| 203 | <version>${project.version}</version> |
| 204 | </dependency> |
| 205 | </dependencies> |
| 206 | </plugin> |
| 207 | |
| 208 | <!-- For embedding dependencies --> |
| 209 | |
| 210 | <plugin> |
| 211 | <groupId>org.apache.maven.plugins</groupId> |
| 212 | <artifactId>maven-assembly-plugin</artifactId> |
| 213 | <configuration> |
| 214 | <descriptorRefs> |
| 215 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 216 | </descriptorRefs> |
| 217 | </configuration> |
| 218 | <executions> |
| 219 | <execution> |
| 220 | <id>make-assembly</id> |
| 221 | <phase>package</phase> |
| 222 | <goals> |
| 223 | <goal>single</goal> |
| 224 | </goals> |
| 225 | </execution> |
| 226 | </executions> |
| 227 | </plugin> |
| 228 | |
| 229 | <plugin> |
| 230 | <groupId>org.apache.maven.plugins</groupId> |
| 231 | <artifactId>maven-shade-plugin</artifactId> |
| 232 | <executions> |
| 233 | <execution> |
| 234 | <phase>install</phase> |
| 235 | <goals> |
| 236 | <goal>shade</goal> |
| 237 | </goals> |
| 238 | <configuration> |
| 239 | <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName> |
| 240 | <artifactSet> |
| 241 | <excludes> |
| 242 | <exclude>junit:junit</exclude> |
| 243 | <exclude>ch.qos.logback:*</exclude> |
| 244 | <exclude>org.slf4j:slf4j-api</exclude> |
| 245 | </excludes> |
| 246 | </artifactSet> |
| 247 | </configuration> |
| 248 | </execution> |
| 249 | </executions> |
| 250 | </plugin> |
| 251 | |
| 252 | </plugins> |
| 253 | </build> |
| 254 | </project> |