Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| <?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> | |
| <parent> | |
| <groupId>com.github.jinahya</groupId> | |
| <artifactId>jinahya-parent</artifactId> | |
| <version>0.8.4</version> | |
| </parent> | |
| <artifactId>executable-jar-with-maven-example</artifactId> | |
| <version>0.8.9</version> | |
| <packaging>jar</packaging> | |
| <name>${project.artifactId}</name> | |
| <description>an example for generating executable jars with maven</description> | |
| <url>https://github.com/jinahya/${project.artifactId}</url> | |
| <scm> | |
| <connection>scm:git:git@github.com:jinahya/${project.artifactId}.git</connection> | |
| <developerConnection>scm:git:git@github.com:jinahya/${project.artifactId}.git</developerConnection> | |
| <url>https://github.com/jinahya/${project.artifactId}</url> | |
| <tag>0.8.9</tag> | |
| </scm> | |
| <issueManagement> | |
| <system>GitHub Issues</system> | |
| <url>https://github.com/jinahya/${project.artifactId}/issues</url> | |
| </issueManagement> | |
| <properties> | |
| <maven.compiler.source>1.8</maven.compiler.source> | |
| <maven.compiler.target>${maven.compiler.source}</maven.compiler.target> | |
| <maven.compiler.testSource>${maven.compiler.source}</maven.compiler.testSource> | |
| <maven.compiler.testTarget>${maven.compiler.testSource}</maven.compiler.testTarget> | |
| <mainClass>com.github.jinahya.example.Main</mainClass> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>com.google.guava</groupId> | |
| <artifactId>guava</artifactId> | |
| <version>29.0-jre</version> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.google.inject</groupId> | |
| <artifactId>guice</artifactId> | |
| <version>4.2.3</version> | |
| <scope>runtime</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <pluginManagement> | |
| <plugins> | |
| <plugin><!--groupId>org.dstovall</groupId--> | |
| <groupId>com.jolira</groupId> | |
| <artifactId>onejar-maven-plugin</artifactId> | |
| <version>1.4.4</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <version>3.0.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <version>3.3.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <version>3.1.2</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <version>3.2.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-shade-plugin</artifactId> | |
| <version>3.2.3</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>tidy-maven-plugin</artifactId> | |
| <version>1.1.0</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>versions-maven-plugin</artifactId> | |
| <version>2.7</version> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-maven-plugin</artifactId> | |
| <version>2.3.0.RELEASE</version> | |
| </plugin> | |
| </plugins> | |
| </pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <version>3.0.0-M3</version> | |
| <executions> | |
| <execution> | |
| <id>enforce-dependency-convergence</id> | |
| <goals> | |
| <goal>enforce</goal> | |
| </goals> | |
| <configuration> | |
| <skip>true</skip> | |
| <rules> | |
| <dependencyConvergence /> | |
| </rules> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>enforce-require-java-version-to-[1.8.0,)</id> | |
| <goals> | |
| <goal>enforce</goal> | |
| </goals> | |
| <configuration> | |
| <rules> | |
| <requireJavaVersion> | |
| <version>[1.8.0,)</version> | |
| </requireJavaVersion> | |
| </rules> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>enforce-require-maven-version-to-[3.3.9,)</id> | |
| <goals> | |
| <goal>enforce</goal> | |
| </goals> | |
| <configuration> | |
| <rules> | |
| <requireMavenVersion> | |
| <version>[3.3.9,)</version> | |
| </requireMavenVersion> | |
| </rules> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <profiles> | |
| <profile> | |
| <id>jar-with-dependencies</id> | |
| <activation> | |
| <activeByDefault>true</activeByDefault> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <configuration> | |
| <archive> | |
| <manifest> | |
| <mainClass>${mainClass}</mainClass> | |
| </manifest> | |
| </archive> | |
| <descriptorRefs> | |
| <descriptorRef>jar-with-dependencies</descriptorRef> | |
| </descriptorRefs> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>single</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>onejar</id> | |
| <activation> | |
| <activeByDefault>true</activeByDefault> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin><!--groupId>org.dstovall</groupId--> | |
| <groupId>com.jolira</groupId> | |
| <artifactId>onejar-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <configuration> | |
| <mainClass>${mainClass}</mainClass> | |
| <attachToBuild>true</attachToBuild> | |
| <!-- https://code.google.com/p/onejar-maven-plugin/issues/detail?id=8 --> | |
| <!--classifier>onejar</classifier--> | |
| <filename>${project.build.finalName}-onejar.${project.packaging}</filename> | |
| </configuration> | |
| <goals> | |
| <goal>one-jar</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>shade</id> | |
| <activation> | |
| <activeByDefault>true</activeByDefault> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-shade-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>shade</goal> | |
| </goals> | |
| <configuration> | |
| <shadedArtifactAttached>true</shadedArtifactAttached> | |
| <transformers> | |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | |
| <mainClass>${mainClass}</mainClass> | |
| </transformer> | |
| </transformers> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>spring-boot</id> | |
| <activation> | |
| <activeByDefault>true</activeByDefault> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>repackage</goal> | |
| </goals> | |
| <configuration> | |
| <classifier>spring-boot</classifier> | |
| <mainClass>${mainClass}</mainClass> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>manual</id> | |
| <activation> | |
| <activeByDefault>true</activeByDefault> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>copy-dependencies</goal> | |
| </goals> | |
| <phase>prepare-package</phase> | |
| <configuration> | |
| <includeScope>runtime</includeScope> | |
| <outputDirectory>${project.build.directory}/${project.build.finalName}-manual.lib | |
| </outputDirectory> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>manual-jar</id> | |
| <goals> | |
| <goal>jar</goal> | |
| </goals> | |
| <phase>prepare-package</phase> | |
| <configuration> | |
| <classifier>manual</classifier> | |
| <archive> | |
| <manifest> | |
| <addClasspath>true</addClasspath> | |
| <classpathPrefix>${project.build.finalName}-manual.lib/</classpathPrefix> | |
| <mainClass>${mainClass}</mainClass> | |
| </manifest> | |
| </archive> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>antrun-archive</id> | |
| <goals> | |
| <goal>run</goal> | |
| </goals> | |
| <phase>package</phase> | |
| <configuration> | |
| <target> | |
| <property name="final.name" value="${project.build.directory}/${project.build.finalName}" /> | |
| <property name="archive.includes" value="${project.build.finalName}-manual.${project.packaging} ${project.build.finalName}-manual.lib/*" /> | |
| <property name="tar.destfile" value="${final.name}-manual.tar" /> | |
| <zip basedir="${project.build.directory}" destfile="${final.name}-manual.zip" includes="${archive.includes}" /> | |
| <tar basedir="${project.build.directory}" destfile="${tar.destfile}" includes="${archive.includes}" /> | |
| <gzip src="${tar.destfile}" destfile="${tar.destfile}.gz" /> | |
| <bzip2 src="${tar.destfile}" destfile="${tar.destfile}.bz2" /> | |
| </target> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| </profiles> | |
| </project> |