blob: 10f6a17fa97c26854db79d5c93b3bc8fb01b226c [file] [log] [blame]
<!--
~ This work is part of OpenLDAP Software <http://www.openldap.org/>.
~
~ Copyright 1998-2014 The OpenLDAP Foundation.
~ All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted only as authorized by the OpenLDAP
~ Public License.
~
~ A copy of this license is available in the file LICENSE in the
~ top-level directory of the distribution or, alternatively, at
~ <http://www.OpenLDAP.org/license.html>.
-->
<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.openldap</groupId>
<artifactId>enmasse</artifactId>
<packaging>war</packaging>
<version>1.0-RC39</version>
<name>Fortress EnMasse</name>
<url>http://www.openldap.org/fortress/</url>
<description>EnMasse is a Web application that provides a RESTful implementation of Fortress' ANSI RBAC INCITS 359 engine.</description>
<licenses>
<license>
<name>OpenLDAP Public License</name>
<url>http://www.OpenLDAP.org/license.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>http://www.openldap.org/software/repo/openldap-fortress-enmasse.git/</url>
<connection>git://git.openldap.org/openldap-fortress-enmasse.git</connection>
</scm>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<issueManagement>
<system>EnMasse JIRA</system>
<url>https://fortress.atlassian.net/browse/EN/</url>
</issueManagement>
<mailingLists>
<mailingList>
<name>openldap-fortress -- OpenLDAP Fortress Discussion list</name>
<post>openldap-fortress@openldap.org</post>
<archive>http://www.openldap.org/lists/openldap-fortress/</archive>
</mailingList>
</mailingLists>
<developers>
<developer>
<id>smckinney</id>
<name>Shawn McKinney</name>
<email>smckinney@symas.com</email>
<roles>
<role>Developer</role>
</roles>
<organization>jts.us</organization>
<timezone>-5</timezone>
</developer>
</developers>
<properties>
<!-- leave this hardcoded, else get cyclic version error from maven -->
<version>1.0-RC39</version>
<spring.security.version>3.1.4.RELEASE</spring.security.version>
<spring.version>3.0.4.RELEASE</spring.version>
<java.version>1.7</java.version>
<javadoc.version>2.9.1</javadoc.version>
<servlet-api.version>2.5.0</servlet-api.version>
<httpclient.version>3.1</httpclient.version>
<aspectj.version>1.5.4</aspectj.version>
<base.dir>.</base.dir>
<src.java.dir>${base.dir}/src/main/java</src.java.dir>
<!--cxf.surefire.fork.mode>pertest</cxf.surefire.fork.mode-->
<test>org.openldap.enmasse.EmTest</test>
<javadoc.stylesheet>${basedir}/src/main/java/org/openldap/enmasse/fortress-javadoc.css</javadoc.stylesheet>
<title>${name} ${version}</title>
<skipTests>true</skipTests>
</properties>
<dependencies>
<!-- Fortress -->
<dependency>
<groupId>org.openldap</groupId>
<artifactId>sentry</artifactId>
<version>1.0-RC39a</version>
</dependency>
<!-- EnMasse Dependencies -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle</artifactId>
<version>2.5.0</version>
</dependency>
<!-- Spring Dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- Spring Security Dependencies -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-acl</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-dao</artifactId>
<version>2.0.8</version>
</dependency>
<!-- General Dependencies -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.8.3</version>
</dependency>
</dependencies>
<build>
<finalName>enmasse-${version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
</plugin>
<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>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<configuration>
<skip>true</skip>
</configuration>
<executions>
<execution>
<id>maven-staging-repository-id</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<file>
${basedir}/target/${artifactId}-${version}.jar
</file>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<pomFile>${basedir}/pom.xml</pomFile>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
<repositoryId>sonatype-nexus-staging</repositoryId>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<configuration>
<warFile>target/${project.artifactId}.war</warFile>
<server>local-tomcat</server>
<url>http://localhost:8080/manager/html</url>
<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>
<version>${javadoc.version}</version>
<configuration>
<stylesheet>java</stylesheet>
<bottom>&lt;small&gt;Copyright &amp;copy; 1998-2014 The OpenLDAP Foundation. All Rights Reserved.
Generated ${maven.build.timestamp}.&lt;/small&gt;</bottom>
<overview>src/main/java/org/openldap/enmasse/overview.html</overview>
<version>true</version>
<author>true</author>
<doctitle>${title}</doctitle>
<windowtitle>${title}</windowtitle>
</configuration>
</plugin>
<!-- unit test (change to integration test) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<skipTests>false</skipTests>
<systemProperties>
<property>
<name>version</name>
<value>${version}</value>
</property>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>user_distribution</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/distsrc.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc.version}</version>
<configuration>
<!--aggregate>true</aggregate-->
<quiet>true</quiet>
</configuration>
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories>
<repository>
<id>maven2</id>
<url>http://repo1.maven.org/maven2</url>
</repository>
</repositories>
</project>