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