jy2-uberjar-example
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.github.wmlynar</groupId>
<artifactId>jy2-uberjar-example</artifactId>
<version>0.0.39</version>
</dependency><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>
<parent>
<groupId>com.github.wmlynar</groupId>
<artifactId>jy2-parent</artifactId>
<version>0.0.39</version>
</parent>
<artifactId>jy2-uberjar-example</artifactId>
<dependencies>
<dependency>
<groupId>com.github.wmlynar</groupId>
<artifactId>jy2-di</artifactId>
<version>0.0.39</version>
</dependency>
<dependency>
<groupId>com.github.wmlynar</groupId>
<artifactId>jy2-uberjar-libs</artifactId>
<version>0.0.39</version>
</dependency>
<!-- dependencies of the launchfile -->
<dependency>
<groupId>com.github.wmlynar</groupId>
<artifactId>jy2-di-example</artifactId>
<version>0.0.39</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<programs>
<program>
<id>jyuberjarexample</id>
<mainClass>com.github.jy2.uberjar.example.Main</mainClass>
</program>
</programs>
<assembleDirectory>${jy2.assembler.directory}</assembleDirectory>
<repositoryLayout>${jy2.assembler.repository.layout}</repositoryLayout>
<useTimestampInSnapshotFileName>${jy2.assembler.use.timestamp}</useTimestampInSnapshotFileName>
<!-- <extraJvmArguments>-Xmx256m</extraJvmArguments> -->
</configuration>
<executions>
<execution>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<versionRange>1.5.0</versionRange>
<goals>
<goal>exec</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>uberjar</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<id>native-build</id>
<goals>
<goal>exec</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<executable>jylaunch</executable>
<arguments>
<arg>--generate-uberjar=com.github.wmlynar.uberjar.example.Main</arg>
<arg>../jy2-launch/jy2_di_example.launchjy</arg>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>graalvm</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<dependencies>
<!-- nativeimage -->
<dependency>
<groupId>javax.cache</groupId>
<artifactId>cache-api</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- nativeimage -->
<plugin>
<groupId>com.oracle.substratevm</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>19.0.2</version>
<executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<imageName>uberjar</imageName>
<buildArgs>
-H:-UseServiceLoaderFeature
--enable-url-protocols=https
--enable-all-security-services
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>