|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <groupId>${groupId}</groupId> |
| 6 | + <artifactId>${artifactId}</artifactId> |
| 7 | + <version>${version}</version> |
| 8 | + <packaging>war</packaging> |
| 9 | + |
| 10 | + <properties> |
| 11 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 12 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 13 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 14 | + <failOnMissingWebXml>false</failOnMissingWebXml> |
| 15 | + <liberty-maven-plugin.version>${liberty-plugin-version}</liberty-maven-plugin.version> |
| 16 | + <defaultHttpPort>9080</defaultHttpPort> |
| 17 | + <defaultHttpsPort>9443</defaultHttpsPort> |
| 18 | + </properties> |
| 19 | + |
| 20 | + <build> |
| 21 | + <finalName>${artifactId}</finalName> |
| 22 | + <plugins> |
| 23 | + <plugin> |
| 24 | + <groupId>net.wasdev.wlp.maven.plugins</groupId> |
| 25 | + <artifactId>liberty-maven-plugin</artifactId> |
| 26 | + <version>${liberty-maven-plugin.version}</version> |
| 27 | + <configuration> |
| 28 | + <install> |
| 29 | + <runtimeUrl> |
| 30 | + https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/2018-06-18_1442/openliberty-all-20180618-1300.zip |
| 31 | + </runtimeUrl> |
| 32 | + </install> |
| 33 | + <looseApplication>true</looseApplication> |
| 34 | + <installAppPackages>project</installAppPackages> |
| 35 | + <configFile>src/main/liberty/config/server.xml</configFile> |
| 36 | + <stripVersion>true</stripVersion> |
| 37 | + <bootstrapProperties> |
| 38 | + <default.http.port>${defaultHttpPort}</default.http.port> |
| 39 | + <default.https.port>${defaultHttpsPort}</default.https.port> |
| 40 | + </bootstrapProperties> |
| 41 | + </configuration> |
| 42 | + <executions> |
| 43 | + <execution> |
| 44 | + <id>install-server</id> |
| 45 | + <phase>prepare-package</phase> |
| 46 | + <goals> |
| 47 | + <goal>install-server</goal> |
| 48 | + <goal>create-server</goal> |
| 49 | + <goal>install-feature</goal> |
| 50 | + </goals> |
| 51 | + </execution> |
| 52 | + <execution> |
| 53 | + <id>install-apps</id> |
| 54 | + <phase>package</phase> |
| 55 | + <goals> |
| 56 | + <goal>install-apps</goal> |
| 57 | + </goals> |
| 58 | + </execution> |
| 59 | + </executions> |
| 60 | + </plugin> |
| 61 | + </plugins> |
| 62 | + </build> |
| 63 | + |
| 64 | + <dependencies> |
| 65 | + |
| 66 | + <dependency> |
| 67 | + <groupId>javax.enterprise</groupId> |
| 68 | + <artifactId>cdi-api</artifactId> |
| 69 | + <version>2.0</version> |
| 70 | + <scope>provided</scope> |
| 71 | + </dependency> |
| 72 | + |
| 73 | + <dependency> |
| 74 | + <groupId>javax.ws.rs</groupId> |
| 75 | + <artifactId>javax.ws.rs-api</artifactId> |
| 76 | + <version>2.1</version> |
| 77 | + <scope>provided</scope> |
| 78 | + </dependency> |
| 79 | + |
| 80 | + </dependencies> |
| 81 | + |
| 82 | +</project> |
0 commit comments