소스 검색

add full jar mode

tags/v1.4.49
Jonathan Cobb 3 년 전
부모
커밋
69f2d81476
2개의 변경된 파일79개의 추가작업 그리고 2개의 파일을 삭제
  1. +78
    -1
      bubble-server/pom.xml
  2. +1
    -1
      utils/cobbzilla-utils

+ 78
- 1
bubble-server/pom.xml 파일 보기

@@ -450,7 +450,7 @@

<!-- JNA: only keep the linux-x86-64 stuff -->
<exclude>com/sun/jna/win32*/**</exclude>
<exclude>com/sun/jna/platform/mac/**</exclude>
<!--<exclude>com/sun/jna/platform/mac/**</exclude> comment this out to run a production build in a mac dev environment -->
<exclude>com/sun/jna/platform/win32/**</exclude>
<exclude>com/sun/jna/platform/wince/**</exclude>
<exclude>com/sun/jna/openbsd-x86*/**</exclude>
@@ -644,6 +644,83 @@ The exclusions below were generated with:
</build>

</profile>

<profile>
<!-- same as production but virtually no excludes -->
<id>production-full</id>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>

<plugins>
<!-- Building the executable uberjar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals><goal>shade</goal></goals>
<configuration>
<outputFile>${project.basedir}/target/bubble-server-1.0.0-SNAPSHOT-full.jar</outputFile>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>bubble.server.BubbleServer</mainClass>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.handlers</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.schemas</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>

<!-- Exclude signed jars to avoid errors, see: http://stackoverflow.com/a/6743609/1251543 -->
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/maven/**</exclude>
<exclude>changelog.txt</exclude> <!-- lombok changelog, really. it's in the top 100 largest files. -->
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>

<!-- copy scripts and web ui into jar -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${project.basedir}/../bin/prep_bubble_jar</executable>
</configuration>
</execution>
</executions>
</plugin>

</plugins>

</build>

</profile>
</profiles>

</project>

+ 1
- 1
utils/cobbzilla-utils

@@ -1 +1 @@
Subproject commit a6db63d80b37214272e4a3c0f062f5ff7cff1478
Subproject commit e8914281714dd6d2ec2caee9dadc5fc500e16a26

불러오는 중...
취소
저장