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:
Grzegorz Piwowarek 2017-03-19 20:03:23 +01:00 committed by GitHub
parent 365d9b7023
commit e71367b3f3
7 changed files with 22 additions and 9 deletions

View File

@ -1,6 +1,9 @@
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:
- oraclejdk8
@ -15,9 +18,3 @@ cache:
- .autoconf
- $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.

View File

@ -250,6 +250,7 @@
<goal>single</goal>
</goals>
<configuration>
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
<archive>
<manifest>
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>

View File

@ -145,6 +145,7 @@
<goal>single</goal>
</goals>
<configuration>
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
<archive>
<manifest>
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>

View File

@ -30,6 +30,7 @@
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
<!--archive> <manifest> <mainClass>fully.qualified.MainClass</mainClass> </manifest> </archive -->
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>

14
pom.xml
View File

@ -11,7 +11,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gib.referenceBranch>refs/heads/master</gib.referenceBranch>
<gib.enabled>false</gib.enabled>
<!-- <gib.enabled>false</gib.enabled>-->
</properties>
<modules>
@ -211,6 +211,18 @@
</modules>
<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>
<!--<extension>
<groupId>com.vackosar.gitflowincrementalbuilder</groupId>

View File

@ -279,6 +279,7 @@
is org.apache.maven.plugins ...which is assumed by default. -->
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
<descriptorRefs>
<descriptorRef>
jar-with-dependencies