mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-16 05:19:47 +01:00
949 lines
27 KiB
XML
949 lines
27 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>2.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-webapp</artifactId>
|
|
<packaging>war</packaging>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<name>scm-webapp</name>
|
|
|
|
<dependencies>
|
|
|
|
<!-- annotation processor -->
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-annotation-processor</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
<version>${servlet.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- fix javadoc -->
|
|
|
|
<dependency>
|
|
<groupId>javax.transaction</groupId>
|
|
<artifactId>jta</artifactId>
|
|
<version>1.1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- scm -->
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-core</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-dao-xml</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<!-- security -->
|
|
|
|
<dependency>
|
|
<groupId>org.apache.shiro</groupId>
|
|
<artifactId>shiro-web</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.shiro</groupId>
|
|
<artifactId>shiro-guice</artifactId>
|
|
<version>${shiro.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-impl</artifactId>
|
|
<version>${jjwt.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-api</artifactId>
|
|
<version>${jjwt.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-jackson</artifactId>
|
|
<version>${jjwt.version}</version>
|
|
</dependency>
|
|
|
|
<!-- json -->
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.module</groupId>
|
|
<artifactId>jackson-module-jaxb-annotations</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.jaxrs</groupId>
|
|
<artifactId>jackson-jaxrs-base</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
<artifactId>jackson-datatype-jdk8</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.jaxrs</groupId>
|
|
<artifactId>jackson-jaxrs-json-provider</artifactId>
|
|
<version>${jackson.version}</version>
|
|
</dependency>
|
|
|
|
<!-- rest api -->
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-jaxrs</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-jaxb-provider</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-jackson2-provider</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-multipart-provider</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-guice</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-servlet-initializer</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-validator-provider-11</artifactId>
|
|
<version>${resteasy.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-validator</artifactId>
|
|
<version>5.3.6.Final</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.el</groupId>
|
|
<artifactId>javax.el-api</artifactId>
|
|
<version>2.2.4</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.glassfish.web</groupId>
|
|
<artifactId>javax.el</artifactId>
|
|
<version>2.2.4</version>
|
|
</dependency>
|
|
|
|
<!-- injection -->
|
|
|
|
<dependency>
|
|
<groupId>com.google.inject.extensions</groupId>
|
|
<artifactId>guice-multibindings</artifactId>
|
|
<version>${guice.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.inject.extensions</groupId>
|
|
<artifactId>guice-assistedinject</artifactId>
|
|
<version>${guice.version}</version>
|
|
</dependency>
|
|
|
|
<!-- event bus -->
|
|
|
|
<dependency>
|
|
<groupId>com.github.legman.support</groupId>
|
|
<artifactId>shiro</artifactId>
|
|
<version>${legman.version}</version>
|
|
</dependency>
|
|
|
|
<!-- logging -->
|
|
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>log4j-over-slf4j</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
|
|
<!--
|
|
fix java.lang.NoClassDefFoundError org/w3c/dom/ElementTraversal
|
|
-->
|
|
|
|
<dependency>
|
|
<groupId>xml-apis</groupId>
|
|
<artifactId>xml-apis</artifactId>
|
|
<version>1.4.01</version>
|
|
</dependency>
|
|
|
|
<!--
|
|
fix installation of httpasswd-plugin
|
|
https://groups.google.com/d/topic/scmmanager/eN7UtG8TwW8/discussion
|
|
-->
|
|
|
|
<dependency>
|
|
<groupId>commons-codec</groupId>
|
|
<artifactId>commons-codec</artifactId>
|
|
<version>1.9</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>${guava.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.cronutils</groupId>
|
|
<artifactId>cron-utils</artifactId>
|
|
<version>8.1.1</version>
|
|
</dependency>
|
|
|
|
<!-- template engine -->
|
|
|
|
<dependency>
|
|
<groupId>com.github.spullara.mustache.java</groupId>
|
|
<artifactId>compiler</artifactId>
|
|
<version>${mustache.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.sdorra</groupId>
|
|
<artifactId>web-resources</artifactId>
|
|
<version>1.1.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.sdorra</groupId>
|
|
<artifactId>spotter-core</artifactId>
|
|
<version>2.0.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.tika</groupId>
|
|
<artifactId>tika-core</artifactId>
|
|
<version>1.20</version>
|
|
</dependency>
|
|
|
|
<!-- class loader leak prevention -->
|
|
|
|
<dependency>
|
|
<groupId>se.jiderhamn.classloader-leak-prevention</groupId>
|
|
<artifactId>classloader-leak-prevention-core</artifactId>
|
|
<version>2.7.0</version>
|
|
</dependency>
|
|
|
|
<!-- test scope -->
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-test</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-simple</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
<artifactId>selenium-java</artifactId>
|
|
<version>${selenium.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
<artifactId>selenium-firefox-driver</artifactId>
|
|
<version>${selenium.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
<artifactId>htmlunit-driver</artifactId>
|
|
<version>2.21</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sun.jersey</groupId>
|
|
<artifactId>jersey-client</artifactId>
|
|
<version>${jersey-client.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sun.jersey.contribs</groupId>
|
|
<artifactId>jersey-apache-client</artifactId>
|
|
<version>${jersey-client.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- core plugins -->
|
|
|
|
<dependency>
|
|
<groupId>com.github.sdorra</groupId>
|
|
<artifactId>shiro-unit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-git-plugin</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<classifier>tests</classifier>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-git-plugin</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-hg-plugin</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<classifier>tests</classifier>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-hg-plugin</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-svn-plugin</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<classifier>tests</classifier>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-svn-plugin</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- global excludes -->
|
|
|
|
<dependency>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
<version>1.1.3</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
<version>1.2.17</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>com.mycila.maven-license-plugin</groupId>
|
|
<artifactId>maven-license-plugin</artifactId>
|
|
<version>1.9.0</version>
|
|
<configuration>
|
|
<header>http://download.scm-manager.org/licenses/mvn-license.txt</header>
|
|
<includes>
|
|
<include>src/**</include>
|
|
<include>**/test/**</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>target/**</exclude>
|
|
<exclude>.hg/**</exclude>
|
|
<exclude>src/main/webapp/resources/extjs/**</exclude>
|
|
<exclude>src/main/webapp/resources/syntaxhighlighter/**</exclude>
|
|
<exclude>src/main/webapp/resources/moment/**</exclude>
|
|
<exclude>**/*.mustache</exclude>
|
|
</excludes>
|
|
<strictCheck>true</strictCheck>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.4</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.scm.maven</groupId>
|
|
<artifactId>smp-maven-plugin</artifactId>
|
|
<configuration>
|
|
<smpArtifacts>
|
|
<artifact>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-hg-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</artifact>
|
|
<artifact>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-svn-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</artifact>
|
|
<artifact>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-git-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</artifact>
|
|
<artifact>
|
|
<groupId>sonia.scm.plugins</groupId>
|
|
<artifactId>scm-legacy-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</artifact>
|
|
</smpArtifacts>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>copy-core-plugins</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>2.2</version>
|
|
<configuration>
|
|
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
|
|
</configuration>
|
|
</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.eclipse.jetty</groupId>
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
<version>${jetty.maven.version}</version>
|
|
<configuration>
|
|
<stopPort>8005</stopPort>
|
|
<stopKey>STOP</stopKey>
|
|
<systemProperties>
|
|
<systemProperty>
|
|
<name>scm.home</name>
|
|
<value>${scm.home}</value>
|
|
</systemProperty>
|
|
<systemProperty>
|
|
<name>scm.stage</name>
|
|
<value>${scm.stage}</value>
|
|
</systemProperty>
|
|
<systemProperty>
|
|
<name>java.awt.headless</name>
|
|
<value>true</value>
|
|
</systemProperty>
|
|
<systemProperty>
|
|
<name>sonia.scm.ui.proxy</name>
|
|
<value>${livereload.proxy}</value>
|
|
</systemProperty>
|
|
</systemProperties>
|
|
<webApp>
|
|
<contextPath>/scm</contextPath>
|
|
</webApp>
|
|
<jettyXml>${project.basedir}/src/main/conf/jetty.xml</jettyXml>
|
|
<scanIntervalSeconds>0</scanIntervalSeconds>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
<finalName>scm-webapp</finalName>
|
|
</build>
|
|
|
|
<properties>
|
|
<scm.stage>DEVELOPMENT</scm.stage>
|
|
<scm.home>target/scm-it</scm.home>
|
|
<environment.profile>default</environment.profile>
|
|
<jjwt.version>0.10.5</jjwt.version>
|
|
<selenium.version>2.53.1</selenium.version>
|
|
<wagon.version>1.0</wagon.version>
|
|
<mustache.version>0.8.17</mustache.version>
|
|
<netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server>
|
|
<sonar.issue.ignore.multicriteria>e1</sonar.issue.ignore.multicriteria>
|
|
<sonar.issue.ignore.multicriteria.e1.ruleKey>javascript:S3827</sonar.issue.ignore.multicriteria.e1.ruleKey>
|
|
<sonar.issue.ignore.multicriteria.e1.resourceKey>**.js</sonar.issue.ignore.multicriteria.e1.resourceKey>
|
|
<sonar.exclusions>src/main/webapp**</sonar.exclusions>
|
|
</properties>
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
<id>livereload</id>
|
|
|
|
<activation>
|
|
<property>
|
|
<name>livereload</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<properties>
|
|
<livereload.proxy>http://localhost:3000</livereload.proxy>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>ui-overlay</id>
|
|
|
|
<activation>
|
|
<property>
|
|
<name>!livereload</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>sonia.scm</groupId>
|
|
<artifactId>scm-ui</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<type>war</type>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>release</id>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<version>2.2</version>
|
|
<configuration>
|
|
<webResources>
|
|
<resource>
|
|
<directory>${project.build.directory}/web-compressor</directory>
|
|
</resource>
|
|
<resource>
|
|
<directory>${project.build.directory}/dependency-rewrite</directory>
|
|
</resource>
|
|
</webResources>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>sonia.maven</groupId>
|
|
<artifactId>web-compressor</artifactId>
|
|
<version>1.5</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>partial-compress-template</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<source>src/main/webapp/index.mustache</source>
|
|
<target>${project.build.directory}/web-compressor/index.mustache</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<properties>
|
|
<environment.profile>release</environment.profile>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>it</id>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<version>2.12</version>
|
|
<configuration>
|
|
<includes>
|
|
<include>sonia/scm/it/*ITCase.java</include>
|
|
</includes>
|
|
</configuration>
|
|
<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.eclipse.jetty</groupId>
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
<version>${jetty.maven.version}</version>
|
|
<configuration>
|
|
<stopPort>8085</stopPort>
|
|
<stopKey>STOP</stopKey>
|
|
<systemProperties>
|
|
<systemProperty>
|
|
<name>scm.home</name>
|
|
<value>target/scm-it</value>
|
|
</systemProperty>
|
|
<systemProperty>
|
|
<name>scm.stage</name>
|
|
<value>${scm.stage}</value>
|
|
</systemProperty>
|
|
</systemProperties>
|
|
<jettyXml>${project.basedir}/src/main/conf/jetty.xml</jettyXml>
|
|
<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>
|
|
|
|
<profile>
|
|
<id>selenium</id>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
<version>4.3.2</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<version>2.12</version>
|
|
<configuration>
|
|
<includes>
|
|
<include>sonia/scm/selenium/*ITCase.java</include>
|
|
</includes>
|
|
</configuration>
|
|
<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.eclipse.jetty</groupId>
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
<version>${jetty.maven.version}</version>
|
|
<configuration>
|
|
<httpConnector>
|
|
<port>8082</port>
|
|
</httpConnector>
|
|
<stopPort>8086</stopPort>
|
|
<stopKey>STOP</stopKey>
|
|
<systemProperties>
|
|
<systemProperty>
|
|
<name>scm.home</name>
|
|
<value>target/scm-it</value>
|
|
</systemProperty>
|
|
</systemProperties>
|
|
<jettyXml>${project.basedir}/src/main/conf/jetty.xml</jettyXml>
|
|
<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>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>selenium-maven-plugin</artifactId>
|
|
<version>2.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>start-selenium-server</id>
|
|
<phase>pre-integration-test</phase>
|
|
<goals>
|
|
<goal>start-server</goal>
|
|
</goals>
|
|
<configuration>
|
|
<background>true</background>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>stop-selenium-server</id>
|
|
<phase>post-integration-test</phase>
|
|
<goals>
|
|
<goal>stop-server</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>doc</id>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-enunciate-configuration</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/doc</directory>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>**/enunciate.xml</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.webcohesion.enunciate</groupId>
|
|
<artifactId>enunciate-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>docs</goal>
|
|
</goals>
|
|
<phase>compile</phase>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<configFile>${project.build.directory}/enunciate.xml</configFile>
|
|
<docsDir>${project.build.directory}</docsDir>
|
|
<docsSubdir>restdocs</docsSubdir>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.webcohesion.enunciate</groupId>
|
|
<artifactId>enunciate-top</artifactId>
|
|
<version>${enunciate.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>com.webcohesion.enunciate</groupId>
|
|
<artifactId>enunciate-swagger</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.webcohesion.enunciate</groupId>
|
|
<artifactId>enunciate-lombok</artifactId>
|
|
<version>${enunciate.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
<version>${org.mapstruct.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<configuration>
|
|
<descriptors>
|
|
<descriptor>src/main/doc/assembly.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|
|
|