Skip to content

Commit 2f6db5c

Browse files
committed
configure shade plugin
1 parent 5cce350 commit 2f6db5c

File tree

1 file changed

+53
-30
lines changed

1 file changed

+53
-30
lines changed

pom.xml

Lines changed: 53 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,9 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
55
http://maven.apache.org/xsd/maven-4.0.0.xsd">
66
<modelVersion>4.0.0</modelVersion>
7-
<build>
8-
<plugins>
9-
<plugin>
10-
<groupId>org.apache.maven.plugins</groupId>
11-
<artifactId>maven-shade-plugin</artifactId>
12-
<version>3.4.1</version>
13-
<configuration>
14-
<artifactSet>
15-
<includes>
16-
<include>org.apache.xmlgraphics:batik-transcoder</include>
17-
<include>org.jetbrains:markdown</include>
18-
</includes>
19-
</artifactSet>
20-
<!-- put your configurations here -->
21-
</configuration>
22-
<executions>
23-
<execution>
24-
<phase>package</phase>
25-
<goals>
26-
<goal>shade</goal>
27-
</goals>
28-
</execution>
29-
</executions>
30-
</plugin>
31-
</plugins>
32-
</build>
337

348
<groupId>life.qbic</groupId>
35-
<artifactId>XMLEditor</artifactId>
9+
<artifactId>ome-xml-editor</artifactId>
3610
<version>1.0.0</version>
3711

3812
<name>XML Editor</name>
@@ -44,6 +18,21 @@
4418
<main-class>life.qbic.xmledit.XMLEditor</main-class>
4519
</properties>
4620

21+
<distributionManagement>
22+
<repository>
23+
<uniqueVersion>true</uniqueVersion>
24+
<id>nexus-releases</id>
25+
<name>QBiC Releases</name>
26+
<url>https://qbic-repo.qbic.uni-tuebingen.de/repository/maven-releases</url>
27+
</repository>
28+
<snapshotRepository>
29+
<uniqueVersion>false</uniqueVersion>
30+
<id>nexus-snapshots</id>
31+
<name>QBiC Snapshots</name>
32+
<url>https://qbic-repo.qbic.uni-tuebingen.de/repository/maven-snapshots</url>
33+
</snapshotRepository>
34+
</distributionManagement>
35+
4736
<dependencies>
4837
<!-- https://mvnrepository.com/artifact/net.imagej/imagej -->
4938
<dependency>
@@ -79,10 +68,7 @@
7968
<artifactId>markdown</artifactId>
8069
<version>0.1.46</version>
8170
</dependency>
82-
83-
8471
</dependencies>
85-
8672
<repositories>
8773
<!-- The order of definitions matters. Explicitly defining central here to make sure it has the highest priority. -->
8874
<!-- Main Maven repository -->
@@ -102,4 +88,41 @@
10288
<url>https://maven.scijava.org/content/groups/public</url>
10389
</repository>
10490
</repositories>
91+
<build>
92+
<pluginManagement>
93+
<plugins>
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-shade-plugin</artifactId>
97+
<version>3.4.1</version>
98+
</plugin>
99+
</plugins>
100+
</pluginManagement>
101+
<plugins>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-shade-plugin</artifactId>
105+
<configuration>
106+
<createDependencyReducedPom>false</createDependencyReducedPom>
107+
<artifactSet>
108+
<includes>
109+
<include>org.apache.xmlgraphics:batik-transcoder</include>
110+
<include>org.jetbrains:markdown</include>
111+
</includes>
112+
</artifactSet>
113+
<shadedArtifactAttached>true</shadedArtifactAttached>
114+
<shadedClassifierName>jar-with-dependencies</shadedClassifierName>
115+
<finalName>${project.artifactId}-${project.version}</finalName>
116+
</configuration>
117+
<executions>
118+
<execution>
119+
<phase>package</phase>
120+
<goals>
121+
<goal>shade</goal>
122+
</goals>
123+
</execution>
124+
</executions>
125+
</plugin>
126+
</plugins>
127+
</build>
105128
</project>

0 commit comments

Comments
 (0)