|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<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"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <groupId>dev.openfunction.samples</groupId> |
| 6 | + <artifactId>java-open-liberty</artifactId> |
| 7 | + <version>1.0-SNAPSHOT</version> |
| 8 | + <packaging>war</packaging> |
| 9 | + |
| 10 | + <properties> |
| 11 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 12 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 13 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 14 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 15 | + <failOnMissingWebXml>false</failOnMissingWebXml> |
| 16 | + |
| 17 | + <version.liberty-maven-plugin>3.3.4</version.liberty-maven-plugin> |
| 18 | + <version.maven-war-plugin>3.3.1</version.maven-war-plugin> |
| 19 | + <version.maven-surefire-plugin>2.22.2</version.maven-surefire-plugin> |
| 20 | + <version.maven-failsafe-plugin>2.22.2</version.maven-failsafe-plugin> |
| 21 | + |
| 22 | + <liberty.var.default.http.port>8080</liberty.var.default.http.port> |
| 23 | + <liberty.var.default.https.port>9443</liberty.var.default.https.port> |
| 24 | + </properties> |
| 25 | + |
| 26 | + <dependencies> |
| 27 | + <!-- Provided dependencies --> |
| 28 | + <dependency> |
| 29 | + <groupId>jakarta.platform</groupId> |
| 30 | + <artifactId>jakarta.jakartaee-web-api</artifactId> |
| 31 | + <version>8.0.0</version> |
| 32 | + <scope>provided</scope> |
| 33 | + </dependency> |
| 34 | + <!-- For tests --> |
| 35 | + <dependency> |
| 36 | + <groupId>org.junit.jupiter</groupId> |
| 37 | + <artifactId>junit-jupiter</artifactId> |
| 38 | + <version>5.7.1</version> |
| 39 | + <scope>test</scope> |
| 40 | + </dependency> |
| 41 | + </dependencies> |
| 42 | + |
| 43 | + <build> |
| 44 | + <finalName>${project.artifactId}</finalName> |
| 45 | + <plugins> |
| 46 | + <plugin> |
| 47 | + <groupId>io.openliberty.tools</groupId> |
| 48 | + <artifactId>liberty-maven-plugin</artifactId> |
| 49 | + <version>${version.liberty-maven-plugin}</version> |
| 50 | + </plugin> |
| 51 | + <plugin> |
| 52 | + <groupId>org.apache.maven.plugins</groupId> |
| 53 | + <artifactId>maven-war-plugin</artifactId> |
| 54 | + <version>${version.maven-war-plugin}</version> |
| 55 | + </plugin> |
| 56 | + <plugin> |
| 57 | + <groupId>org.apache.maven.plugins</groupId> |
| 58 | + <artifactId>maven-surefire-plugin</artifactId> |
| 59 | + <version>${version.maven-surefire-plugin}</version> |
| 60 | + </plugin> |
| 61 | + <plugin> |
| 62 | + <groupId>org.apache.maven.plugins</groupId> |
| 63 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 64 | + <version>${version.maven-failsafe-plugin}</version> |
| 65 | + <configuration> |
| 66 | + <systemPropertyVariables> |
| 67 | + <http.port>${liberty.var.default.http.port}</http.port> |
| 68 | + </systemPropertyVariables> |
| 69 | + </configuration> |
| 70 | + </plugin> |
| 71 | + </plugins> |
| 72 | + </build> |
| 73 | +</project> |
0 commit comments