Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
Merge c9e73b6 into 7ecc8df
Browse files Browse the repository at this point in the history
  • Loading branch information
myui committed Dec 27, 2017
2 parents 7ecc8df + c9e73b6 commit 118be21
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 19 deletions.
14 changes: 14 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,21 @@
<Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
</manifestEntries>
</transformer>
<!--
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
<addHeader>false</addHeader>
</transformer>
-->
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/LICENSE.txt</exclude>
<exclude>META-INF/NOTICE.txt</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
Expand Down
7 changes: 7 additions & 0 deletions mixserv/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@
commons-logging invokes log4j through Java reflection. 'filers' clauses avoid
this issue as described in the URL below http://stackoverflow.com/questions/8817257/minimize-an-uber-jar-correctly-using-shade-plugin -->
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/LICENSE.txt</exclude>
<exclude>META-INF/NOTICE.txt</exclude>
</excludes>
</filter>
<filter>
<artifact>commons-logging:commons-logging</artifact>
<includes>
Expand Down
9 changes: 9 additions & 0 deletions nlp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/LICENSE.txt</exclude>
</excludes>
</filter>
<filter>
<artifact>org.apache.lucene:lucene-analyzers-kuromoji</artifact>
<includes>
Expand Down Expand Up @@ -217,6 +223,9 @@
<Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
</manifestEntries>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
<addHeader>false</addHeader>
</transformer>
</transformers>
</configuration>
</execution>
Expand Down
53 changes: 34 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,40 @@
</execution>
</executions>
</plugin>
<!-- Copy LICENSE/NOTICE/DISCLAIMER to jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/target/classes/META-INF</outputDirectory>
<resources>
<resource>
<directory>${main.basedir}/</directory>
<includes>
<include>LICENSE</include>
<include>NOTICE</include>
<include>DISCLAIMER</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

Expand Down Expand Up @@ -691,25 +725,6 @@
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<resourceBundles>
<!-- Will generate META-INF/DEPENDENCIES META-INF/LICENSE META-INF/NOTICE -->
<resourceBundle>org.apache.apache.resources:apache-jar-resource-bundle:1.5-SNAPSHOT</resourceBundle>
<!-- Will generate META-INF/DISCLAIMER -->
<resourceBundle>org.apache.apache.resources:apache-incubator-disclaimer-resource-bundle:1.2-SNAPSHOT</resourceBundle>
</resourceBundles>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
17 changes: 17 additions & 0 deletions xgboost/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@
<include>ml.dmlc:xgboost4j</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>tracker.py</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
<!-- hivemall-xgboost_xx-xx-with-dependencies.jar including minimum dependencies -->
Expand All @@ -194,6 +202,15 @@
<include>com.esotericsoftware.kryo:kryo</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>*.jar</exclude>
<exclude>tracker.py</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 118be21

Please sign in to comment.