2010-09-11 19:17:50 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2011-07-09 15:11:06 +02:00
|
|
|
<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/xsd/maven-4.0.0.xsd">
|
2010-09-11 19:17:50 +02:00
|
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2014-07-03 15:07:03 +02:00
|
|
|
|
2010-09-11 19:17:50 +02:00
|
|
|
<parent>
|
|
|
|
|
<artifactId>scm</artifactId>
|
|
|
|
|
<groupId>sonia.scm</groupId>
|
2014-12-13 16:29:17 +01:00
|
|
|
<version>2.0.0-SNAPSHOT</version>
|
2010-09-11 19:17:50 +02:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
<groupId>sonia.scm</groupId>
|
|
|
|
|
<artifactId>scm-server</artifactId>
|
2014-12-13 16:29:17 +01:00
|
|
|
<version>2.0.0-SNAPSHOT</version>
|
2010-09-11 19:17:50 +02:00
|
|
|
<name>scm-server</name>
|
2011-03-02 19:26:48 +01:00
|
|
|
<packaging>jar</packaging>
|
2010-09-11 19:17:50 +02:00
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
2011-03-02 19:26:48 +01:00
|
|
|
<groupId>commons-daemon</groupId>
|
|
|
|
|
<artifactId>commons-daemon</artifactId>
|
2014-05-14 16:30:58 +02:00
|
|
|
<version>${commons.daemon.version}</version>
|
2010-09-11 19:17:50 +02:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
2011-03-02 19:26:48 +01:00
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
|
<artifactId>jetty-server</artifactId>
|
|
|
|
|
<version>${jetty.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
|
<artifactId>jetty-webapp</artifactId>
|
|
|
|
|
<version>${jetty.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
|
<artifactId>jetty-jmx</artifactId>
|
|
|
|
|
<version>${jetty.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2010-09-11 19:17:50 +02:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
|
|
<plugin>
|
2011-02-03 12:36:17 +01:00
|
|
|
<groupId>sonia.maven</groupId>
|
2010-09-11 19:17:50 +02:00
|
|
|
<artifactId>appassembler-maven-plugin</artifactId>
|
2014-05-18 11:34:33 +02:00
|
|
|
<version>1.2.2.0</version>
|
2010-09-11 19:17:50 +02:00
|
|
|
<executions>
|
|
|
|
|
<execution>
|
2011-03-02 19:26:48 +01:00
|
|
|
<id>scm-app</id>
|
2010-09-11 19:17:50 +02:00
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>create-repository</goal>
|
|
|
|
|
<goal>generate-daemons</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<target>${project.build.directory}/appassembler</target>
|
2014-05-14 16:33:31 +02:00
|
|
|
<assembleDirectory>${exploded.directory}</assembleDirectory>
|
2010-09-11 19:17:50 +02:00
|
|
|
<repoPath>lib</repoPath>
|
|
|
|
|
<repositoryLayout>flat</repositoryLayout>
|
|
|
|
|
<daemons>
|
|
|
|
|
<daemon>
|
2011-03-02 19:26:48 +01:00
|
|
|
|
2010-09-11 19:17:50 +02:00
|
|
|
<id>scm-server</id>
|
2015-12-13 14:21:09 +01:00
|
|
|
<version>${commons.daemon.native.version}</version>
|
2011-03-02 19:26:48 +01:00
|
|
|
<mainClass>sonia.scm.server.ScmServerDaemon</mainClass>
|
2010-09-11 19:17:50 +02:00
|
|
|
<platforms>
|
2011-03-02 19:26:48 +01:00
|
|
|
<platform>commons-daemon</platform>
|
2010-09-11 19:17:50 +02:00
|
|
|
</platforms>
|
2014-07-03 15:07:03 +02:00
|
|
|
|
2011-05-24 17:23:24 +02:00
|
|
|
<jvmSettings>
|
|
|
|
|
<systemProperties>
|
2012-08-20 16:12:29 +02:00
|
|
|
<arg>java.awt.headless=true</arg>
|
2011-05-24 17:23:24 +02:00
|
|
|
<arg>logback.configurationFile=logging.xml</arg>
|
|
|
|
|
</systemProperties>
|
|
|
|
|
</jvmSettings>
|
2010-09-11 19:17:50 +02:00
|
|
|
|
|
|
|
|
<generatorConfigurations>
|
|
|
|
|
<generatorConfiguration>
|
2011-03-02 19:26:48 +01:00
|
|
|
|
|
|
|
|
<generator>commons-daemon</generator>
|
2010-09-11 19:17:50 +02:00
|
|
|
<configuration>
|
|
|
|
|
<property>
|
2011-03-02 19:26:48 +01:00
|
|
|
<name>configuration.directory</name>
|
2010-09-11 19:17:50 +02:00
|
|
|
<value>conf</value>
|
|
|
|
|
</property>
|
2012-05-02 16:01:50 +02:00
|
|
|
<property>
|
|
|
|
|
<name>darwin.arch.enable</name>
|
|
|
|
|
<value>false</value>
|
|
|
|
|
</property>
|
2014-06-01 09:57:07 +02:00
|
|
|
<property>
|
|
|
|
|
<name>windows.service.dependencies</name>
|
|
|
|
|
<value>Tcpip</value>
|
|
|
|
|
</property>
|
2010-09-11 19:17:50 +02:00
|
|
|
</configuration>
|
2011-03-02 19:26:48 +01:00
|
|
|
|
2010-09-11 19:17:50 +02:00
|
|
|
</generatorConfiguration>
|
|
|
|
|
</generatorConfigurations>
|
|
|
|
|
|
|
|
|
|
</daemon>
|
|
|
|
|
</daemons>
|
|
|
|
|
|
2011-02-14 17:23:18 +01:00
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
2010-09-11 19:17:50 +02:00
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
2011-12-25 18:32:21 +01:00
|
|
|
<version>2.4</version>
|
2010-09-11 19:17:50 +02:00
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>copy</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<artifactItems>
|
2011-02-14 17:23:18 +01:00
|
|
|
<artifactItem>
|
|
|
|
|
<groupId>${project.groupId}</groupId>
|
|
|
|
|
<artifactId>scm-webapp</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
<type>war</type>
|
2014-05-14 16:33:31 +02:00
|
|
|
<outputDirectory>${exploded.directory}/var/webapp</outputDirectory>
|
2011-02-14 17:23:18 +01:00
|
|
|
<destFileName>scm-webapp.war</destFileName>
|
|
|
|
|
</artifactItem>
|
2010-09-11 19:17:50 +02:00
|
|
|
</artifactItems>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<descriptors>
|
2011-02-14 17:23:18 +01:00
|
|
|
<descriptor>src/main/assembly/scm-server-app.xml</descriptor>
|
2010-09-11 19:17:50 +02:00
|
|
|
</descriptors>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>single</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
|
|
|
|
<finalName>scm-server</finalName>
|
|
|
|
|
</build>
|
2014-07-03 15:07:03 +02:00
|
|
|
|
2014-05-14 16:33:31 +02:00
|
|
|
<profiles>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>nativepkg</id>
|
2014-07-03 15:07:03 +02:00
|
|
|
|
2014-05-14 16:33:31 +02:00
|
|
|
<build>
|
|
|
|
|
<plugins>
|
2014-07-03 15:07:03 +02:00
|
|
|
|
2014-05-14 16:33:31 +02:00
|
|
|
<plugin>
|
|
|
|
|
<groupId>com.github.sdorra</groupId>
|
|
|
|
|
<artifactId>nativepkg-maven-plugin</artifactId>
|
2017-05-15 22:04:23 +02:00
|
|
|
<version>1.1.4</version>
|
2014-05-14 16:33:31 +02:00
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
2014-05-16 12:39:08 +02:00
|
|
|
<goal>deb</goal>
|
2014-05-14 16:33:31 +02:00
|
|
|
<goal>rpm</goal>
|
|
|
|
|
</goals>
|
2014-12-13 15:40:51 +01:00
|
|
|
<!--
|
|
|
|
|
disabled for pre releases.
|
|
|
|
|
TODO enable for ga.
|
|
|
|
|
-->
|
|
|
|
|
<phase>none</phase>
|
2014-05-14 16:33:31 +02:00
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
<configuration>
|
2014-10-17 21:31:35 +02:00
|
|
|
<name>${project.name}-2</name>
|
2014-05-14 16:33:31 +02:00
|
|
|
<attach>true</attach>
|
2014-05-23 15:24:26 +02:00
|
|
|
<classifier>all</classifier>
|
2014-05-14 16:33:31 +02:00
|
|
|
<release>${maven.build.timestamp}</release>
|
|
|
|
|
<section>devel</section>
|
|
|
|
|
<group>Development/Tools</group>
|
|
|
|
|
<vendor>SCM-Manager</vendor>
|
|
|
|
|
<license>BSD 3-Clause</license>
|
|
|
|
|
<url>www.scm-manager.org</url>
|
|
|
|
|
<summary>${project.description}</summary>
|
|
|
|
|
<packager>Sebastian Sdorra <s.sdorra@gmail.com></packager>
|
|
|
|
|
<platform>
|
|
|
|
|
<architecture>noarch</architecture>
|
|
|
|
|
<os>linux</os>
|
|
|
|
|
</platform>
|
2014-05-18 10:48:26 +02:00
|
|
|
<scripts>
|
2014-05-26 09:14:26 +02:00
|
|
|
<preInstall>${project.basedir}/src/main/nativepkg/create-user</preInstall>
|
2017-06-25 13:46:39 +02:00
|
|
|
<postInstall>${project.basedir}/src/main/nativepkg/clear-cache</postInstall>
|
2014-05-18 10:48:26 +02:00
|
|
|
</scripts>
|
2014-05-14 16:33:31 +02:00
|
|
|
<mappings>
|
|
|
|
|
<files>
|
|
|
|
|
<file>
|
|
|
|
|
<path>/opt/scm-server/bin/scm-server</path>
|
|
|
|
|
<source>${exploded.directory}/bin/scm-server</source>
|
|
|
|
|
<mode>0744</mode>
|
|
|
|
|
</file>
|
|
|
|
|
<file>
|
|
|
|
|
<path>/opt/scm-server/conf/server-config.xml</path>
|
|
|
|
|
<source>${project.basedir}/src/main/conf/server-config.xml</source>
|
|
|
|
|
<config>true</config>
|
|
|
|
|
</file>
|
|
|
|
|
<file>
|
|
|
|
|
<path>/opt/scm-server/conf/logging.xml</path>
|
|
|
|
|
<source>${project.basedir}/src/main/nativepkg/logging.xml</source>
|
|
|
|
|
<config>true</config>
|
|
|
|
|
</file>
|
|
|
|
|
<file>
|
|
|
|
|
<path>/opt/scm-server/libexec/jsvc-linux-i686</path>
|
|
|
|
|
<source>${exploded.directory}/libexec/jsvc-linux-i686</source>
|
|
|
|
|
<mode>0744</mode>
|
|
|
|
|
</file>
|
|
|
|
|
<file>
|
|
|
|
|
<path>/opt/scm-server/libexec/jsvc-linux-x86_64</path>
|
|
|
|
|
<source>${exploded.directory}/libexec/jsvc-linux-x86_64</source>
|
|
|
|
|
<mode>0744</mode>
|
|
|
|
|
</file>
|
|
|
|
|
<file>
|
|
|
|
|
<path>/opt/scm-server/var/webapp/scm-webapp.war</path>
|
|
|
|
|
<source>${exploded.directory}/var/webapp/scm-webapp.war</source>
|
|
|
|
|
</file>
|
|
|
|
|
<file>
|
|
|
|
|
<path>/opt/scm-server/var/webapp/docroot/index.html</path>
|
|
|
|
|
<source>${basedir}/src/main/docroot/index.html</source>
|
|
|
|
|
</file>
|
|
|
|
|
<file>
|
|
|
|
|
<path>/etc/default/scm-server</path>
|
|
|
|
|
<source>${project.basedir}/src/main/nativepkg/default</source>
|
2015-10-27 22:13:21 +01:00
|
|
|
<mode>0644</mode>
|
2014-05-14 16:33:31 +02:00
|
|
|
<config>true</config>
|
|
|
|
|
</file>
|
|
|
|
|
<file>
|
|
|
|
|
<path>/etc/init.d/scm-server</path>
|
2014-05-18 10:48:26 +02:00
|
|
|
<source>${project.basedir}/src/main/nativepkg/init-script</source>
|
2015-10-27 22:13:21 +01:00
|
|
|
<mode>0755</mode>
|
2014-05-14 16:33:31 +02:00
|
|
|
</file>
|
|
|
|
|
</files>
|
|
|
|
|
<links>
|
|
|
|
|
<link>
|
|
|
|
|
<source>/opt/scm-server/var/log</source>
|
|
|
|
|
<target>/var/log/scm</target>
|
|
|
|
|
</link>
|
|
|
|
|
<link>
|
|
|
|
|
<source>/opt/scm-server/work</source>
|
|
|
|
|
<target>/var/cache/scm/work</target>
|
|
|
|
|
</link>
|
|
|
|
|
</links>
|
|
|
|
|
<directories>
|
|
|
|
|
<directory>
|
|
|
|
|
<path>/opt/scm-server/lib</path>
|
|
|
|
|
<source>${exploded.directory}/lib</source>
|
|
|
|
|
</directory>
|
2014-07-03 17:04:21 +02:00
|
|
|
<directory>
|
|
|
|
|
<path>/var/cache/scm</path>
|
|
|
|
|
<uname>scm</uname>
|
|
|
|
|
<gname>scm</gname>
|
|
|
|
|
<dirMode>0700</dirMode>
|
|
|
|
|
<addParents>false</addParents>
|
|
|
|
|
</directory>
|
2014-05-14 16:33:31 +02:00
|
|
|
<directory>
|
|
|
|
|
<path>/var/cache/scm/work</path>
|
2014-05-16 12:39:08 +02:00
|
|
|
<uname>scm</uname>
|
|
|
|
|
<gname>scm</gname>
|
|
|
|
|
<dirMode>0700</dirMode>
|
2014-07-03 17:04:21 +02:00
|
|
|
<addParents>false</addParents>
|
2014-05-14 16:33:31 +02:00
|
|
|
</directory>
|
|
|
|
|
<directory>
|
|
|
|
|
<path>/var/log/scm</path>
|
2014-05-18 10:48:26 +02:00
|
|
|
<uname>scm</uname>
|
2014-05-16 12:39:08 +02:00
|
|
|
<gname>scm</gname>
|
|
|
|
|
<dirMode>0770</dirMode>
|
2014-07-03 17:04:21 +02:00
|
|
|
<addParents>false</addParents>
|
2014-05-14 16:33:31 +02:00
|
|
|
</directory>
|
|
|
|
|
<directory>
|
|
|
|
|
<path>/var/lib/scm</path>
|
2014-05-16 12:39:08 +02:00
|
|
|
<uname>scm</uname>
|
|
|
|
|
<gname>scm</gname>
|
|
|
|
|
<dirMode>0700</dirMode>
|
2014-07-03 17:04:21 +02:00
|
|
|
<addParents>false</addParents>
|
2014-05-14 16:33:31 +02:00
|
|
|
</directory>
|
|
|
|
|
</directories>
|
2014-07-03 15:07:03 +02:00
|
|
|
</mappings>
|
2014-05-14 16:33:31 +02:00
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2014-07-03 15:07:03 +02:00
|
|
|
|
2014-05-14 16:33:31 +02:00
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
</profile>
|
|
|
|
|
</profiles>
|
2014-07-03 15:07:03 +02:00
|
|
|
|
2014-05-14 16:30:58 +02:00
|
|
|
<properties>
|
2018-04-13 23:32:50 +02:00
|
|
|
<commons.daemon.version>1.1.0</commons.daemon.version>
|
|
|
|
|
<commons.daemon.native.version>1.1.0</commons.daemon.native.version>
|
2014-05-14 16:33:31 +02:00
|
|
|
<exploded.directory>${project.build.directory}/appassembler/commons-daemon/scm-server</exploded.directory>
|
2014-05-14 16:30:58 +02:00
|
|
|
</properties>
|
2010-09-11 19:17:50 +02:00
|
|
|
|
|
|
|
|
</project>
|