mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-20 06:22:10 +01:00
454 lines
13 KiB
XML
454 lines
13 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>sonia.scm</groupId>
|
|
<artifactId>scm</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-webapp</artifactId>
|
|
<packaging>war</packaging>
|
|
<version>1.1-SNAPSHOT</version>
|
|
<name>scm-webapp</name>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
<version>${servlet.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-core</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-hg-plugin</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-svn-plugin</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-git-plugin</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sun.jersey</groupId>
|
|
<artifactId>jersey-json</artifactId>
|
|
<version>${jersey.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>stax-api</artifactId>
|
|
<groupId>stax</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>jaxb-impl</artifactId>
|
|
<groupId>com.sun.xml.bind</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sun.jersey</groupId>
|
|
<artifactId>jersey-bundle</artifactId>
|
|
<version>${jersey.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sun.jersey.contribs</groupId>
|
|
<artifactId>jersey-guice</artifactId>
|
|
<version>${jersey.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.inject.extensions</groupId>
|
|
<artifactId>guice-multibindings</artifactId>
|
|
<version>${guice.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>0.9.28</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>net.sf.ehcache</groupId>
|
|
<artifactId>ehcache-core</artifactId>
|
|
<version>${ehcache.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.collections</groupId>
|
|
<artifactId>google-collections</artifactId>
|
|
<version>1.0</version>
|
|
</dependency>
|
|
|
|
<!-- aether -->
|
|
|
|
<dependency>
|
|
<groupId>org.sonatype.aether</groupId>
|
|
<artifactId>aether-api</artifactId>
|
|
<version>${aether.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.sonatype.aether</groupId>
|
|
<artifactId>aether-impl</artifactId>
|
|
<version>${aether.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.maven</groupId>
|
|
<artifactId>maven-aether-provider</artifactId>
|
|
<version>${maven.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>plexus-component-annotations</artifactId>
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.sonatype.aether</groupId>
|
|
<artifactId>aether-connector-wagon</artifactId>
|
|
<version>${aether.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>xbean-reflect</artifactId>
|
|
<groupId>org.apache.xbean</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-provider-api</artifactId>
|
|
<version>${wagon.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-http-lightweight</artifactId>
|
|
<version>${wagon.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>nekohtml</groupId>
|
|
<artifactId>nekohtml</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>nekohtml</groupId>
|
|
<artifactId>xercesMinimal</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- test scope -->
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-test</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-simple</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sun.jersey</groupId>
|
|
<artifactId>jersey-client</artifactId>
|
|
<version>${jersey.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sun.jersey.contribs</groupId>
|
|
<artifactId>jersey-apache-client</artifactId>
|
|
<version>${jersey.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>list</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeScope>runtime</includeScope>
|
|
<outputFile>${project.build.directory}/classes/config/dependencies.list</outputFile>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>sonia.maven</groupId>
|
|
<artifactId>change-env</artifactId>
|
|
<version>1.0</version>
|
|
<configuration>
|
|
<environment>${environment.profile}</environment>
|
|
<pattern>.*(\.{env})\.xml</pattern>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>change-env</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
<artifactId>maven-jetty-plugin</artifactId>
|
|
<version>6.1.26</version>
|
|
<configuration>
|
|
<stopPort>8005</stopPort>
|
|
<stopKey>STOP</stopKey>
|
|
<systemProperties>
|
|
<systemProperty>
|
|
<name>scm.home</name>
|
|
<value>target/scm-it</value>
|
|
</systemProperty>
|
|
</systemProperties>
|
|
<connectors>
|
|
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
|
|
<port>8081</port>
|
|
<maxIdleTime>60000</maxIdleTime>
|
|
</connector>
|
|
</connectors>
|
|
<source>${project.build.javaLevel}</source>
|
|
<target>${project.build.javaLevel}</target>
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
<scanIntervalSeconds>0</scanIntervalSeconds>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
<finalName>scm-webapp</finalName>
|
|
</build>
|
|
|
|
<properties>
|
|
<environment.profile>default</environment.profile>
|
|
<aether.version>1.10.1</aether.version>
|
|
<wagon.version>1.0-beta-7</wagon.version>
|
|
<maven.version>3.0.2</maven.version>
|
|
</properties>
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
<id>release</id>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>2.1.1</version>
|
|
<configuration>
|
|
<webResources>
|
|
<resource>
|
|
<directory>${project.build.directory}/web-compressor</directory>
|
|
</resource>
|
|
</webResources>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
<groupId>sonia.maven</groupId>
|
|
<artifactId>web-compressor</artifactId>
|
|
<version>1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>compress-template</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<source>src/main/webapp/index.html</source>
|
|
<target>${project.build.directory}/web-compressor/index.html</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<properties>
|
|
<environment.profile>release</environment.profile>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>development</id>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-graph-plugin</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.sample</groupId>
|
|
<artifactId>scm-sample-auth</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.sample</groupId>
|
|
<artifactId>scm-sample-hello</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-activedirectory-auth-plugin</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-pam-plugin</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-bzr-plugin</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-auth-ldap-plugin</artifactId>
|
|
<version>1.1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>it</id>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<version>2.7.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>integration-test</id>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>verify</id>
|
|
<goals>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
<artifactId>maven-jetty-plugin</artifactId>
|
|
<version>6.1.26</version>
|
|
<configuration>
|
|
<stopPort>8005</stopPort>
|
|
<stopKey>STOP</stopKey>
|
|
<systemProperties>
|
|
<systemProperty>
|
|
<name>scm.home</name>
|
|
<value>target/scm-it</value>
|
|
</systemProperty>
|
|
</systemProperties>
|
|
<connectors>
|
|
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
|
|
<port>8081</port>
|
|
<maxIdleTime>60000</maxIdleTime>
|
|
</connector>
|
|
</connectors>
|
|
<source>${project.build.javaLevel}</source>
|
|
<target>${project.build.javaLevel}</target>
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
<scanIntervalSeconds>0</scanIntervalSeconds>
|
|
<daemon>true</daemon>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>start-jetty</id>
|
|
<phase>pre-integration-test</phase>
|
|
<goals>
|
|
<goal>deploy-war</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>stop-jetty</id>
|
|
<phase>post-integration-test</phase>
|
|
<goals>
|
|
<goal>stop</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|
|
|