| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one or more | |
| contributor license agreements. See the NOTICE file distributed with | |
| this work for additional information regarding copyright ownership. | |
| The ASF licenses this file to You under the Apache License, Version 2.0 | |
| (the "License"); you may not use this file except in compliance with | |
| the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| --> | |
| <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/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.superbiz</groupId> | |
| <artifactId>rest-example</artifactId> | |
| <packaging>war</packaging> | |
| <version>11.0.0-SNAPSHOT</version> | |
| <name>TomEE :: Web Examples :: REST Example</name> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <tomee.version>11.0.0-SNAPSHOT</tomee.version> | |
| <version.openjpa>4.0.1</version.openjpa> | |
| </properties> | |
| <repositories> | |
| <repository> | |
| <releases> | |
| <enabled>false</enabled> | |
| </releases> | |
| <id>apache-m2-snapshot</id> | |
| <name>Apache Snapshot Repository</name> | |
| <url>https://repository.apache.org/content/groups/snapshots</url> | |
| </repository> | |
| </repositories> | |
| <pluginRepositories> | |
| <pluginRepository> | |
| <releases> | |
| <enabled>false</enabled> | |
| </releases> | |
| <id>apache-m2-snapshot</id> | |
| <name>Apache Snapshot Repository</name> | |
| <url>https://repository.apache.org/content/groups/snapshots</url> | |
| </pluginRepository> | |
| </pluginRepositories> | |
| <build> | |
| <finalName>${project.artifactId}</finalName> | |
| <defaultGoal>package</defaultGoal> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>3.14.1</version> | |
| <configuration> | |
| <source>17</source> | |
| <target>17</target> | |
| <release>17</release> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-war-plugin</artifactId> | |
| <version>3.5.0</version> | |
| <configuration> | |
| <packagingExcludes>WEB-INF/web.xml</packagingExcludes> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>3.5.3</version> | |
| <configuration> | |
| <argLine>-Djdk.attach.allowAttachSelf</argLine> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.tomee.maven</groupId> | |
| <artifactId>tomee-maven-plugin</artifactId> | |
| <version>${tomee.version}</version> | |
| <configuration> | |
| <simpleLog>true</simpleLog> | |
| <tomeeVersion>${tomee.version}</tomeeVersion> | |
| <tomeeClassifier>plus</tomeeClassifier> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.tomee.maven</groupId> | |
| <artifactId>tomee-embedded-maven-plugin</artifactId> | |
| <version>${tomee.version}</version> | |
| </plugin> | |
| <!-- | |
| <plugin> | |
| <groupId>org.apache.openjpa</groupId> | |
| <artifactId>openjpa-maven-plugin</artifactId> | |
| <version>${version.openjpa}</version> | |
| <configuration> | |
| <includes>org/superbiz/rest/model/*.class</includes> | |
| <addDefaultConstructor>true</addDefaultConstructor> | |
| <enforcePropertyRestrictions>true</enforcePropertyRestrictions> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>enhancer</id> | |
| <phase>process-classes</phase> | |
| <goals> | |
| <goal>enhance</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.openjpa</groupId> | |
| <artifactId>openjpa</artifactId> | |
| <version>${version.openjpa}</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| --> | |
| </plugins> | |
| </build> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.tomee.bom</groupId> | |
| <artifactId>tomee-webprofile-api</artifactId> | |
| <version>11.0.0-SNAPSHOT</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>4.13.2</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.tomee</groupId> | |
| <artifactId>tomee-embedded</artifactId> | |
| <version>${tomee.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.tomee.bom</groupId> | |
| <artifactId>tomee-webprofile</artifactId> | |
| <version>11.0.0-SNAPSHOT</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.tomee</groupId> | |
| <artifactId>ziplock</artifactId> | |
| <version>${tomee.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jersey.containers</groupId> | |
| <artifactId>jersey-container-servlet</artifactId> | |
| <version>3.1.9</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jersey.core</groupId> | |
| <artifactId>jersey-client</artifactId> | |
| <version>3.1.9</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jersey.media</groupId> | |
| <artifactId>jersey-media-moxy</artifactId> | |
| <version>3.1.9</version> | |
| </dependency> | |
| </dependencies> | |
| <!-- | |
| This section allows you to configure where to publish libraries for sharing. | |
| It is not required and may be deleted. For more information see: | |
| http://maven.apache.org/plugins/maven-deploy-plugin/ | |
| --> | |
| <distributionManagement> | |
| <repository> | |
| <id>local-release-repo</id> | |
| <url>file://${project.build.outputDirectory}/repo/</url> | |
| </repository> | |
| <snapshotRepository> | |
| <id>local-snapshot-repo</id> | |
| <url>file://${project.build.outputDirectory}/repo/</url> | |
| </snapshotRepository> | |
| </distributionManagement> | |
| </project> |