私はJavaプロジェクトからjarファイルを作成する必要があります。また、依存ファイルのクラスファイルをすべて含む必要はありません。私はまた、Mavenのシェードプラグインを試みたが、結果なしできた私は、すべてのファイルが含まれており、巨大なjarファイルを作成しますmaven-assembly-plugin
を使用しましたが、私は唯一のJava Mavenプロジェクトの依存関係を1つだけインポートします
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.10.45</version>
</dependency>
が必要:私は何とかすべての依存関係を含め終わりますかすべてを除いて
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclude>org.apache.spark:*</exclude>
<exclude>com.google.code.gson:*</exclude>
<exclude>edu.stanford.nlp:*</exclude>
<exclude>log4j:*</exclude>
<exclude>com.optimaize.languagedetector:*</exclude>
<exclude>info.debatty:*</exclude>
</excludes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
を構築するための
と使用のmaven-組立・プラグインあなたはその推移的な依存せずに特定の依存することをしたいですか?それとも? – Tunaki
@Tunakiとの依存関係 – Tomy