Dayon/pom.xml
2021-02-10 07:47:07 +01:00

485 lines
23 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>
<name>Dayon!</name>
<url>https://github.com/retgal/dayon</url>
<groupId>mpo.dayon</groupId>
<artifactId>dayon</artifactId>
<version>1.10.3</version>
<description>cross platform remote desktop solution</description>
<developers>
<developer>
<id>RetGal</id>
<name>Reto Galante</name>
<email>reto@galante.ch</email>
</developer>
</developers>
<inceptionYear>2019</inceptionYear>
<licenses>
<license>
<name>GPL-3</name>
<url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
</license>
</licenses>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<dayon.mainClass>mpo.dayon.assisted.AssistedRunner</dayon.mainClass>
<jetbrains.annotations.version>19.0.0</jetbrains.annotations.version>
<bzip2.version>0.9.1</bzip2.version>
<grizzly-lzma.version>1.9.65</grizzly-lzma.version>
<junit.jupiter.version>5.7.1</junit.jupiter.version>
</properties>
<dependencies>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>${jetbrains.annotations.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.itadaki</groupId>
<artifactId>bzip2</artifactId>
<version>${bzip2.version}</version>
</dependency>
<dependency>
<groupId>com.sun.grizzly</groupId>
<artifactId>grizzly-lzma</artifactId>
<version>${grizzly-lzma.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>deb</id>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>clean-package</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>${basedir}/dist</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.aerse.maven</groupId>
<artifactId>deb-maven-plugin</artifactId>
<version>1.12</version>
<executions>
<execution>
<id>create-deb</id>
<phase>install</phase>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
<configuration>
<unixUserId>root</unixUserId>
<unixGroupId>staff</unixGroupId>
<installDir>/usr/bin/</installDir>
<osDependencies>
<default-jre>>=2:1.8-56</default-jre>
</osDependencies>
<javaServiceWrapper>false</javaServiceWrapper>
<generateVersion>false</generateVersion>
<fileSets>
<fileSet>
<source>${basedir}/dist/dayon.png</source>
<target>dayon.png</target>
</fileSet>
<fileSet>
<source>${basedir}/dist/dayon.jar</source>
<target>dayon.jar</target>
</fileSet>
<fileSet>
<source>${basedir}/dist/dayon.sh</source>
<target>dayon.sh</target>
</fileSet>
<fileSet>
<source>${basedir}/dist/dayon_assistant.sh</source>
<target>dayon_assistant.sh</target>
</fileSet>
<fileSet>
<source>${basedir}/dist/dayon_assisted.sh</source>
<target>dayon_assisted.sh</target>
</fileSet>
<fileSet>
<source>${basedir}/resources/deb/</source>
<target>deb</target>
</fileSet>
</fileSets>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>snap</id>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<build>
<finalName>dayon</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<mainClass>${dayon.mainClass}</mainClass>
</manifest>
<manifestEntries>
<Application-Name>Dayon!</Application-Name>
<Implementation-Version>${project.version}</Implementation-Version>
<Permissions>all-permissions</Permissions>
<Trusted-Library>true</Trusted-Library>
<Built-By>a computer</Built-By>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
<filters>
<filter>
<artifact>org.jetbrains:annotations</artifact>
<excludes>
<exclude>**</exclude>
</excludes>
</filter>
<filter>
<artifact>com.sun.grizzly:grizzly-lzma</artifact>
<excludes>
<exclude>META-INF/**</exclude>
</excludes>
</filter>
<filter>
<artifact>org.itadaki:bzip2</artifact>
<excludes>
<exclude>META-INF/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>sign</id>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<keystore>${basedir}/src/main/resources/trust/X509</keystore>
<alias>mykey</alias>
<storepass>spasspass</storepass>
<tsa>http://tsa.starfieldtech.com</tsa>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<includeEmptyDirs>true</includeEmptyDirs>
</configuration>
<executions>
<execution>
<id>copy-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target</outputDirectory>
<resources>
<resource>
<directory>${basedir}/resources</directory>
<include>dayon.png</include>
</resource>
<resource>
<directory>${basedir}/resources/snap</directory>
<include>*</include>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>chmod</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>chmod</executable>
<arguments>
<argument>+x</argument>
<argument>${basedir}/target/dayon.browser</argument>
<argument>${basedir}/target/dayon.launcher</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<finalName>dayon</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>clean-package</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>${basedir}/dist</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<mainClass>${dayon.mainClass}</mainClass>
</manifest>
<manifestEntries>
<Application-Name>Dayon!</Application-Name>
<Implementation-Version>${project.version}</Implementation-Version>
<Permissions>all-permissions</Permissions>
<Trusted-Library>true</Trusted-Library>
<Built-By>a computer</Built-By>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
<filters>
<filter>
<artifact>org.jetbrains:annotations</artifact>
<excludes>
<exclude>**</exclude>
</excludes>
</filter>
<filter>
<artifact>com.sun.grizzly:grizzly-lzma</artifact>
<excludes>
<exclude>META-INF/**</exclude>
</excludes>
</filter>
<filter>
<artifact>org.itadaki:bzip2</artifact>
<excludes>
<exclude>META-INF/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>sign</id>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<keystore>${basedir}/src/main/resources/trust/X509</keystore>
<alias>mykey</alias>
<storepass>spasspass</storepass>
<tsa>http://tsa.starfieldtech.com</tsa>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<includeEmptyDirs>true</includeEmptyDirs>
</configuration>
<executions>
<execution>
<id>copy-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/dist</outputDirectory>
<resources>
<resource>
<directory>resources</directory>
<include>**/*</include>
<excludes>
<exclude>deb/</exclude>
<exclude>snap/</exclude>
</excludes>
</resource>
<resource>
<directory>${basedir}/target</directory>
<include>dayon.jar</include>
</resource>
<resource>
<directory>${basedir}/docs</directory>
<include>favicon.ico</include>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>chmod</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>chmod</executable>
<arguments>
<argument>+x</argument>
<argument>${basedir}/dist/dayon</argument>
<argument>${basedir}/dist/dayon_assistant</argument>
<argument>${basedir}/dist/dayon_assisted</argument>
<argument>${basedir}/dist/dayon.sh</argument>
<argument>${basedir}/dist/dayon_assistant.sh</argument>
<argument>${basedir}/dist/dayon_assisted.sh</argument>
<argument>${basedir}/dist/setup.sh</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>