|
| 1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | +<!-- |
| 3 | + JBoss, Home of Professional Open Source |
| 4 | + Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual |
| 5 | + contributors by the @authors tag. See the copyright.txt in the |
| 6 | + distribution for a full listing of individual contributors. |
| 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 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | + Unless required by applicable law or agreed to in writing, software |
| 13 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + See the License for the specific language governing permissions and |
| 16 | + limitations under the License. |
| 17 | +--> |
| 18 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 19 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 20 | + <modelVersion>4.0.0</modelVersion> |
| 21 | + <groupId>org.wildfly.cloud.examples</groupId> |
| 22 | + <artifactId>helloworld</artifactId> |
| 23 | + <version>1.0.0-SNAPSHOT</version> |
| 24 | + <packaging>war</packaging> |
| 25 | + <name>Helloworld</name> |
| 26 | + <description>Helloworld</description> |
| 27 | + |
| 28 | + <licenses> |
| 29 | + <license> |
| 30 | + <name>Apache License, Version 2.0</name> |
| 31 | + <distribution>repo</distribution> |
| 32 | + <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> |
| 33 | + </license> |
| 34 | + </licenses> |
| 35 | + |
| 36 | + <properties> |
| 37 | + <!-- the Maven project should use the minimum Java SE version supported --> |
| 38 | + <maven.compiler.release>17</maven.compiler.release> |
| 39 | + <!-- the version for the Server --> |
| 40 | + <version.server>39.0.1.Final</version.server> |
| 41 | + <!-- the versions for BOMs, Packs and Plugins --> |
| 42 | + <version.bom.ee>${version.server}</version.bom.ee> |
| 43 | + <version.wildfly.cloud.galleon.pack>9.1.0.Beta1</version.wildfly.cloud.galleon.pack> |
| 44 | + <version.plugin.wildfly>6.0.0.Beta2</version.plugin.wildfly> |
| 45 | + </properties> |
| 46 | + |
| 47 | + <dependencyManagement> |
| 48 | + <dependencies> |
| 49 | + <!-- importing the ee-with-tools BOM adds specs and other useful artifacts as managed dependencies --> |
| 50 | + <dependency> |
| 51 | + <groupId>org.wildfly.bom</groupId> |
| 52 | + <artifactId>wildfly-ee-with-tools</artifactId> |
| 53 | + <version>${version.bom.ee}</version> |
| 54 | + <type>pom</type> |
| 55 | + <scope>import</scope> |
| 56 | + </dependency> |
| 57 | + </dependencies> |
| 58 | + </dependencyManagement> |
| 59 | + |
| 60 | + <dependencies> |
| 61 | + <!-- Import the Servlet API, we use provided scope as the API is included in the server --> |
| 62 | + <dependency> |
| 63 | + <groupId>jakarta.servlet</groupId> |
| 64 | + <artifactId>jakarta.servlet-api</artifactId> |
| 65 | + <scope>provided</scope> |
| 66 | + </dependency> |
| 67 | + </dependencies> |
| 68 | + |
| 69 | + <build> |
| 70 | + <!-- Set the name of the WAR, used as the context root when the app is deployed. --> |
| 71 | + <finalName>${project.artifactId}</finalName> |
| 72 | + <pluginManagement> |
| 73 | + <plugins> |
| 74 | + <plugin> |
| 75 | + <groupId>org.wildfly.plugins</groupId> |
| 76 | + <artifactId>wildfly-maven-plugin</artifactId> |
| 77 | + <version>${version.plugin.wildfly}</version> |
| 78 | + </plugin> |
| 79 | + </plugins> |
| 80 | + </pluginManagement> |
| 81 | + </build> |
| 82 | + |
| 83 | + <profiles> |
| 84 | + <profile> |
| 85 | + <id>openshift</id> |
| 86 | + <build> |
| 87 | + <plugins> |
| 88 | + <plugin> |
| 89 | + <groupId>org.wildfly.plugins</groupId> |
| 90 | + <artifactId>wildfly-maven-plugin</artifactId> |
| 91 | + <configuration> |
| 92 | + <feature-packs> |
| 93 | + <feature-pack> |
| 94 | + <location>org.wildfly:wildfly-galleon-pack:${version.server}</location> |
| 95 | + </feature-pack> |
| 96 | + <feature-pack> |
| 97 | + <location>org.wildfly.cloud:wildfly-cloud-galleon-pack:${version.wildfly.cloud.galleon.pack}</location> |
| 98 | + </feature-pack> |
| 99 | + </feature-packs> |
| 100 | + <layers> |
| 101 | + <layer>cloud-server</layer> |
| 102 | + </layers> |
| 103 | + </configuration> |
| 104 | + <executions> |
| 105 | + <execution> |
| 106 | + <goals> |
| 107 | + <goal>package</goal> |
| 108 | + </goals> |
| 109 | + </execution> |
| 110 | + </executions> |
| 111 | + </plugin> |
| 112 | + <!-- do not attach sources to openshift deployments --> |
| 113 | + <plugin> |
| 114 | + <groupId>org.apache.maven.plugins</groupId> |
| 115 | + <artifactId>maven-source-plugin</artifactId> |
| 116 | + <executions> |
| 117 | + <execution> |
| 118 | + <id>attach-sources</id> |
| 119 | + <phase>none</phase> |
| 120 | + </execution> |
| 121 | + </executions> |
| 122 | + </plugin> |
| 123 | + </plugins> |
| 124 | + </build> |
| 125 | + </profile> |
| 126 | + </profiles> |
| 127 | + |
| 128 | + <repositories> |
| 129 | + <repository> |
| 130 | + <id>jboss-public-maven-repository</id> |
| 131 | + <name>JBoss Public Maven Repository</name> |
| 132 | + <url>https://repository.jboss.org/nexus/content/groups/public/</url> |
| 133 | + </repository> |
| 134 | + </repositories> |
| 135 | + <pluginRepositories> |
| 136 | + <pluginRepository> |
| 137 | + <id>jboss-public-maven-repository</id> |
| 138 | + <name>JBoss Public Maven Repository</name> |
| 139 | + <url>https://repository.jboss.org/nexus/content/groups/public/</url> |
| 140 | + </pluginRepository> |
| 141 | + </pluginRepositories> |
| 142 | +</project> |
0 commit comments