Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP Policy Engine |
| 4 | ================================================================================ |
Pamela Dragosh | bcdb1e1 | 2018-02-07 15:41:30 -0500 | [diff] [blame] | 5 | Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | ============LICENSE_END========================================================= |
| 19 | --> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 20 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 | 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> |
| 24 | <groupId>org.onap.policy.engine</groupId> |
| 25 | <artifactId>PolicyEngineSuite</artifactId> |
Pamela Dragosh | dca5220 | 2018-04-13 15:55:51 -0400 | [diff] [blame^] | 26 | <version>1.2.1-SNAPSHOT</version> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 27 | </parent> |
| 28 | <artifactId>ONAP-SDK-APP</artifactId> |
| 29 | <packaging>war</packaging> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 30 | <properties> |
| 31 | <encoding>UTF-8</encoding> |
rb7147 | 90d0037 | 2018-02-21 13:24:04 -0500 | [diff] [blame] | 32 | <epsdk.version>2.1.0</epsdk.version> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 33 | <springframework.version>4.2.0.RELEASE</springframework.version> |
| 34 | <hibernate.version>4.3.11.Final</hibernate.version> |
| 35 | <!-- Skip assembling the zip; assemble via mvn -Dskipassembly=false .. --> |
| 36 | <skipassembly>true</skipassembly> |
| 37 | <!-- Tests usually require some setup that maven cannot do, so skip. --> |
rb7147 | 4281508 | 2017-12-04 16:45:55 -0500 | [diff] [blame] | 38 | <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**,src/main/webapp/**/*</sonar.exclusions> |
| 39 | <!-- Version number gets stored only here --> |
| 40 | <tomcat.download.path>http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.37/bin</tomcat.download.path> |
| 41 | <tomcat.download.name>apache-tomcat-8.0.37</tomcat.download.name> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 42 | </properties> |
| 43 | <profiles> |
| 44 | <!-- disable doclint, a new feature in Java 8, when generating javadoc --> |
| 45 | <profile> |
| 46 | <id>doclint-java8-disable</id> |
| 47 | <activation> |
| 48 | <jdk>[1.8,)</jdk> |
| 49 | </activation> |
| 50 | <build> |
| 51 | <plugins> |
| 52 | <plugin> |
| 53 | <groupId>org.apache.maven.plugins</groupId> |
| 54 | <artifactId>maven-javadoc-plugin</artifactId> |
| 55 | <version>2.10.4</version> |
| 56 | <configuration> |
| 57 | <additionalparam>-Xdoclint:none</additionalparam> |
| 58 | </configuration> |
| 59 | </plugin> |
| 60 | </plugins> |
| 61 | </build> |
| 62 | </profile> |
| 63 | </profiles> |
| 64 | <build> |
| 65 | <plugins> |
| 66 | <plugin> |
| 67 | <groupId>org.apache.maven.plugins</groupId> |
| 68 | <artifactId>maven-compiler-plugin</artifactId> |
| 69 | <version>3.2</version> |
| 70 | <configuration> |
| 71 | <source>1.8</source> |
| 72 | <target>1.8</target> |
| 73 | </configuration> |
| 74 | </plugin> |
| 75 | <plugin> |
| 76 | <groupId>org.apache.maven.plugins</groupId> |
| 77 | <artifactId>maven-surefire-plugin</artifactId> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 78 | <configuration> |
| 79 | <skipTests>${skiptests}</skipTests> |
| 80 | <includes> |
| 81 | <include>**/Test*.java</include> |
| 82 | <include>**/*Test.java</include> |
| 83 | <include>**/*TestCase.java</include> |
| 84 | </includes> |
| 85 | <additionalClasspathElements> |
| 86 | <additionalClasspathElement>${basedir}/war</additionalClasspathElement> |
| 87 | </additionalClasspathElements> |
| 88 | <systemPropertyVariables> |
| 89 | <container.classpath>classpath:</container.classpath> |
| 90 | </systemPropertyVariables> |
| 91 | </configuration> |
| 92 | </plugin> |
| 93 | <!-- add version number to manifest --> |
| 94 | <plugin> |
| 95 | <groupId>org.apache.maven.plugins</groupId> |
| 96 | <artifactId>maven-war-plugin</artifactId> |
| 97 | <version>2.1</version> |
| 98 | <configuration> |
rb7147 | 4281508 | 2017-12-04 16:45:55 -0500 | [diff] [blame] | 99 | <attachClasses>true</attachClasses> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 100 | <archive> |
| 101 | <manifest> |
| 102 | <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 103 | </manifest> |
| 104 | <manifestEntries> |
| 105 | <Build-Number>${project.version}</Build-Number> |
| 106 | <Build-Time>${maven.build.timestamp}</Build-Time> |
| 107 | </manifestEntries> |
| 108 | </archive> |
| 109 | <overlays> |
| 110 | <overlay> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 111 | <groupId>org.onap.portal.sdk</groupId> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 112 | <artifactId>epsdk-app-overlay</artifactId> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 113 | <excludes> |
rb7147 | 4281508 | 2017-12-04 16:45:55 -0500 | [diff] [blame] | 114 | <exclude>static/fusion/raptor/uigrid/vfs_fonts.js</exclude> |
| 115 | </excludes> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 116 | </overlay> |
| 117 | <overlay> |
| 118 | <groupId>org.onap.policy.engine</groupId> |
| 119 | <artifactId>POLICY-SDK-APP</artifactId> |
| 120 | </overlay> |
| 121 | </overlays> |
| 122 | </configuration> |
| 123 | </plugin> |
| 124 | <plugin> |
rb7147 | 4281508 | 2017-12-04 16:45:55 -0500 | [diff] [blame] | 125 | <groupId>org.apache.maven.plugins</groupId> |
| 126 | <artifactId>maven-assembly-plugin</artifactId> |
| 127 | <version>3.0.0</version> |
| 128 | <configuration> |
| 129 | <skipAssembly>${skipassembly}</skipAssembly> |
| 130 | <descriptors> |
| 131 | <descriptor>${basedir}/distribution.xml</descriptor> |
| 132 | </descriptors> |
| 133 | </configuration> |
| 134 | <executions> |
| 135 | <execution> |
| 136 | <id>make-assembly</id> |
| 137 | <phase>package</phase> |
| 138 | <goals> |
| 139 | <goal>single</goal> |
| 140 | </goals> |
| 141 | </execution> |
| 142 | </executions> |
| 143 | </plugin> |
| 144 | <plugin> |
| 145 | <groupId>org.apache.maven.plugins</groupId> |
| 146 | <artifactId>maven-deploy-plugin</artifactId> |
| 147 | <!-- parent specifies the<version>2.8</version> --> |
| 148 | <configuration> |
| 149 | <skip>true</skip> |
| 150 | </configuration> |
| 151 | </plugin> |
| 152 | <plugin> |
| 153 | <groupId>io.fabric8</groupId> |
| 154 | <artifactId>docker-maven-plugin</artifactId> |
| 155 | <version>0.22.0</version> |
| 156 | <configuration> |
| 157 | <verbose>true</verbose> |
| 158 | <images> |
| 159 | <image> |
| 160 | <name>onap/portal-sdk:${project.version}</name> |
| 161 | <build> |
| 162 | <from>frolvlad/alpine-oraclejdk8:slim</from> |
| 163 | <assembly> |
| 164 | <descriptorRef>artifact</descriptorRef> |
| 165 | </assembly> |
| 166 | <runCmds> |
| 167 | <!-- must be all on one line; use CDATA to turn off the Eclipse |
| 168 | formatter --> |
| 169 | <run><![CDATA[wget -q ${tomcat.download.path}/${tomcat.download.name}.tar.gz]]></run> |
| 170 | <run>tar -xzf ${tomcat.download.name}.tar.gz</run> |
| 171 | <run>rm -f ${tomcat.download.name}.tar.gz</run> |
| 172 | <run>rm -fr ${tomcat.download.name}/webapps/[a-z]*</run> |
| 173 | <run>mkdir -p /opt</run> |
| 174 | <run>mv ${tomcat.download.name} /opt</run> |
| 175 | <run><![CDATA[mv /maven/*.war /opt/${tomcat.download.name}/webapps/ONAPPORTALSDK.war]]></run> |
| 176 | </runCmds> |
| 177 | <cmd> |
| 178 | <shell>/opt/${tomcat.download.name}/bin/catalina.sh run</shell> |
| 179 | </cmd> |
| 180 | </build> |
| 181 | </image> |
| 182 | </images> |
| 183 | </configuration> |
| 184 | </plugin> |
| 185 | |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 186 | </plugins> |
| 187 | </build> |
| 188 | <dependencies> |
rb7147 | 4281508 | 2017-12-04 16:45:55 -0500 | [diff] [blame] | 189 | <!-- Policy overlay war --> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 190 | <dependency> |
| 191 | <groupId>org.onap.policy.engine</groupId> |
| 192 | <artifactId>POLICY-SDK-APP</artifactId> |
| 193 | <version>${project.version}</version> |
| 194 | <type>war</type> |
| 195 | <exclusions> |
| 196 | <exclusion> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 197 | <groupId>org.onap.portal.sdk</groupId> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 198 | <artifactId>epsdk-core</artifactId> |
| 199 | </exclusion> |
| 200 | </exclusions> |
| 201 | </dependency> |
| 202 | <dependency> |
| 203 | <groupId>org.onap.policy.engine</groupId> |
| 204 | <artifactId>POLICY-SDK-APP</artifactId> |
| 205 | <version>${project.version}</version> |
| 206 | <type>jar</type> |
| 207 | <classifier>classes</classifier> |
| 208 | <exclusions> |
| 209 | <exclusion> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 210 | <groupId>org.onap.portal.sdk</groupId> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 211 | <artifactId>epsdk-core</artifactId> |
| 212 | </exclusion> |
| 213 | </exclusions> |
| 214 | </dependency> |
| 215 | <dependency> |
| 216 | <groupId>org.onap.policy.engine</groupId> |
| 217 | <artifactId>PolicyEngineUtils</artifactId> |
| 218 | <version>${project.version}</version> |
| 219 | <exclusions> |
| 220 | <exclusion> |
| 221 | <groupId>com.att.aft</groupId> |
| 222 | <artifactId>dme2</artifactId> |
| 223 | </exclusion> |
| 224 | </exclusions> |
| 225 | </dependency> |
| 226 | <!-- SDK overlay war --> |
| 227 | <dependency> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 228 | <groupId>org.onap.portal.sdk</groupId> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 229 | <artifactId>epsdk-app-overlay</artifactId> |
| 230 | <version>${epsdk.version}</version> |
| 231 | <type>war</type> |
| 232 | </dependency> |
| 233 | <dependency> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 234 | <groupId>org.onap.portal.sdk</groupId> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 235 | <artifactId>epsdk-app-common</artifactId> |
| 236 | <version>${epsdk.version}</version> |
| 237 | <type>jar</type> |
| 238 | </dependency> |
| 239 | <!-- SDK components --> |
Pamela Dragosh | d6465d5 | 2018-03-05 10:25:41 -0500 | [diff] [blame] | 240 | <!-- |
| 241 | CLM security fix - force use of commons-collections 3.2.2. |
| 242 | Remove this if a new version of epsdk-core is upgraded |
| 243 | to not use esapi (and then subsequently commons-collections v3.2 |
| 244 | --> |
| 245 | <dependency> |
| 246 | <groupId>commons-collections</groupId> |
| 247 | <artifactId>commons-collections</artifactId> |
| 248 | <version>3.2.2</version> |
| 249 | </dependency> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 250 | <dependency> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 251 | <groupId>org.onap.portal.sdk</groupId> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 252 | <artifactId>epsdk-core</artifactId> |
| 253 | <version>${epsdk.version}</version> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 254 | <exclusions> |
| 255 | <exclusion> |
| 256 | <groupId>mysql</groupId> |
rb7147 | 4281508 | 2017-12-04 16:45:55 -0500 | [diff] [blame] | 257 | <artifactId>mysql-connector-java</artifactId> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 258 | </exclusion> |
Pamela Dragosh | d6465d5 | 2018-03-05 10:25:41 -0500 | [diff] [blame] | 259 | <exclusion> |
| 260 | <groupId>commons-collections</groupId> |
| 261 | <artifactId>commons-collections</artifactId> |
| 262 | </exclusion> |
Pamela Dragosh | a86b80a | 2018-03-28 16:30:42 -0700 | [diff] [blame] | 263 | <exclusion> |
| 264 | <groupId>com.thoughtworks.xstream</groupId> |
| 265 | <artifactId>xstream</artifactId> |
| 266 | </exclusion> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 267 | </exclusions> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 268 | </dependency> |
| 269 | <dependency> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 270 | <groupId>org.onap.portal.sdk</groupId> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 271 | <artifactId>epsdk-analytics</artifactId> |
| 272 | <version>${epsdk.version}</version> |
| 273 | <exclusions> |
| 274 | <exclusion> |
| 275 | <groupId>com.oracle</groupId> |
| 276 | <artifactId>ojdbc6</artifactId> |
| 277 | </exclusion> |
| 278 | </exclusions> |
| 279 | </dependency> |
| 280 | <dependency> |
rb7147 | 33f0e2b | 2017-10-19 15:15:48 -0400 | [diff] [blame] | 281 | <groupId>org.onap.portal.sdk</groupId> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 282 | <artifactId>epsdk-workflow</artifactId> |
| 283 | <version>${epsdk.version}</version> |
| 284 | </dependency> |
rb7147 | 4281508 | 2017-12-04 16:45:55 -0500 | [diff] [blame] | 285 | <!-- bridge to implement commons-logging using slf4j --> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 286 | <dependency> |
| 287 | <groupId>org.slf4j</groupId> |
| 288 | <artifactId>jcl-over-slf4j</artifactId> |
| 289 | <version>1.7.12</version> |
| 290 | </dependency> |
| 291 | <dependency> |
| 292 | <groupId>com.mchange</groupId> |
| 293 | <artifactId>c3p0</artifactId> |
| 294 | <version>0.9.5.2</version> |
| 295 | </dependency> |
| 296 | <!-- Maria DB --> |
| 297 | <dependency> |
| 298 | <groupId>org.mariadb.jdbc</groupId> |
| 299 | <artifactId>mariadb-java-client</artifactId> |
| 300 | <version>1.2.3</version> |
| 301 | </dependency> |
| 302 | <dependency> |
| 303 | <groupId>commons-dbcp</groupId> |
| 304 | <artifactId>commons-dbcp</artifactId> |
| 305 | <version>1.4</version> |
| 306 | </dependency> |
| 307 | <!-- Quartz --> |
| 308 | <dependency> |
| 309 | <groupId>org.quartz-scheduler</groupId> |
| 310 | <artifactId>quartz</artifactId> |
| 311 | <version>2.2.1</version> |
| 312 | <exclusions> |
| 313 | <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 --> |
| 314 | <exclusion> |
| 315 | <groupId>c3p0</groupId> |
| 316 | <artifactId>c3p0</artifactId> |
| 317 | </exclusion> |
| 318 | </exclusions> |
| 319 | </dependency> |
| 320 | <dependency> |
| 321 | <groupId>javax.servlet</groupId> |
| 322 | <artifactId>javax.servlet-api</artifactId> |
| 323 | <version>3.1.0</version> |
| 324 | </dependency> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 325 | </dependencies> |
| 326 | </project> |