207 lines
8.4 KiB
XML
207 lines
8.4 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/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>tech.bitgoblin</groupId>
|
|
<artifactId>dragoon</artifactId>
|
|
<version>0.3.13</version>
|
|
<name>Dragoon</name>
|
|
<url>https://www.bitgoblin.tech</url>
|
|
<description>Automated video transcoder service.</description>
|
|
<inceptionYear>2022</inceptionYear>
|
|
<organization>
|
|
<name>Bit Goblin</name>
|
|
<url>https://www.bitgoblin.tech</url>
|
|
</organization>
|
|
|
|
<developers>
|
|
<developer>
|
|
<id>gballantine</id>
|
|
<name>Gregory Ballantine</name>
|
|
<email>gballantine@bitgoblin.tech</email>
|
|
</developer>
|
|
</developers>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>BSD</name>
|
|
<url>https://opensource.org/licenses/BSD-2-Clause</url>
|
|
<distribution>repo</distribution>
|
|
<comments>Simplified BSD license.</comments>
|
|
</license>
|
|
</licenses>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>21</maven.compiler.source>
|
|
<maven.compiler.target>21</maven.compiler.target>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>commons-cli</groupId>
|
|
<artifactId>commons-cli</artifactId>
|
|
<version>1.3.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.tomlj</groupId>
|
|
<artifactId>tomlj</artifactId>
|
|
<version>1.0.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-api</artifactId>
|
|
<version>2.19.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-core</artifactId>
|
|
<version>2.19.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.11</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.0.2</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.aerse.maven</groupId>
|
|
<artifactId>deb-maven-plugin</artifactId>
|
|
<version>1.16</version>
|
|
<executions>
|
|
<execution>
|
|
<id>package</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>package</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<unixUserId>dragoon</unixUserId>
|
|
<unixGroupId>dragoon</unixGroupId>
|
|
<debBaseDir>${project.basedir}/build/deb</debBaseDir>
|
|
<installDir>/opt</installDir>
|
|
<osDependencies>
|
|
<openjdk-21-jre></openjdk-21-jre>
|
|
<ffmpeg></ffmpeg>
|
|
</osDependencies>
|
|
<javaServiceWrapper>false</javaServiceWrapper>
|
|
<generateVersion>false</generateVersion>
|
|
<fileSets>
|
|
<fileSet>
|
|
<source>${basedir}/build/deb</source>
|
|
<target>/</target>
|
|
</fileSet>
|
|
<fileSet>
|
|
<source>${basedir}/target/dragoon-${project.version}-jar-with-dependencies.jar</source>
|
|
<target>/opt/dragoon/dragoon.jar</target>
|
|
</fileSet>
|
|
</fileSets>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>rpm-maven-plugin</artifactId>
|
|
<version>2.2.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-rpm</id>
|
|
<goals>
|
|
<goal>rpm</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<license>BSD 2-Clause</license>
|
|
<group>Applications/Multimedia</group>
|
|
<icon>src/main/resources/icon.gif</icon>
|
|
<packager>Bit Goblin</packager>
|
|
<prefix>/opt</prefix>
|
|
<changelogFile>${project.basedir}/build/changelog.txt</changelogFile>
|
|
<targetOs>${os.name}</targetOs>
|
|
<mappings>
|
|
<mapping>
|
|
<directory>/opt/dragoon</directory>
|
|
<filemode>755</filemode>
|
|
<username>dragoon</username>
|
|
<groupname>dragoon</groupname>
|
|
</mapping>
|
|
<mapping>
|
|
<directory>/opt/dragoon/dragoon.jar</directory>
|
|
<filemode>755</filemode>
|
|
<username>dragoon</username>
|
|
<groupname>dragoon</groupname>
|
|
<sources>
|
|
<source>
|
|
<location>${basedir}/target/dragoon-${project.version}-jar-with-dependencies.jar</location>
|
|
</source>
|
|
</sources>
|
|
</mapping>
|
|
<mapping>
|
|
<directory>/opt/dragoon/log4j2.xml</directory>
|
|
<filemode>755</filemode>
|
|
<username>dragoon</username>
|
|
<groupname>dragoon</groupname>
|
|
<sources>
|
|
<source>
|
|
<location>${basedir}/build/deb/opt/dragoon/log4j2.xml</location>
|
|
</source>
|
|
</sources>
|
|
</mapping>
|
|
<mapping>
|
|
<directory>/etc/dragoon</directory>
|
|
<configuration>true</configuration>
|
|
<filemode>755</filemode>
|
|
<username>dragoon</username>
|
|
<groupname>dragoon</groupname>
|
|
<sources>
|
|
<source>
|
|
<location>${project.basedir}/build/deb/etc/dragoon</location>
|
|
</source>
|
|
</sources>
|
|
</mapping>
|
|
<mapping>
|
|
<directory>/etc/systemd/system/dragoon.service</directory>
|
|
<filemode>644</filemode>
|
|
<username>root</username>
|
|
<groupname>root</groupname>
|
|
<sources>
|
|
<source>
|
|
<location>${project.basedir}/build/deb/etc/systemd/system/dragoon.service</location>
|
|
</source>
|
|
</sources>
|
|
</mapping>
|
|
</mappings>
|
|
<requires>
|
|
<require>java-21-openjdk</require>
|
|
<require>ffmpeg-free</require>
|
|
</requires>
|
|
<preinstallScriptlet>
|
|
<script>echo "installing ${project.name} now"</script>
|
|
</preinstallScriptlet>
|
|
<postinstallScriptlet>
|
|
<scriptFile>build/scripts/postinstall.sh</scriptFile>
|
|
<fileEncoding>utf-8</fileEncoding>
|
|
<filter>true</filter>
|
|
</postinstallScriptlet>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
|
<version>3.0.0</version>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|