Commit a78d14fc authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

configure maven package

parent f91e8641
...@@ -3,4 +3,5 @@ ...@@ -3,4 +3,5 @@
service/target service/target
service/ctf-archifact.iml service/ctf-archifact.iml
service/src/main/resources/assets_build service/src/main/resources/assets_build
node_modules node_modules
\ No newline at end of file dependency-reduced-pom.xml
\ No newline at end of file
...@@ -18,6 +18,42 @@ ...@@ -18,6 +18,42 @@
<target>1.8</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.telephoners.krakyournet.ctf.CTFApplication</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
<!--todo: update versions!--> <!--todo: update versions!-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment