commit f57271cdf809b549ec3a691c493e3a62cfb99088
parent 39ef3491a30881f7142d60df048db1aba9037bbe
Author: Kebigon <git@kebigon.xyz>
Date: Wed, 2 Jan 2019 12:01:18 +0900
Working on packaging
Diffstat:
3 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
@@ -75,6 +75,14 @@
</descriptors>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <useSystemClassLoader>false</useSystemClassLoader>
+ </configuration>
+ </plugin>
</plugins>
</build>
diff --git a/src/assembly/assembly.xml b/src/assembly/assembly.xml
@@ -30,7 +30,16 @@
</fileSets>
<dependencySets>
<dependencySet>
+ <outputDirectory>ext</outputDirectory>
+ <excludes>
+ <exclude>fr.lrgn:yuzurss</exclude>
+ </excludes>
+ </dependencySet>
+ <dependencySet>
<outputDirectory>lib</outputDirectory>
+ <includes>
+ <include>fr.lrgn:yuzurss</include>
+ </includes>
</dependencySet>
</dependencySets>
</assembly>
\ No newline at end of file
diff --git a/src/main/external-resources/yuzurss.sh b/src/main/external-resources/yuzurss.sh
@@ -15,9 +15,9 @@ else
ERROR="-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../var/log/$SERVICE_NAME-$(date +%Y%m%d-%H%M%S).hprof -XX:ErrorFile=../var/log/$SERVICE_NAME-$(date +%Y%m%d-%H%M%S)-error.log"
GC="-XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:GCPauseIntervalMillis=500 -XX:+DisableExplicitGC"
- GC_LOGS="-Xlog:gc*=trace:file=../var/log/$SERVICE_NAME-$(date +%Y%m%d-%H%M%S)-gc.log:tags,time,uptime,level"
+ GC_LOGS="-XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:../var/log/$SERVICE_NAME-$(date +%Y%m%d-%H%M%S)-gc.log"
- CLASSPATH="-cp ../cfg:../lib/*"
+ CLASSPATH="-cp ../cfg:../ext/*:../lib/*"
screen -dmS $SERVICE_NAME java -server $HEAP $ERROR $GC $GC_LOGS $CLASSPATH $SERVICE_MAIN