aott-desktop-client-bundle
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.github.tornaia</groupId>
<artifactId>aott-desktop-client-bundle</artifactId>
<version>1.0.339</version>
</dependency><?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>
<artifactId>aott-desktop-client-bundle</artifactId>
<version>1.0.339</version>
<packaging>pom</packaging>
<name>AOTT Desktop Client Bundle</name>
<description>AOTT Desktop Client Bundle</description>
<parent>
<groupId>com.github.tornaia</groupId>
<artifactId>aott-parent</artifactId>
<version>1.0.339</version>
</parent>
<properties>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
<copy-rename-maven-plugin.version>1.0.1</copy-rename-maven-plugin.version>
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
<build-helper-maven-plugin.version>3.0.0</build-helper-maven-plugin.version>
<!-- The app's name -->
<desktop.client.name>Activity Offline Time Tracker</desktop.client.name>
<!-- The app's entry point -->
<desktop.client.mainClass>com.github.tornaia.aott.desktop.client.bootstrap.Main</desktop.client.mainClass>
<!-- The app and bootstrap will be assembled in this folder -->
<desktop.client.libraryDir>${project.build.directory}/app</desktop.client.libraryDir>
<!-- The Application vendor used by javapackager -->
<desktop.client.vendor>Andras Tornai</desktop.client.vendor>
<!-- The Application copyright used by javapackager on Windows -->
<desktop.client.copyright>Copyright (c) 2017-2018 ${desktop.client.vendor}</desktop.client.copyright>
<!-- Native installers will be built in this folder -->
<desktop.client.installerdir>${project.build.directory}/installer</desktop.client.installerdir>
</properties>
<dependencies>
<dependency>
<groupId>com.github.tornaia</groupId>
<artifactId>aott-desktop-client-bootstrap</artifactId>
<version>1.0.339</version>
</dependency>
<dependency>
<groupId>com.github.tornaia</groupId>
<artifactId>aott-desktop-client-core</artifactId>
<version>1.0.339</version>
<classifier>shaded</classifier>
</dependency>
</dependencies>
<profiles>
<profile>
<id>windows_profile</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<desktop.client.javapackager.native.type>installer</desktop.client.javapackager.native.type>
<desktop.client.icon>${project.basedir}/package/windows/icon.ico</desktop.client.icon>
<desktop.client.installer.extension>exe</desktop.client.installer.extension>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/package/windows</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
<directory>templates</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${desktop.client.libraryDir}</outputDirectory>
<stripVersion>true</stripVersion>
<excludeTransitive>true</excludeTransitive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<version>${copy-rename-maven-plugin.version}</version>
<executions>
<execution>
<id>Rename fat jar</id>
<phase>package</phase>
<goals>
<goal>rename</goal>
</goals>
<configuration>
<sourceFile>${desktop.client.libraryDir}/aott-desktop-client-core-shaded.jar</sourceFile>
<destinationFile>${desktop.client.libraryDir}/aott-desktop-client-core-${semver}-shaded.jar</destinationFile>
</configuration>
</execution>
<execution>
<id>Copy license</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${project.parent.basedir}/LICENSE.txt</sourceFile>
<destinationFile>${desktop.client.libraryDir}/LICENSE.txt</destinationFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
<executions>
<execution>
<id>Create native installer</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>javapackager</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>-deploy</argument>
<argument>-native</argument>
<argument>${desktop.client.javapackager.native.type}</argument>
<argument>-outdir</argument>
<argument>${desktop.client.installerdir}</argument>
<argument>-srcdir</argument>
<argument>${desktop.client.libraryDir}</argument>
<argument>-appclass</argument>
<argument>com.github.tornaia.aott.desktop.client.bootstrap.Main</argument>
<argument>-name</argument>
<argument>${desktop.client.name}</argument>
<argument>-title</argument>
<argument>${desktop.client.name}</argument>
<argument>-vendor</argument>
<argument>${desktop.client.vendor}</argument>
<argument>-Bidentifier=com.github.tornaia.aott.desktop.client</argument>
<argument>-BappVersion=${project.parent.version}</argument>
<argument>-Bicon=${desktop.client.icon}</argument>
<argument>-Bcopyright=${desktop.client.copyright}</argument>
<argument>-BdropinResourcesRoot=${project.basedir}</argument>
<argument>-BlicenseFile=LICENSE.txt</argument>
<argument>-BjvmOptions=-XX:-UsePerfData</argument>
<argument>-BjvmOptions=-XX:MinHeapFreeRatio=5</argument>
<argument>-BjvmOptions=-XX:MaxHeapFreeRatio=15</argument>
<argument>-BjvmProperties=java.net.preferIPv4Stack=true</argument>
<argument>-BjvmProperties=file.encoding=UTF-8</argument>
<argument>-BjvmProperties=javax.accessibility.assistive_technologies=com.github.tornaia.aott.desktop.client.bootstrap.jvm.NoopAccessibilityProvider</argument>
<argument>-BjvmProperties=java.awt.headless=false</argument>
<argument>-verbose</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${desktop.client.installerdir}/${desktop.client.name}-${project.version}.${desktop.client.installer.extension}</file>
<type>exe</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>