|
| 1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | +<!-- |
| 3 | + Copyright The WildFly Authors |
| 4 | + SPDX-License-Identifier: Apache-2.0 |
| 5 | +--> |
| 6 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 7 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 8 | + <modelVersion>4.0.0</modelVersion> |
| 9 | + <parent> |
| 10 | + <groupId>org.wildfly.quickstarts</groupId> |
| 11 | + <artifactId>wildfly-quickstart-parent</artifactId> |
| 12 | + <!-- |
| 13 | + Maintain separation between the artifact id and the version to help prevent |
| 14 | + merge conflicts between commits changing the GA and those changing the V. |
| 15 | + --> |
| 16 | + <version>8</version> |
| 17 | + <relativePath/> |
| 18 | + </parent> |
| 19 | + <artifactId>helloworld-rs</artifactId> |
| 20 | + <version>35.0.0.Beta1-SNAPSHOT</version> |
| 21 | + <packaging>war</packaging> |
| 22 | + <name>Quickstart: helloworld-rs</name> |
| 23 | + <description>A simple Hello World project that uses Jakarta RESTful Web Services</description> |
| 24 | + |
| 25 | + <licenses> |
| 26 | + <license> |
| 27 | + <name>Apache License, Version 2.0</name> |
| 28 | + <distribution>repo</distribution> |
| 29 | + <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> |
| 30 | + </license> |
| 31 | + </licenses> |
| 32 | + |
| 33 | + <properties> |
| 34 | + <!-- the version for the Server --> |
| 35 | + <version.server>34.0.0.Final</version.server> |
| 36 | + <!-- the versions for BOMs, Packs and Plugins --> |
| 37 | + <version.bom.ee>${version.server}</version.bom.ee> |
| 38 | + <version.plugin.wildfly>5.0.0.Final</version.plugin.wildfly> |
| 39 | + </properties> |
| 40 | + |
| 41 | + <dependencyManagement> |
| 42 | + <dependencies> |
| 43 | + <!-- importing the ee-with-tools BOM adds specs and other useful artifacts as managed dependencies --> |
| 44 | + <dependency> |
| 45 | + <groupId>org.wildfly.bom</groupId> |
| 46 | + <artifactId>wildfly-ee-with-tools</artifactId> |
| 47 | + <version>${version.bom.ee}</version> |
| 48 | + <type>pom</type> |
| 49 | + <scope>import</scope> |
| 50 | + </dependency> |
| 51 | + </dependencies> |
| 52 | + </dependencyManagement> |
| 53 | + |
| 54 | + <dependencies> |
| 55 | + <!-- Import the Jakarta REST API, we use provided scope as the API is included in the server --> |
| 56 | + <dependency> |
| 57 | + <groupId>jakarta.ws.rs</groupId> |
| 58 | + <artifactId>jakarta.ws.rs-api</artifactId> |
| 59 | + <scope>provided</scope> |
| 60 | + </dependency> |
| 61 | + |
| 62 | + <!-- Tests --> |
| 63 | + <dependency> |
| 64 | + <groupId>junit</groupId> |
| 65 | + <artifactId>junit</artifactId> |
| 66 | + <scope>test</scope> |
| 67 | + </dependency> |
| 68 | + <dependency> |
| 69 | + <groupId>org.jboss.resteasy</groupId> |
| 70 | + <artifactId>resteasy-client</artifactId> |
| 71 | + <scope>test</scope> |
| 72 | + </dependency> |
| 73 | + <!-- resteasy client needs commons-logging yet the server uses this instead, |
| 74 | + to be fully compatible on apps we need to add this dependency whenever commons-logging is needed, |
| 75 | + but on testing clients like this we could use commons-logging instead --> |
| 76 | + <dependency> |
| 77 | + <groupId>org.jboss.logging</groupId> |
| 78 | + <artifactId>commons-logging-jboss-logging</artifactId> |
| 79 | + <scope>test</scope> |
| 80 | + </dependency> |
| 81 | + <dependency> |
| 82 | + <groupId>org.jboss.resteasy</groupId> |
| 83 | + <artifactId>resteasy-json-p-provider</artifactId> |
| 84 | + <scope>test</scope> |
| 85 | + </dependency> |
| 86 | + <!-- Required by the resteasy-json-p-provider --> |
| 87 | + <dependency> |
| 88 | + <groupId>org.eclipse.parsson</groupId> |
| 89 | + <artifactId>parsson</artifactId> |
| 90 | + <scope>test</scope> |
| 91 | + </dependency> |
| 92 | + </dependencies> |
| 93 | + |
| 94 | + <build> |
| 95 | + <pluginManagement> |
| 96 | + <plugins> |
| 97 | + <plugin> |
| 98 | + <groupId>org.wildfly.plugins</groupId> |
| 99 | + <artifactId>wildfly-maven-plugin</artifactId> |
| 100 | + <version>${version.plugin.wildfly}</version> |
| 101 | + </plugin> |
| 102 | + </plugins> |
| 103 | + </pluginManagement> |
| 104 | + </build> |
| 105 | + |
| 106 | + <profiles> |
| 107 | + <profile> |
| 108 | + <id>provisioned-server</id> |
| 109 | + <build> |
| 110 | + <plugins> |
| 111 | + <plugin> |
| 112 | + <groupId>org.wildfly.plugins</groupId> |
| 113 | + <artifactId>wildfly-maven-plugin</artifactId> |
| 114 | + <configuration> |
| 115 | + <discover-provisioning-info> |
| 116 | + <version>${version.server}</version> |
| 117 | + </discover-provisioning-info> |
| 118 | + <!-- |
| 119 | + Rename the output war to ROOT.war before adding it to the server, so that the |
| 120 | + application is deployed in the root web context. |
| 121 | + --> |
| 122 | + <name>ROOT.war</name> |
| 123 | + </configuration> |
| 124 | + <executions> |
| 125 | + <execution> |
| 126 | + <goals> |
| 127 | + <goal>package</goal> |
| 128 | + </goals> |
| 129 | + </execution> |
| 130 | + </executions> |
| 131 | + </plugin> |
| 132 | + </plugins> |
| 133 | + </build> |
| 134 | + </profile> |
| 135 | + <profile> |
| 136 | + <id>openshift</id> |
| 137 | + <build> |
| 138 | + <plugins> |
| 139 | + <plugin> |
| 140 | + <groupId>org.wildfly.plugins</groupId> |
| 141 | + <artifactId>wildfly-maven-plugin</artifactId> |
| 142 | + <configuration> |
| 143 | + <discover-provisioning-info> |
| 144 | + <version>${version.server}</version> |
| 145 | + <context>cloud</context> |
| 146 | + </discover-provisioning-info> |
| 147 | + <!-- |
| 148 | + The parent POM's 'openshift' profile renames the output archive to ROOT.war so that the |
| 149 | + application is deployed in the root web context. Add ROOT.war to the server. |
| 150 | + --> |
| 151 | + <filename>ROOT.war</filename> |
| 152 | + </configuration> |
| 153 | + <executions> |
| 154 | + <execution> |
| 155 | + <goals> |
| 156 | + <goal>package</goal> |
| 157 | + </goals> |
| 158 | + </execution> |
| 159 | + </executions> |
| 160 | + </plugin> |
| 161 | + </plugins> |
| 162 | + </build> |
| 163 | + </profile> |
| 164 | + <profile> |
| 165 | + <id>integration-testing</id> |
| 166 | + <build> |
| 167 | + <plugins> |
| 168 | + <plugin> |
| 169 | + <groupId>org.apache.maven.plugins</groupId> |
| 170 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 171 | + <configuration> |
| 172 | + <includes> |
| 173 | + <include>**/RESTEndPointIT</include> |
| 174 | + </includes> |
| 175 | + </configuration> |
| 176 | + <executions> |
| 177 | + <execution> |
| 178 | + <goals> |
| 179 | + <goal>integration-test</goal> |
| 180 | + <goal>verify</goal> |
| 181 | + </goals> |
| 182 | + </execution> |
| 183 | + </executions> |
| 184 | + </plugin> |
| 185 | + </plugins> |
| 186 | + </build> |
| 187 | + </profile> |
| 188 | + </profiles> |
| 189 | + |
| 190 | + <repositories> |
| 191 | + <repository> |
| 192 | + <id>jboss-public-maven-repository</id> |
| 193 | + <name>JBoss Public Maven Repository</name> |
| 194 | + <url>https://repository.jboss.org/nexus/content/groups/public/</url> |
| 195 | + <releases> |
| 196 | + <enabled>true</enabled> |
| 197 | + <updatePolicy>never</updatePolicy> |
| 198 | + </releases> |
| 199 | + <snapshots> |
| 200 | + <enabled>true</enabled> |
| 201 | + <updatePolicy>never</updatePolicy> |
| 202 | + </snapshots> |
| 203 | + <layout>default</layout> |
| 204 | + </repository> |
| 205 | + </repositories> |
| 206 | + <pluginRepositories> |
| 207 | + <pluginRepository> |
| 208 | + <id>jboss-public-maven-repository</id> |
| 209 | + <name>JBoss Public Maven Repository</name> |
| 210 | + <url>https://repository.jboss.org/nexus/content/groups/public/</url> |
| 211 | + <releases> |
| 212 | + <enabled>true</enabled> |
| 213 | + </releases> |
| 214 | + <snapshots> |
| 215 | + <enabled>true</enabled> |
| 216 | + </snapshots> |
| 217 | + </pluginRepository> |
| 218 | + </pluginRepositories> |
| 219 | +</project> |
0 commit comments