Assembly plugin fix (#1449)
* Assembly plugin fix * Fix java opts * Fix java opts 2 * Fix java opts 3 * Add sudo: required * Remove sudo: required * Enable incremental builder * Disable incremental builder * Update * Update
This commit is contained in:
parent
365d9b7023
commit
e71367b3f3
11
.travis.yml
11
.travis.yml
|
@ -1,6 +1,9 @@
|
||||||
language: java
|
language: java
|
||||||
|
|
||||||
install: travis_wait 40 mvn -q clean install -Dgib.enabled=true
|
install: travis_wait 60 mvn -q clean install
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- echo "MAVEN_OPTS='-Xmx2048M -Xss128M -XX:MaxPermSize=2048M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:-UseGCOverheadLimit'" > ~/.mavenrc
|
||||||
|
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk8
|
- oraclejdk8
|
||||||
|
@ -15,9 +18,3 @@ cache:
|
||||||
- .autoconf
|
- .autoconf
|
||||||
- $HOME/.m2
|
- $HOME/.m2
|
||||||
|
|
||||||
sudo: required
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
JAVA_OPTS="-Xmx2048M -Xss128M -XX:MaxPermSize=2048M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"
|
|
||||||
MAVEN_OPTS="-Xmx2048M -Xss128M -XX:MaxPermSize=2048M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"
|
|
||||||
|
|
Binary file not shown.
|
@ -250,6 +250,7 @@
|
||||||
<goal>single</goal>
|
<goal>single</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
|
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
|
||||||
|
|
|
@ -145,6 +145,7 @@
|
||||||
<goal>single</goal>
|
<goal>single</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
|
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
|
||||||
<!--archive> <manifest> <mainClass>fully.qualified.MainClass</mainClass> </manifest> </archive -->
|
<!--archive> <manifest> <mainClass>fully.qualified.MainClass</mainClass> </manifest> </archive -->
|
||||||
<descriptorRefs>
|
<descriptorRefs>
|
||||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||||
|
|
14
pom.xml
14
pom.xml
|
@ -11,7 +11,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<gib.referenceBranch>refs/heads/master</gib.referenceBranch>
|
<gib.referenceBranch>refs/heads/master</gib.referenceBranch>
|
||||||
<gib.enabled>false</gib.enabled>
|
<!-- <gib.enabled>false</gib.enabled>-->
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@ -211,6 +211,18 @@
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>1.6.0</version>
|
||||||
|
<configuration>
|
||||||
|
<executable>maven</executable>
|
||||||
|
|
||||||
|
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
<extensions>
|
<extensions>
|
||||||
<!--<extension>
|
<!--<extension>
|
||||||
<groupId>com.vackosar.gitflowincrementalbuilder</groupId>
|
<groupId>com.vackosar.gitflowincrementalbuilder</groupId>
|
||||||
|
|
|
@ -279,6 +279,7 @@
|
||||||
is org.apache.maven.plugins ...which is assumed by default. -->
|
is org.apache.maven.plugins ...which is assumed by default. -->
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
|
||||||
<descriptorRefs>
|
<descriptorRefs>
|
||||||
<descriptorRef>
|
<descriptorRef>
|
||||||
jar-with-dependencies
|
jar-with-dependencies
|
||||||
|
|
Loading…
Reference in New Issue