Skip to content

Commit e71367b

Browse files
authored
Assembly plugin fix (eugenp#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
1 parent 365d9b7 commit e71367b

7 files changed

Lines changed: 22 additions & 9 deletions

File tree

.travis.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: java
22

3-
install: travis_wait 40 mvn -q clean install -Dgib.enabled=true
3+
install: travis_wait 60 mvn -q clean install
4+
5+
before_script:
6+
- echo "MAVEN_OPTS='-Xmx2048M -Xss128M -XX:MaxPermSize=2048M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:-UseGCOverheadLimit'" > ~/.mavenrc
47

58
jdk:
69
- oraclejdk8
@@ -14,10 +17,4 @@ cache:
1417
directories:
1518
- .autoconf
1619
- $HOME/.m2
17-
18-
sudo: required
19-
20-
env:
21-
global:
22-
JAVA_OPTS="-Xmx2048M -Xss128M -XX:MaxPermSize=2048M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"
23-
MAVEN_OPTS="-Xmx2048M -Xss128M -XX:MaxPermSize=2048M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"
20+

apache-poi/temp.xlsx

-18 Bytes
Binary file not shown.

core-java/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@
250250
<goal>single</goal>
251251
</goals>
252252
<configuration>
253+
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
253254
<archive>
254255
<manifest>
255256
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>

disruptor/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
<goal>single</goal>
146146
</goals>
147147
<configuration>
148+
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
148149
<archive>
149150
<manifest>
150151
<mainClass>org.baeldung.executable.ExecutableMavenJar</mainClass>

jpa-storedprocedure/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<plugin>
3131
<artifactId>maven-assembly-plugin</artifactId>
3232
<configuration>
33+
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
3334
<!--archive> <manifest> <mainClass>fully.qualified.MainClass</mainClass> </manifest> </archive -->
3435
<descriptorRefs>
3536
<descriptorRef>jar-with-dependencies</descriptorRef>

pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<gib.referenceBranch>refs/heads/master</gib.referenceBranch>
14-
<gib.enabled>false</gib.enabled>
14+
<!-- <gib.enabled>false</gib.enabled>-->
1515
</properties>
1616

1717
<modules>
@@ -211,6 +211,18 @@
211211
</modules>
212212

213213
<build>
214+
<plugins>
215+
<plugin>
216+
<groupId>org.codehaus.mojo</groupId>
217+
<artifactId>exec-maven-plugin</artifactId>
218+
<version>1.6.0</version>
219+
<configuration>
220+
<executable>maven</executable>
221+
222+
223+
</configuration>
224+
</plugin>
225+
</plugins>
214226
<extensions>
215227
<!--<extension>
216228
<groupId>com.vackosar.gitflowincrementalbuilder</groupId>

xml/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@
279279
is org.apache.maven.plugins ...which is assumed by default. -->
280280
<artifactId>maven-assembly-plugin</artifactId>
281281
<configuration>
282+
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
282283
<descriptorRefs>
283284
<descriptorRef>
284285
jar-with-dependencies

0 commit comments

Comments
 (0)