1 pom
<dependency>
<groupId>com.github.core-lib</groupId>
<artifactId>xjar</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.20</version>
</dependency>
<repositories>
<repository>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
2 通过main方法运行
import io.xjar.XCryptos;
public static void main(String[] args) throws Exception {
produce();
}
public static void produce() throws Exception {
XCryptos.encryption()
// 项目生成的jar
.from("D:\\projects\\test\\target\\test.jar")
// 加