-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create profile for shaded jar, create rpm and bundle shaded jar there (…
…#505) * Create profile to make shaded jars, create workflow to make shaded jar and rpm for it * Indent rpm.pom.xml * Use root:root as user/group
- Loading branch information
1 parent
38bf894
commit 3d7c269
Showing
5 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
fuzzer/** | ||
output.log | ||
.project | ||
dependency-reduced-pom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<?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"> | ||
<packaging>rpm</packaging> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>pth_10</artifactId> | ||
<version>${revision}${sha1}${changelist}</version> | ||
<name>pth_10</name> | ||
<description>pth_10</description> | ||
<groupId>com.teragrep</groupId> | ||
<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> | ||
<java.version>1.8</java.version> | ||
<revision>0.0.1</revision> | ||
<changelist>-SNAPSHOT</changelist> | ||
<sha1/> | ||
</properties> | ||
<build> | ||
<directory>${project.basedir}/target</directory> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<configuration> | ||
<skipTests>true</skipTests> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>rpm-maven-plugin</artifactId> | ||
<version>2.2.0</version> | ||
<extensions>true</extensions> | ||
<executions> | ||
<execution> | ||
<id>default-rpm</id> | ||
<goals> | ||
<goal>rpm</goal> | ||
</goals> | ||
<phase>package</phase> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<summary>${project.groupId}-${project.artifactId}</summary> | ||
<name>${project.groupId}-${project.artifactId}</name> | ||
<version>${project.version}</version> | ||
<release>${env.BUILD_ID}</release> | ||
<license>Proprietary</license> | ||
<distribution>teragrep Log Management Suite</distribution> | ||
<vendor>https://teragrep.com/</vendor> | ||
<packager>teragrep <[email protected]></packager> | ||
<group>teragrep/LogManagementSuite</group> | ||
<needarch>false</needarch> | ||
<defaultUsername>root</defaultUsername> | ||
<defaultGroupname>root</defaultGroupname> | ||
<defaultFilemode>0644</defaultFilemode> | ||
<defaultDirmode>0755</defaultDirmode> | ||
<defineStatements> | ||
<defineStatement>_build_id_links none</defineStatement> | ||
<defineStatement>__provides_exclude ^osgi\\(.*$</defineStatement> | ||
<defineStatement>__requires_exclude ^osgi\\(.*$</defineStatement> | ||
</defineStatements> | ||
<mappings> | ||
<mapping> | ||
<directory>/opt/teragrep/${project.artifactId}/lib</directory> | ||
<directoryIncluded>true</directoryIncluded> | ||
<filemode>755</filemode> | ||
<dirmode>755</dirmode> | ||
<username>root</username> | ||
<groupname>root</groupname> | ||
<recurseDirectories>true</recurseDirectories> | ||
<sources> | ||
<source> | ||
<location>${project.basedir}/../target/pth_10.jar</location> | ||
<destination>pth_10-shaded.jar</destination> | ||
</source> | ||
</sources> | ||
</mapping> | ||
</mappings> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<version>2.8.2</version> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>default-compile</id> | ||
<phase>compile</phase> | ||
<goals> | ||
<goal>compile</goal> | ||
</goals> | ||
<configuration> | ||
<skipMain>true</skipMain> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |