|
@@ -8,7 +8,9 @@
|
|
|
- [解密(启动)](#解密启动)
|
|
- [解密(启动)](#解密启动)
|
|
|
- [解密参数](#解密参数)
|
|
- [解密参数](#解密参数)
|
|
|
- [对class-winter本身进行加密](#对class-winter本身进行加密)
|
|
- [对class-winter本身进行加密](#对class-winter本身进行加密)
|
|
|
- - [巧用loader.path](#巧用loaderpath)
|
|
|
|
|
|
|
+ - [将已加密的包提供给客户使用](#将已加密的包提供给客户使用)
|
|
|
|
|
+ - [方案](#方案)
|
|
|
|
|
+ - [示例](#示例)
|
|
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
@@ -49,7 +51,7 @@
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>com.idea-aedi</groupId>
|
|
<groupId>com.idea-aedi</groupId>
|
|
|
<artifactId>class-winter-maven-plugin</artifactId>
|
|
<artifactId>class-winter-maven-plugin</artifactId>
|
|
|
- <version>2.7.3</version>
|
|
|
|
|
|
|
+ <version>2.7.4</version>
|
|
|
<!-- 相关配置 -->
|
|
<!-- 相关配置 -->
|
|
|
<configuration>
|
|
<configuration>
|
|
|
<!-- <finalName></finalName>-->
|
|
<!-- <finalName></finalName>-->
|
|
@@ -80,15 +82,15 @@
|
|
|
```
|
|
```
|
|
|
注:不必担心信息泄漏问题,使用此方式生成混淆的jar包时,会擦除pom.xml中关于class-winter-plugin的信息。
|
|
注:不必担心信息泄漏问题,使用此方式生成混淆的jar包时,会擦除pom.xml中关于class-winter-plugin的信息。
|
|
|
|
|
|
|
|
-- #### <font face="幼圆" ><font face="幼圆" color = "#86CA5E">**方式二**</font>:通过 [**class-winter-core.jar**](https://gitee.com/JustryDeng/class-winter/raw/master/class-winter-core/src/test/resources/class-winter-core-2.7.3.jar) 主动加密</font>
|
|
|
|
|
|
|
+- #### <font face="幼圆" ><font face="幼圆" color = "#86CA5E">**方式二**</font>:通过 [**class-winter-core.jar**](https://gitee.com/JustryDeng/class-winter/raw/master/class-winter-core/src/test/resources/class-winter-core-2.7.4.jar) 主动加密</font>
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
- java -jar class-winter-core-2.7.3.jar originJarOrWar=${要加密的项目.jar或.war包} includePrefix=${加密范围} [k3=v3 k4=v4 ...]
|
|
|
|
|
|
|
+ java -jar class-winter-core-2.7.4.jar originJarOrWar=${要加密的项目.jar或.war包} includePrefix=${加密范围} [k3=v3 k4=v4 ...]
|
|
|
# 对于复杂的参数值,可以使用引号引起来
|
|
# 对于复杂的参数值,可以使用引号引起来
|
|
|
# linux
|
|
# linux
|
|
|
- java -jar class-winter-core-2.7.3.jar k1='v1' k2='v2'
|
|
|
|
|
|
|
+ java -jar class-winter-core-2.7.4.jar k1='v1' k2='v2'
|
|
|
# windows
|
|
# windows
|
|
|
- java -jar class-winter-core-2.7.3.jar k1="v1" k2="v2"
|
|
|
|
|
|
|
+ java -jar class-winter-core-2.7.4.jar k1="v1" k2="v2"
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
## <font face="幼圆" color = "#3399EA" >加密参数</font>
|
|
## <font face="幼圆" color = "#3399EA" >加密参数</font>
|
|
@@ -273,8 +275,8 @@ linux示例:tips='请不要直接使用混淆后的jar/war'</td>
|
|
|
```bash
|
|
```bash
|
|
|
# 假设your-project-encrypted.jar是由class-winter加密后的包,那么你可以这么启动
|
|
# 假设your-project-encrypted.jar是由class-winter加密后的包,那么你可以这么启动
|
|
|
java -javaagent:/your-project-encrypted.jar -jar /your-project-encrypted.jar
|
|
java -javaagent:/your-project-encrypted.jar -jar /your-project-encrypted.jar
|
|
|
- # 也可以用class-winter-core-2.7.3.jar
|
|
|
|
|
- # java -javaagent:/class-winter-core-2.7.3.jar -jar /your-project-encrypted.jar
|
|
|
|
|
|
|
+ # 也可以用class-winter-core-2.7.4.jar
|
|
|
|
|
+ # java -javaagent:/class-winter-core-2.7.4.jar -jar /your-project-encrypted.jar
|
|
|
# 或者指定参数
|
|
# 或者指定参数
|
|
|
# java -javaagent:/your-project-encrypted.jar=debug=true,password=pwd12345 -jar /your-project-encrypted.jar
|
|
# java -javaagent:/your-project-encrypted.jar=debug=true,password=pwd12345 -jar /your-project-encrypted.jar
|
|
|
# 参数可以引起来(linux)
|
|
# 参数可以引起来(linux)
|
|
@@ -290,8 +292,8 @@ linux示例:tips='请不要直接使用混淆后的jar/war'</td>
|
|
|
编辑tomcat/bin/catalina.sh文件,在最上面加上
|
|
编辑tomcat/bin/catalina.sh文件,在最上面加上
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
- # 如果你有参数, 那么 -javaagent:/class-winter-core-2.7.3.jar=k1=v1,k2=v2
|
|
|
|
|
- CATALINA_OPTS="$CATALINA_OPTS -javaagent:/class-winter-core-2.7.3.jar=debug=true";
|
|
|
|
|
|
|
+ # 如果你有参数, 那么 -javaagent:/class-winter-core-2.7.4.jar=k1=v1,k2=v2
|
|
|
|
|
+ CATALINA_OPTS="$CATALINA_OPTS -javaagent:/class-winter-core-2.7.4.jar=debug=true";
|
|
|
export CATALINA_OPTS;
|
|
export CATALINA_OPTS;
|
|
|
```
|
|
```
|
|
|
|
|
|
|
@@ -300,8 +302,8 @@ linux示例:tips='请不要直接使用混淆后的jar/war'</td>
|
|
|
在tomcat/bin目录下创建setenv.sh文件,并写上
|
|
在tomcat/bin目录下创建setenv.sh文件,并写上
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
- # 如果你有参数, 那么 -javaagent:/class-winter-core-2.7.3.jar=k1=v1,k2=v2
|
|
|
|
|
- JAVA_OPTS="$JAVA_OPTS -javaagent:/class-winter-core-2.7.3.jar=debug=true";
|
|
|
|
|
|
|
+ # 如果你有参数, 那么 -javaagent:/class-winter-core-2.7.4.jar=k1=v1,k2=v2
|
|
|
|
|
+ JAVA_OPTS="$JAVA_OPTS -javaagent:/class-winter-core-2.7.4.jar=debug=true";
|
|
|
export JAVA_OPTS;
|
|
export JAVA_OPTS;
|
|
|
```
|
|
```
|
|
|
|
|
|
|
@@ -310,8 +312,8 @@ linux示例:tips='请不要直接使用混淆后的jar/war'</td>
|
|
|
编辑tomcat/bin/catalina.bat文件,在@echo off后加上catalina参数
|
|
编辑tomcat/bin/catalina.bat文件,在@echo off后加上catalina参数
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
- rem 如果你有参数, 那么 -javaagent:D:/class-winter-core-2.7.3.jar=k1=v1,k2=v2
|
|
|
|
|
- set CATALINA_OPTS="-javaagent:D:/class-winter-core-2.7.3.jar"
|
|
|
|
|
|
|
+ rem 如果你有参数, 那么 -javaagent:D:/class-winter-core-2.7.4.jar=k1=v1,k2=v2
|
|
|
|
|
+ set CATALINA_OPTS="-javaagent:D:/class-winter-core-2.7.4.jar"
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
- windows方式二
|
|
- windows方式二
|
|
@@ -319,8 +321,8 @@ linux示例:tips='请不要直接使用混淆后的jar/war'</td>
|
|
|
在tomcat/bin目录下创建setenv.bat文件,并写上
|
|
在tomcat/bin目录下创建setenv.bat文件,并写上
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
- rem 如果你有参数, 那么 -javaagent:D:/class-winter-core-2.7.3.jar=k1=v1,k2=v2
|
|
|
|
|
- set JAVA_OPTS="-javaagent:D:/class-winter-core-2.7.3.jar"
|
|
|
|
|
|
|
+ rem 如果你有参数, 那么 -javaagent:D:/class-winter-core-2.7.4.jar=k1=v1,k2=v2
|
|
|
|
|
+ set JAVA_OPTS="-javaagent:D:/class-winter-core-2.7.4.jar"
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
- #### <font face="幼圆" color = "#86CA5E" >IDE解密(启动)</font>
|
|
- #### <font face="幼圆" color = "#86CA5E" >IDE解密(启动)</font>
|
|
@@ -395,134 +397,141 @@ linux示例:tips='请不要直接使用混淆后的jar/war'</td>
|
|
|
- <font face="幼圆" color = "#F53B45">**声明**</font>:因为在`enhance-*`分支里对class-winter本身进行加密时用到了名义上的收费工具allatori(实际上有破解版之类的),所以`enhance-*`分支的代码,本人并未发布至maven官方仓库
|
|
- <font face="幼圆" color = "#F53B45">**声明**</font>:因为在`enhance-*`分支里对class-winter本身进行加密时用到了名义上的收费工具allatori(实际上有破解版之类的),所以`enhance-*`分支的代码,本人并未发布至maven官方仓库
|
|
|
|
|
|
|
|
|
|
|
|
|
-## <font face="幼圆" color = "#3399EA" >巧用loader.path</font>
|
|
|
|
|
-
|
|
|
|
|
-- 需求描述
|
|
|
|
|
-
|
|
|
|
|
- 已加密的包,如何提供给客户使用?
|
|
|
|
|
-
|
|
|
|
|
- - 方案一:class-winter加密时,使用`alreadyProtectedLibs`参数,但是要求客户的项目也需要使用class-winter加密(,哪怕客户的项目什么也不需要加密,也要求客户有使用class-winter这个动作)
|
|
|
|
|
- - 方案二:-Dloader.path与class-winter结合使用
|
|
|
|
|
-
|
|
|
|
|
-- -Dloader.path方案实现
|
|
|
|
|
-
|
|
|
|
|
- - 假设客户依赖了我们的加密包
|
|
|
|
|
-
|
|
|
|
|
- 
|
|
|
|
|
-
|
|
|
|
|
- - 客户使用maven插件,打包时将项目代码和依赖的lib分开
|
|
|
|
|
-
|
|
|
|
|
- 完整pom示例:
|
|
|
|
|
-
|
|
|
|
|
- ```xml
|
|
|
|
|
- <?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
- <modelVersion>4.0.0</modelVersion>
|
|
|
|
|
- <parent>
|
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
|
- <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
- <version>2.7.3</version>
|
|
|
|
|
- <relativePath/> <!-- lookup parent from repository -->
|
|
|
|
|
- </parent>
|
|
|
|
|
- <groupId>com.example</groupId>
|
|
|
|
|
- <artifactId>demo</artifactId>
|
|
|
|
|
- <version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
- <name>demo</name>
|
|
|
|
|
- <description>Demo project for Spring Boot</description>
|
|
|
|
|
- <properties>
|
|
|
|
|
- <java.version>1.8</java.version>
|
|
|
|
|
- </properties>
|
|
|
|
|
- <dependencies>
|
|
|
|
|
- <dependency>
|
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
|
- <artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
- </dependency>
|
|
|
|
|
-
|
|
|
|
|
- <dependency>
|
|
|
|
|
- <groupId>org.projectlombok</groupId>
|
|
|
|
|
- <artifactId>lombok</artifactId>
|
|
|
|
|
- <optional>true</optional>
|
|
|
|
|
- </dependency>
|
|
|
|
|
- <dependency>
|
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
|
- <artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
- <scope>test</scope>
|
|
|
|
|
- </dependency>
|
|
|
|
|
-
|
|
|
|
|
- <dependency>
|
|
|
|
|
- <groupId>com.demo</groupId>
|
|
|
|
|
- <artifactId>encrypted-lib-no-pwd</artifactId>
|
|
|
|
|
- <scope>system</scope>
|
|
|
|
|
- <version>1.0.0</version>
|
|
|
|
|
- <systemPath>${pom.basedir}/src/main/resources/lib/encrypted-lib-no-pwd-1.0.0.jar</systemPath>
|
|
|
|
|
- </dependency>
|
|
|
|
|
- </dependencies>
|
|
|
|
|
-
|
|
|
|
|
- <build>
|
|
|
|
|
- <plugins>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <!-- 指定该Main Class为全局的唯一入口 -->
|
|
|
|
|
- <mainClass>com.ideaaedi.demo.DemoApplication</mainClass>
|
|
|
|
|
- <!-- 把systemPath指定的jar包也纳入lib -->
|
|
|
|
|
- <includeSystemScope>true</includeSystemScope>
|
|
|
|
|
- <fork>true</fork>
|
|
|
|
|
- <!-- 设置为ZIP,此模式下spring-boot-maven-plugin会将MANIFEST.MF文件中的Main-Class设置为org.springframework.boot.loader.PropertiesLauncher -->
|
|
|
|
|
- <layout>ZIP</layout>
|
|
|
|
|
- <includes>
|
|
|
|
|
- <include>
|
|
|
|
|
- <groupId>nothing</groupId>
|
|
|
|
|
- <artifactId>nothing</artifactId>
|
|
|
|
|
- </include>
|
|
|
|
|
- </includes>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- <executions>
|
|
|
|
|
- <execution>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>repackage</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- </execution>
|
|
|
|
|
- </executions>
|
|
|
|
|
- </plugin>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 通过插件将所有依赖的lib包放到编译后的target/lib目录,并且在打包时候排除内部依赖 -->
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
- <version>3.2.0</version>
|
|
|
|
|
- <executions>
|
|
|
|
|
- <execution>
|
|
|
|
|
- <id>copy-dependencies</id>
|
|
|
|
|
- <phase>prepare-package</phase>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>copy-dependencies</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
|
|
- <overWriteReleases>false</overWriteReleases>
|
|
|
|
|
- <overWriteSnapshots>false</overWriteSnapshots>
|
|
|
|
|
- <overWriteIfNewer>true</overWriteIfNewer>
|
|
|
|
|
- <includeScope>compile</includeScope>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </execution>
|
|
|
|
|
- </executions>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- </plugins>
|
|
|
|
|
- </build>
|
|
|
|
|
-
|
|
|
|
|
- </project>
|
|
|
|
|
- ```
|
|
|
|
|
|
|
+## <font face="幼圆" color = "#3399EA" >将已加密的包提供给客户使用</font>
|
|
|
|
|
+
|
|
|
|
|
+### <font face="幼圆" color = "#86CA5E" >方案</font>
|
|
|
|
|
+
|
|
|
|
|
+- 方案一(适用于A依赖于encrypted-B.jar,启动A的情况)
|
|
|
|
|
+
|
|
|
|
|
+ class-winter加密时,使用`alreadyProtectedLibs`参数,但是要求客户的项目也需要使用class-winter加密(,哪怕客户的项目什么也不需要加密,也要求客户有使用class-winter这个动作)
|
|
|
|
|
+
|
|
|
|
|
+- 方案二(适用于encrypted-A依赖于encrypted-B.jar,启动A的情况
|
|
|
|
|
+
|
|
|
|
|
+ 利用`-Dloader.path`或其它方案,将encrypted-B.jar外置,并通过`decryptProjectPathPrefix`或`skipProjectPathPrefix`来定位encrypted-B.jar
|
|
|
|
|
+
|
|
|
|
|
+### <font face="幼圆" color = "#86CA5E" >示例</font>
|
|
|
|
|
+
|
|
|
|
|
+> 提示:这里以可执行的jar进行的示例,其余的外置方式也是可以的(如:tomcat部署war包解压后,lib包就相当于是外置的)
|
|
|
|
|
+
|
|
|
|
|
+以`-Dloader.path`实现,将encrypted-B.jar外置到项目包A外
|
|
|
|
|
+
|
|
|
|
|
+- 假设客户依赖了我们的加密包
|
|
|
|
|
+
|
|
|
|
|
+ 
|
|
|
|
|
+
|
|
|
|
|
+- 客户使用maven插件,打包时将项目代码和依赖的lib分开
|
|
|
|
|
+
|
|
|
|
|
+ 完整pom示例:
|
|
|
|
|
+
|
|
|
|
|
+ ```xml
|
|
|
|
|
+ <?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
|
|
+ <parent>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
+ <version>2.7.4</version>
|
|
|
|
|
+ <relativePath/> <!-- lookup parent from repository -->
|
|
|
|
|
+ </parent>
|
|
|
|
|
+ <groupId>com.example</groupId>
|
|
|
|
|
+ <artifactId>demo</artifactId>
|
|
|
|
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
|
|
|
+ <name>demo</name>
|
|
|
|
|
+ <description>Demo project for Spring Boot</description>
|
|
|
|
|
+ <properties>
|
|
|
|
|
+ <java.version>1.8</java.version>
|
|
|
|
|
+ </properties>
|
|
|
|
|
+ <dependencies>
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
|
|
+ <optional>true</optional>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
+ <scope>test</scope>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>com.demo</groupId>
|
|
|
|
|
+ <artifactId>encrypted-lib-no-pwd</artifactId>
|
|
|
|
|
+ <scope>system</scope>
|
|
|
|
|
+ <version>1.0.0</version>
|
|
|
|
|
+ <systemPath>${pom.basedir}/src/main/resources/lib/encrypted-lib-no-pwd-1.0.0.jar</systemPath>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ </dependencies>
|
|
|
|
|
+
|
|
|
|
|
+ <build>
|
|
|
|
|
+ <plugins>
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <!-- 指定该Main Class为全局的唯一入口 -->
|
|
|
|
|
+ <mainClass>com.ideaaedi.demo.DemoApplication</mainClass>
|
|
|
|
|
+ <!-- 把systemPath指定的jar包也纳入lib -->
|
|
|
|
|
+ <includeSystemScope>true</includeSystemScope>
|
|
|
|
|
+ <fork>true</fork>
|
|
|
|
|
+ <!-- 设置为ZIP,此模式下spring-boot-maven-plugin会将MANIFEST.MF文件中的Main-Class设置为org.springframework.boot.loader.PropertiesLauncher -->
|
|
|
|
|
+ <layout>ZIP</layout>
|
|
|
|
|
+ <includes>
|
|
|
|
|
+ <include>
|
|
|
|
|
+ <groupId>nothing</groupId>
|
|
|
|
|
+ <artifactId>nothing</artifactId>
|
|
|
|
|
+ </include>
|
|
|
|
|
+ </includes>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>repackage</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 通过插件将所有依赖的lib包放到编译后的target/lib目录,并且在打包时候排除内部依赖 -->
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
+ <version>3.2.0</version>
|
|
|
|
|
+ <executions>
|
|
|
|
|
+ <execution>
|
|
|
|
|
+ <id>copy-dependencies</id>
|
|
|
|
|
+ <phase>prepare-package</phase>
|
|
|
|
|
+ <goals>
|
|
|
|
|
+ <goal>copy-dependencies</goal>
|
|
|
|
|
+ </goals>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
|
|
+ <overWriteReleases>false</overWriteReleases>
|
|
|
|
|
+ <overWriteSnapshots>false</overWriteSnapshots>
|
|
|
|
|
+ <overWriteIfNewer>true</overWriteIfNewer>
|
|
|
|
|
+ <includeScope>compile</includeScope>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </execution>
|
|
|
|
|
+ </executions>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ </plugins>
|
|
|
|
|
+ </build>
|
|
|
|
|
+
|
|
|
|
|
+ </project>
|
|
|
|
|
+ ```
|
|
|
|
|
|
|
|
- 打出来的包:
|
|
|
|
|
|
|
+ 打出来的包:
|
|
|
|
|
|
|
|
- 
|
|
|
|
|
|
|
+ 
|
|
|
|
|
|
|
|
- - 客户可以这样启动项目
|
|
|
|
|
|
|
+- 客户可以这样启动项目
|
|
|
|
|
|
|
|
- > `java -Dloader.path=./lib/ -javaagent:./{class-winter.jar} -jar {客户项目.jar}`
|
|
|
|
|
|
|
+ > `java -Dloader.path=./lib/ -javaagent:./{class-winter.jar} -jar {客户项目.jar}`
|
|
|
|
|
|
|
|
- 
|
|
|
|
|
|
|
+ 
|
|
|
|
|
|