mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-29 11:49:48 +01:00
948 lines
27 KiB
XML
948 lines
27 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
MIT License
|
|
|
|
Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
|
|
-->
|
|
<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-core</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</artifactId>
|
|
<version>${resteasy.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.hibernate.validator</groupId>
|
|
<artifactId>hibernate-validator</artifactId>
|
|
<version>6.1.2.Final</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.el</groupId>
|
|
<artifactId>javax.el-api</artifactId>
|
|
<version>3.0.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.glassfish</groupId>
|
|
<artifactId>javax.el</artifactId>
|
|
<version>3.0.1-b11</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.xml.bind</groupId>
|
|
<artifactId>jaxb-api</artifactId>
|
|
<version>2.3.1</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.glassfish.jaxb</groupId>
|
|
<artifactId>jaxb-runtime</artifactId>
|
|
<version>2.3.0</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>
|
|
</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.1.1</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.tika</groupId>
|
|
<artifactId>tika-core</artifactId>
|
|
<version>1.24</version>
|
|
</dependency>
|
|
|
|
<!-- unix restart -->
|
|
|
|
<dependency>
|
|
<groupId>org.kohsuke</groupId>
|
|
<artifactId>akuma</artifactId>
|
|
<version>1.10</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>net.java.dev.jna</groupId>
|
|
<artifactId>jna</artifactId>
|
|
<version>5.5.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>org.awaitility</groupId>
|
|
<artifactId>awaitility</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>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.swagger.core.v3</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>2.1.1</version>
|
|
<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>io.openapitools.swagger</groupId>
|
|
<artifactId>swagger-maven-plugin</artifactId>
|
|
<configuration>
|
|
<resourcePackages>
|
|
<resourcePackage>sonia.scm.api.v2.resources</resourcePackage>
|
|
</resourcePackages>
|
|
<outputDirectory>${basedir}/target/openapi/META-INF/scm</outputDirectory>
|
|
<outputFilename>openapi</outputFilename>
|
|
<outputFormats>JSON,YAML</outputFormats>
|
|
<prettyPrint>true</prettyPrint>
|
|
<swaggerConfig>
|
|
<servers>
|
|
<server>
|
|
<url>http://localhost:8081/scm/api</url>
|
|
<description>local endpoint url</description>
|
|
</server>
|
|
</servers>
|
|
<info>
|
|
<title>SCM-Manager REST-API</title>
|
|
<version>${project.version}</version>
|
|
<contact>
|
|
<email>scmmanager@googlegroups.com</email>
|
|
<name>SCM-Manager</name>
|
|
<url>https://scm-manager.org</url>
|
|
</contact>
|
|
<license>
|
|
<url>http://www.opensource.org/licenses/bsd-license.php</url>
|
|
<name>BSD</name>
|
|
</license>
|
|
</info>
|
|
<descriptionFile>src/main/doc/openapi.md</descriptionFile>
|
|
</swaggerConfig>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</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>3.1.0</version>
|
|
<configuration>
|
|
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
|
|
<webResources>
|
|
<resource>
|
|
<directory>target/openapi</directory>
|
|
<targetPath>WEB-INF/classes</targetPath>
|
|
</resource>
|
|
</webResources>
|
|
</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.11.1</jjwt.version>
|
|
<selenium.version>2.53.1</selenium.version>
|
|
<wagon.version>1.0</wagon.version>
|
|
<mustache.version>0.9.6-scm1</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.6</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>
|
|
</profiles>
|
|
|
|
</project>
|
|
|