File tree Expand file tree Collapse file tree 1 file changed +41
-14
lines changed
Expand file tree Collapse file tree 1 file changed +41
-14
lines changed Original file line number Diff line number Diff line change 258258 </execution >
259259 </executions >
260260 </plugin >
261-
262- <!-- This creates a runnable JAR that can be used from the command line. -->
263261 <plugin >
264262 <groupId >org.apache.maven.plugins</groupId >
265- <artifactId >maven-assembly-plugin</artifactId >
263+ <artifactId >maven-shade-plugin</artifactId >
264+ <version >3.2.4</version >
266265 <executions >
267266 <execution >
268267 <phase >package</phase >
269268 <goals >
270- <goal >single </goal >
269+ <goal >shade </goal >
271270 </goals >
272271 <configuration >
273- <archive >
274- <manifest >
275- <mainClass >
276- de.fraunhofer.iem.swan.Main
277- </mainClass >
278- </manifest >
279- </archive >
280- <descriptorRefs >
281- <descriptorRef >jar-with-dependencies</descriptorRef >
282- </descriptorRefs >
272+ <transformers >
273+ <!-- adding Main-Class to manifest file -->
274+ <transformer
275+ implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
276+ <mainClass >de.fraunhofer.iem.swan.Main</mainClass >
277+ </transformer >
278+ </transformers >
279+ <minimizeJar >true</minimizeJar >
280+ <filters >
281+ <filter >
282+ <artifact >*:*</artifact >
283+ <excludes >
284+ <exclude >META-INF/*.SF</exclude >
285+ <exclude >META-INF/*.DSA</exclude >
286+ <exclude >META-INF/*.RSA</exclude >
287+ </excludes >
288+ </filter >
289+ <filter >
290+ <artifact >edu.stanford.nlp:stanford-corenlp:models-english</artifact >
291+ <excludes >
292+ <exclude >edu/stanford/nlp/models/srparser/**</exclude >
293+ <exclude >edu/stanford/nlp/models/ner/**</exclude >
294+ <exclude >edu/stanford/nlp/models/sentiment/**</exclude >
295+ </excludes >
296+ </filter >
297+ <filter >
298+ <artifact >org.bytedeco</artifact >
299+ <excludes >
300+ <exclude >**</exclude >
301+ </excludes >
302+ </filter >
303+ <!-- filter>
304+ <artifact>org.nd4j</artifact>
305+ <excludes>
306+ <exclude>**</exclude>
307+ </excludes>
308+ </filter-->
309+ </filters >
283310 </configuration >
284311 </execution >
285312 </executions >
You can’t perform that action at this time.
0 commit comments