| <?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. |
| --> |
| <!--suppress osmorcNonOsgiMavenDependency --> |
| <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 https://maven.apache.org/maven-v4_0_0.xsd"> |
| |
| <parent> |
| <groupId>org.apache.shiro.samples</groupId> |
| <artifactId>shiro-samples</artifactId> |
| <version>1.6.1-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>samples-jaxrs</artifactId> |
| <name>Apache Shiro :: Samples :: JAX-RS</name> |
| <packaging>war</packaging> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>${jetty.version}</version> |
| <configuration> |
| <contextPath>/</contextPath> |
| <httpConnector> |
| <port>9080</port> |
| <idleTimeout>60000</idleTimeout> |
| </httpConnector> |
| <requestLog implementation="org.eclipse.jetty.server.NCSARequestLog"> |
| <filename>./target/yyyy_mm_dd.request.log</filename> |
| <retainDays>90</retainDays> |
| <append>true</append> |
| <extended>false</extended> |
| <logTimeZone>GMT</logTimeZone> |
| </requestLog> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.apache.shiro</groupId> |
| <artifactId>shiro-servlet-plugin</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.shiro</groupId> |
| <artifactId>shiro-jaxrs</artifactId> |
| </dependency> |
| |
| <dependency> |
| <!-- Required for any libraries that expect to call the commons logging APIs --> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jcl-over-slf4j</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.shiro.integrationtests</groupId> |
| <artifactId>shiro-its-support</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.jayway.restassured</groupId> |
| <artifactId>rest-assured</artifactId> |
| <version>2.9.0</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>jersey</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <properties> |
| <jersey.version>2.23.2</jersey.version> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.glassfish.jersey.containers</groupId> |
| <artifactId>jersey-container-grizzly2-servlet</artifactId> |
| <version>${jersey.version}</version> |
| </dependency> |
| </dependencies> |
| </profile> |
| <profile> |
| <id>resteasy</id> |
| <properties> |
| <resteasy.version>3.9.0.Final</resteasy.version> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.jboss.resteasy</groupId> |
| <artifactId>resteasy-jaxrs</artifactId> |
| <version>${resteasy.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jboss.resteasy</groupId> |
| <artifactId>resteasy-servlet-initializer</artifactId> |
| <version>${resteasy.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jboss.resteasy</groupId> |
| <artifactId>resteasy-jackson2-provider</artifactId> |
| <version>${resteasy.version}</version> |
| </dependency> |
| </dependencies> |
| </profile> |
| <profile> |
| <id>cxf</id> |
| <properties> |
| <cxf.version>3.3.5</cxf.version> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-rs-http-sci</artifactId> |
| <version>${cxf.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-frontend-jaxws</artifactId> |
| <version>${cxf.version}</version> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <configuration> |
| <webApp> |
| <descriptor>src/main/webapp/WEB-INF/web.cxf.xml</descriptor> |
| </webApp> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <configuration> |
| <webXml>src/main/webapp/WEB-INF/web.cxf.xml</webXml> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <!-- Currently the test fails with JDK11, so exclude it --> |
| <profile> |
| <id>jdk19-plus</id> |
| <activation> |
| <jdk>[9,)</jdk> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>**/ContainerIntegrationIT.*</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| </profiles> |
| |
| </project> |