| <?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> |
| |
| <parent> |
| <groupId>org.apache.directory.project</groupId> |
| <artifactId>project</artifactId> |
| <version>35</version> |
| <relativePath /> |
| </parent> |
| |
| <groupId>org.apache.directory.fortress</groupId> |
| <artifactId>fortress-rest</artifactId> |
| <packaging>war</packaging> |
| <version>2.0.4-SNAPSHOT</version> |
| <name>Apache Fortress Rest</name> |
| <url>http://directory.apache.org/fortress/</url> |
| <description>Fortress Rest provides a RESTful implementation of the ANSI INCITS 350 RBAC Specification</description> |
| |
| <licenses> |
| <license> |
| <name>Apache License 2.0</name> |
| <url>http://www.apache.org/licenses/LICENSE-2.0</url> |
| </license> |
| </licenses> |
| |
| <scm> |
| <connection>scm:git:http://git-wip-us.apache.org/repos/asf/directory-fortress-rest.git</connection> |
| <developerConnection> |
| scm:git: https://gitbox.apache.org/repos/asf/directory-fortress-enmasse.git |
| </developerConnection> |
| <tag>2.0.3</tag> |
| </scm> |
| |
| <issueManagement> |
| <system>jira</system> |
| <url>https://issues.apache.org/jira/browse/DIRFORTRESS</url> |
| </issueManagement> |
| |
| <!-- ====================================================== --> |
| <!-- The list of current developers --> |
| <!-- ====================================================== --> |
| <developers> |
| <developer> |
| <id>smckinney</id> |
| <name>Shawn McKinney</name> |
| <email>smckinney@apache.org</email> |
| </developer> |
| |
| <developer> |
| <id>elecharny</id> |
| <name>Emmanuel Lecharny</name> |
| <email>elecharny@apache.org</email> |
| </developer> |
| |
| <developer> |
| <id>cpike</id> |
| <name>Chris Pike</name> |
| <email>cpike@apache.org</email> |
| </developer> |
| </developers> |
| |
| <mailingLists> |
| <mailingList> |
| <name>Apache Directory -- Fortress List</name> |
| <post>fortress@directory.apache.org</post> |
| <archive>http://mail-archives.apache.org/mod_mbox/directory-fortress/</archive> |
| </mailingList> |
| </mailingLists> |
| |
| <!-- ====================================================== --> |
| <!-- The used properties for this project --> |
| <!-- ====================================================== --> |
| <properties> |
| <title>${project.name} ${project.version}</title> |
| |
| <!-- Dependencies version --> |
| <fortress.realm.version>2.0.4-SNAPSHOT</fortress.realm.version> |
| <cxf.version>3.2.6</cxf.version> |
| <httpclient.version>3.1</httpclient.version> |
| <java.version>1.8</java.version> |
| <javadoc.version>2.9.1</javadoc.version> |
| <junit.version>4.12</junit.version> |
| <log4j.version>1.2.17</log4j.version> |
| <servlet-api.version>2.5.0</servlet-api.version> |
| <slf4j.log4j12.version>1.7.21</slf4j.log4j12.version> |
| <spring.version>5.0.9.RELEASE</spring.version> |
| <spring.security.version>5.0.7.RELEASE</spring.security.version> |
| <jackson-jaxrs.version>2.9.7</jackson-jaxrs.version> |
| |
| <!-- Other properties --> |
| <base.dir>.</base.dir> |
| <src.java.dir>${base.dir}/src/main/java</src.java.dir> |
| </properties> |
| |
| <dependencies> |
| <!-- Fortress Realm pulls in Fortress Core for RBAC 'CRUD' & policy enforcement apis. --> |
| <dependency> |
| <groupId>org.apache.directory.fortress</groupId> |
| <artifactId>fortress-realm-impl</artifactId> |
| <version>${fortress.realm.version}</version> |
| <exclusions> |
| <!-- fortress 1.0.0 and prior had this dependency which clashes with cxf version 3. --> |
| <exclusion> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- CXF Dependencies --> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-core</artifactId> |
| <version>${cxf.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-frontend-jaxrs</artifactId> |
| <version>${cxf.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| <artifactId>jackson-jaxrs-json-provider</artifactId> |
| <version>${jackson-jaxrs.version}</version> |
| </dependency> |
| |
| <!-- Spring Dependencies --> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-core</artifactId> |
| <version>${spring.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.security</groupId> |
| <artifactId>spring-security-web</artifactId> |
| <version>${spring.security.version}</version> |
| </dependency> |
| |
| <!-- Logging Dependencies --> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <version>${log4j.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <version>${slf4j.log4j12.version}</version> |
| </dependency> |
| |
| <!-- Test Dependencies --> |
| <dependency> |
| <groupId>commons-httpclient</groupId> |
| <artifactId>commons-httpclient</artifactId> |
| <version>${httpclient.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <finalName>${project.artifactId}-${project.version}</finalName> |
| <plugins> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| </plugin> |
| |
| <!-- Create the fortress-rest web archive --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.4</version> |
| <!-- this is needed to pickup the context.xml in META-INF: --> |
| <configuration> |
| <warName>${project.artifactId}</warName> |
| <archive> |
| <manifest> |
| <classpathPrefix>lib/</classpathPrefix> |
| </manifest> |
| </archive> |
| <webResources> |
| <resource> |
| <!-- this is relative to the pom.xml directory --> |
| <directory>${project.basedir}/src/main/resources |
| </directory> |
| </resource> |
| </webResources> |
| <!--<archiveClasses>true</archiveClasses>--> |
| <attachClasses>true</attachClasses> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <inherited>true</inherited> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-install-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-site-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-release-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludeSubProjects>false</excludeSubProjects> |
| <excludes> |
| <!-- MAVEN_DEFAULT_EXCLUDES --> |
| <exclude>**/target/**/*</exclude> |
| <exclude>**/cobertura.ser</exclude> |
| <!-- ECLIPSE_DEFAULT_EXCLUDES --> |
| <exclude>**/.classpath</exclude> |
| <exclude>**/.project</exclude> |
| <exclude>**/.settings/**/*</exclude> |
| <!-- IDEA_DEFAULT_EXCLUDES --> |
| <exclude>**/*.iml</exclude> |
| <exclude>**/*.ipr</exclude> |
| <exclude>**/*.iws</exclude> |
| <!-- MANIFEST_MF_EXCLUDES --> |
| <exclude>**/MANIFEST.MF</exclude> |
| <!-- GIT_EXCLUDES --> |
| <exclude>**/.git/**/*</exclude> |
| <!-- CERT_EXCLUDES --> |
| <exclude>**/*.pem</exclude> |
| <!-- EXTERNAL_CODE_EXCLUDES --> |
| <exclude>**/CmdLineParser.java</exclude> |
| <!-- Exclude logs --> |
| <exclude>**/*.log/**</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>tomcat-maven-plugin</artifactId> |
| <configuration> |
| <warFile>target/${project.artifactId}-${project.version}.war</warFile> |
| <server>local-tomcat</server> |
| <url>http://localhost:8080/manager/text</url> |
| <path>/${project.artifactId}-${project.version}</path> |
| <!-- <path>/enmasse-${version}</path>--> |
| <!-- Warning the tomcat manager creds here are for deploying into a demo environment only. --> |
| <username>tcmanager</username> |
| <password>m@nager123</password> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <stylesheet>java</stylesheet> |
| <bottom><small>Copyright &copy; 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated ${maven.build.timestamp}</small></bottom> |
| <overview>src/main/java/org/apache/directory/fortress/rest/overview.html</overview> |
| <version>true</version> |
| <author>true</author> |
| <doctitle>${project.name} Javadoc ${project.version}</doctitle> |
| <windowtitle>Apache ${project.name} Javadoc ${project.version}</windowtitle> |
| <!--<additionalparam>-Xdoclint:none</additionalparam>--> |
| </configuration> |
| </plugin> |
| |
| <!-- War the app --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.4</version> |
| <configuration> |
| <warName>${project.artifactId}-${version}</warName> |
| <archive> |
| <manifest> |
| <classpathPrefix>lib/</classpathPrefix> |
| </manifest> |
| </archive> |
| <webResources> |
| <resource> |
| <!-- this is relative to the pom.xml directory --> |
| <directory>${project.basedir}/src/main/resources |
| </directory> |
| </resource> |
| </webResources> |
| <attachClasses>true</attachClasses> |
| </configuration> |
| </plugin> |
| |
| <!-- Fires on 'mvn -Dtest=ClassName' where ClassName is junit test class name, for this project: --> |
| <!-- mvn test -Dtest=EmTest --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <systemPropertyVariables> |
| <version>${project.version}</version> |
| </systemPropertyVariables> |
| <excludes> |
| <exclude>${exclude.tests}</exclude> |
| </excludes> |
| <includes> |
| <include>${include.tests}</include> |
| </includes> |
| <groups>${testcase.groups}</groups> |
| <runOrder>random</runOrder> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>1.8</source> |
| <target>1.8</target> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <phase>package</phase> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>test</phase> |
| <configuration> |
| <target name="fortress-load" if="load.file" description="Loads fortress rbac policy files into ldap"> |
| <echo message="############### Run Fortress Rest Test Policy Load ###############" /> |
| <java classname="org.apache.tools.ant.launch.Launcher" fork="true" failonerror="true" dir="${basedir}" timeout="4000000" taskname="startAnt"> |
| <classpath> |
| <pathelement location="./src/main/resources" /> |
| <pathelement location="${org.apache.ant:ant-launcher:jar}" /> |
| <pathelement location="${org.apache.ant:ant:jar}" /> |
| <pathelement location="${org.apache.directory.fortress:fortress-core:jar}" /> |
| <pathelement location="${org.openldap:accelerator-api:jar}" /> |
| <pathelement location="${org.openldap:accelerator-impl:jar}" /> |
| <pathelement location="${log4j:log4j:jar}" /> |
| <pathelement location="${org.apache.directory.api:api-all:jar}" /> |
| <pathelement location="${org.apache.mina:mina-core:jar}" /> |
| <pathelement location="${org.jgrapht:jgrapht-core:jar}" /> |
| <pathelement location="${org.jasypt:jasypt:jar}" /> |
| <pathelement location="${commons-configuration:commons-configuration:jar}" /> |
| <pathelement location="${commons-lang:commons-lang:jar}" /> |
| <pathelement location="${commons-collections:commons-collections:jar}" /> |
| <pathelement location="${commons-logging:commons-logging:jar}" /> |
| <pathelement location="${commons-io:commons-io:jar}" /> |
| <pathelement location="${commons-pool:commons-pool:jar}" /> |
| <pathelement location="${net.sf.ehcache:ehcache-core:jar}" /> |
| <pathelement location="${org.slf4j:slf4j-api:jar}" /> |
| <pathelement location="${org.slf4j:slf4j-log4j12:jar}" /> |
| <pathelement location="${antlr:antlr:jar}" /> |
| </classpath> |
| <sysproperty key="version" value="${project.version}" /> |
| <sysproperty key="tenant" value="${tenant}" /> |
| <arg value="-buildfile" /> |
| <arg file="./${load.file}" /> |
| <!-- <arg file="./src/main/resources/FortressRestServerPolicy.xml" />--> |
| </java> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <!--aggregate>true</aggregate--> |
| <quiet>true</quiet> |
| </configuration> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| <repositories> |
| <repository> |
| <id>maven2</id> |
| <url>http://repo1.maven.org/maven2</url> |
| </repository> |
| </repositories> |
| |
| </project> |