-
-
jitpack.io -
https://jitpack.io -
-
-
com.github.core-lib -
xjar -
4.0.2 -
编写main方法,设置加密相关参数-
- public static void main(String[] args) throws Exception {
- XCryptos.encryption()
- .from("打包生成的jar位置--绝对路径")
- .use("123456")
- .include("/**/*.class")
- .include("/**/*.yml")
-
-
- .include("/**/*.xml")
- .to("加密之后jar包的位置--绝对路径");
- }

- 1 // 在jar包所在的目录打开命令界面,输入go build xjar.go 得到xjar.exe文件
- 2 go build xjar.go
xjar.exe java -jar 生成jar的名称
-
-
-
com.github.core-lib -
xjar -
4.0.1 -
-
-
-
-
-
com.github.core-lib -
xjar-maven-plugin -
4.0.1 -
-
-
-
build -
-
install -
-
-
-
-
-
- static/**
-
-
- templates/**
-
-
- resources/META-INF/**
-
-
- resources/i18n/**
-
-
- META-INF/resources/**
-
-
-
${project.artifactId}-encrypt.jar -
-
-
-
-
-
org.apache.maven.plugins -
maven-compiler-plugin -
3.1 -
-
${java.version} -
${java.version} -
${project.build.sourceEncoding} -
-
-
-
mvn clean install "-Dxjar.password=密码" "-Dmaven.test.skip=true"
