Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25cd9c520c | ||
|
|
a3bf49c0fc | ||
|
|
0d6efc7a0c | ||
|
|
b25ea3ff6c | ||
|
|
7fac46f308 | ||
|
|
25e3b27c34 | ||
|
|
42b16f70b9 | ||
|
|
a9d92dd9a3 | ||
|
|
1380c846f5 |
@@ -38,6 +38,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-boot-base-core</artifactId>
|
<artifactId>jeecg-boot-base-core</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-boot-base-core</artifactId>
|
<artifactId>jeecg-boot-base-core</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-boot-base-core</artifactId>
|
<artifactId>jeecg-boot-base-core</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- feign -->
|
<!-- feign -->
|
||||||
|
|||||||
@@ -13,18 +13,22 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-consultation-api</artifactId>
|
<artifactId>health-consultation-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-emergency-api</artifactId>
|
<artifactId>health-emergency-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-im-api</artifactId>
|
<artifactId>health-im-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-cloud-api</artifactId>
|
<artifactId>jeecg-system-cloud-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -50,4 +54,21 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>biz-obf</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.wvengen</groupId>
|
||||||
|
<artifactId>proguard-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions, MethodParameters
|
||||||
|
-keep @org.springframework.stereotype.Service class *
|
||||||
|
-keep @org.springframework.web.bind.annotation.RestController class *
|
||||||
|
-keep @org.springframework.context.annotation.Configuration class * { *; }
|
||||||
|
-keep @org.springframework.stereotype.Component class *
|
||||||
|
-keep class lombok.** { *; }
|
||||||
|
-keepclassmembers enum * { # 保留枚举结构
|
||||||
|
public static **[] values();
|
||||||
|
public static ** valueOf(java.lang.String);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * implements java.io.Serializable { *; }
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@org.springframework.web.bind.annotation.*Mapping *;
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@lombok.Getter *;
|
||||||
|
@lombok.Setter *;
|
||||||
|
}
|
||||||
|
# MyBatis 专用保留规则
|
||||||
|
-keep interface com.renkang.**.mapper.** { *; }
|
||||||
|
-keep class com.renkang.**.entity.** { *; }
|
||||||
|
-keep class com.renkang.**.bean.** { *; }
|
||||||
|
-keep class com.renkang.**.model.** { *; }
|
||||||
|
-keep class com.renkang.**.vo.** { *; }
|
||||||
|
-keepparameternames
|
||||||
|
|
||||||
|
# 关闭优化和压缩(避免框架兼容性问题)
|
||||||
|
-dontshrink # 不删除未使用代码
|
||||||
|
-dontoptimize # 不优化字节码[5,6](@ref)
|
||||||
|
-keepdirectories
|
||||||
|
-dontusemixedcaseclassnames
|
||||||
|
-adaptclassstrings
|
||||||
|
# 混淆选项
|
||||||
|
-useuniqueclassmembernames # 成员名称唯一化
|
||||||
|
-ignorewarnings
|
||||||
+2
-2
@@ -4,11 +4,11 @@ import com.renkang.consultation.api.storge.redis.ConHealthInfoRedisTunnel;
|
|||||||
import com.renkang.consultation.entity.ConHealthInfo;
|
import com.renkang.consultation.entity.ConHealthInfo;
|
||||||
import com.renkang.consultation.mapper.ConHealthInfoMapper;
|
import com.renkang.consultation.mapper.ConHealthInfoMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Repository
|
@Component
|
||||||
public class ComposeConHealthInfo {
|
public class ComposeConHealthInfo {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -5,9 +5,9 @@ import com.renkang.consultation.entity.ConKnowledge;
|
|||||||
import com.renkang.consultation.mapper.ConKnowledgeMapper;
|
import com.renkang.consultation.mapper.ConKnowledgeMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@Repository
|
@Component
|
||||||
public class ComposeConKnowledge {
|
public class ComposeConKnowledge {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -4,11 +4,11 @@ import com.renkang.consultation.api.storge.db.ConKnowledgeCategoryDbTunnel;
|
|||||||
import com.renkang.consultation.api.storge.redis.ConKnowledgeCategoryRedisTunnel;
|
import com.renkang.consultation.api.storge.redis.ConKnowledgeCategoryRedisTunnel;
|
||||||
import com.renkang.consultation.entity.ConKnowledgeCategory;
|
import com.renkang.consultation.entity.ConKnowledgeCategory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Repository
|
@Component
|
||||||
public class ComposeConKnowledgeCategory {
|
public class ComposeConKnowledgeCategory {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
+2
-2
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||||||
import com.renkang.consultation.entity.ConKnowledgeCategory;
|
import com.renkang.consultation.entity.ConKnowledgeCategory;
|
||||||
import com.renkang.consultation.mapper.ConKnowledgeCategoryMapper;
|
import com.renkang.consultation.mapper.ConKnowledgeCategoryMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Repository
|
@Component
|
||||||
public class ConKnowledgeCategoryDbTunnel {
|
public class ConKnowledgeCategoryDbTunnel {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -5,9 +5,9 @@ import com.renkang.consultation.entity.ConDoctorFollow;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
import org.springframework.data.redis.core.ZSetOperations;
|
import org.springframework.data.redis.core.ZSetOperations;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@Repository
|
@Component
|
||||||
public class ConDoctorFollowReidsTunnel {
|
public class ConDoctorFollowReidsTunnel {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
+2
-2
@@ -4,11 +4,11 @@ import com.renkang.consultation.api.RedisConstants;
|
|||||||
import com.renkang.consultation.entity.ConHealthInfo;
|
import com.renkang.consultation.entity.ConHealthInfo;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Repository
|
@Component
|
||||||
public class ConHealthInfoRedisTunnel {
|
public class ConHealthInfoRedisTunnel {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
+2
-2
@@ -5,9 +5,9 @@ import com.renkang.consultation.entity.ConHospitalFollow;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
import org.springframework.data.redis.core.ZSetOperations;
|
import org.springframework.data.redis.core.ZSetOperations;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@Repository
|
@Component
|
||||||
public class ConHospitalFollowReidsTunnel {
|
public class ConHospitalFollowReidsTunnel {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|||||||
+2
-2
@@ -4,11 +4,11 @@ import com.renkang.consultation.api.RedisConstants;
|
|||||||
import com.renkang.consultation.entity.ConKnowledgeCategory;
|
import com.renkang.consultation.entity.ConKnowledgeCategory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Repository
|
@Component
|
||||||
public class ConKnowledgeCategoryRedisTunnel {
|
public class ConKnowledgeCategoryRedisTunnel {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
FROM anapsix/alpine-java:8_server-jre_unlimited
|
FROM anapsix/alpine-java:8_server-jre_unlimited
|
||||||
|
|
||||||
MAINTAINER xxx@163.com
|
ENV PROFILE_NAME=dev \
|
||||||
|
SERVER_PORT=7010 \
|
||||||
|
NACOS_SERVER_ADDR=nacos250:8848 \
|
||||||
ENV PROFILE_NAME dev
|
NACOS_USERNAME=xjuser \
|
||||||
ENV SERVER_PORT 7010
|
NACOS_PASSWORD=Aa135790!123 \
|
||||||
ENV NACOS_SERVER_ADDR nacos250:8848
|
NACOS_NAMESPACE=3af98a54-4a44-4576-8e28-bf5781c0dccf \
|
||||||
ENV NACOS_USERNAME xjuser
|
NACOS_GROUP=dev
|
||||||
ENV NACOS_PASSWORD Aa135790!123
|
|
||||||
ENV NACOS_NAMESPACE 3af98a54-4a44-4576-8e28-bf5781c0dccf
|
|
||||||
ENV NACOS_GROUP dev
|
|
||||||
|
|
||||||
|
|
||||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
@@ -20,6 +17,6 @@ WORKDIR /health-consultation-start
|
|||||||
|
|
||||||
EXPOSE 7010
|
EXPOSE 7010
|
||||||
|
|
||||||
ADD ./target/health-consultation-start.jar ./
|
COPY ./target/health-consultation-start-xj.jar ./
|
||||||
|
|
||||||
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar health-consultation-start.jar
|
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar health-consultation-start-xj.jar
|
||||||
@@ -9,6 +9,11 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>health-consultation-start</artifactId>
|
<artifactId>health-consultation-start</artifactId>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.install.skip>true</maven.install.skip>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!--微服务启动 starter-->
|
<!--微服务启动 starter-->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -24,6 +29,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-consultation-biz</artifactId>
|
<artifactId>health-consultation-biz</artifactId>
|
||||||
|
<classifier>${biz-classifier}</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -13,10 +13,6 @@
|
|||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.install.skip>true</maven.install.skip>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<!--项目子模块-->
|
<!--项目子模块-->
|
||||||
<modules>
|
<modules>
|
||||||
<module>health-consultation-api</module>
|
<module>health-consultation-api</module>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-boot-base-core</artifactId>
|
<artifactId>jeecg-boot-base-core</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- feign -->
|
<!-- feign -->
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>health-emergency-biz</artifactId>
|
<artifactId>health-emergency-biz</artifactId>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!--定时任务-->
|
<!--定时任务-->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -18,15 +19,18 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-emergency-api</artifactId>
|
<artifactId>health-emergency-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-cloud-api</artifactId>
|
<artifactId>jeecg-system-cloud-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-im-api</artifactId>
|
<artifactId>health-im-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
@@ -47,4 +51,21 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>biz-obf</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.wvengen</groupId>
|
||||||
|
<artifactId>proguard-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions, MethodParameters
|
||||||
|
-keep @org.springframework.stereotype.Service class *
|
||||||
|
-keep @org.springframework.web.bind.annotation.RestController class *
|
||||||
|
-keep @org.springframework.context.annotation.Configuration class * { *; }
|
||||||
|
-keep @org.springframework.stereotype.Component class *
|
||||||
|
-keep class lombok.** { *; }
|
||||||
|
-keepclassmembers enum * { # 保留枚举结构
|
||||||
|
public static **[] values();
|
||||||
|
public static ** valueOf(java.lang.String);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * implements java.io.Serializable { *; }
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@org.springframework.web.bind.annotation.*Mapping *;
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@lombok.Getter *;
|
||||||
|
@lombok.Setter *;
|
||||||
|
}
|
||||||
|
# MyBatis 专用保留规则
|
||||||
|
-keep interface com.renkang.**.mapper.** { *; }
|
||||||
|
-keep class com.renkang.**.entity.** { *; }
|
||||||
|
-keep class com.renkang.**.bean.** { *; }
|
||||||
|
-keep class com.renkang.**.model.** { *; }
|
||||||
|
-keep class com.renkang.**.vo.** { *; }
|
||||||
|
-keepparameternames
|
||||||
|
|
||||||
|
# 关闭优化和压缩(避免框架兼容性问题)
|
||||||
|
-dontshrink # 不删除未使用代码
|
||||||
|
-dontoptimize # 不优化字节码[5,6](@ref)
|
||||||
|
-keepdirectories
|
||||||
|
-dontusemixedcaseclassnames
|
||||||
|
-adaptclassstrings
|
||||||
|
# 混淆选项
|
||||||
|
-useuniqueclassmembernames # 成员名称唯一化
|
||||||
|
-ignorewarnings
|
||||||
@@ -1,15 +1,12 @@
|
|||||||
FROM anapsix/alpine-java:8_server-jre_unlimited
|
FROM anapsix/alpine-java:8_server-jre_unlimited
|
||||||
|
|
||||||
MAINTAINER xxx@163.com
|
ENV PROFILE_NAME=dev \
|
||||||
|
SERVER_PORT=7011 \
|
||||||
|
NACOS_SERVER_ADDR=nacos250:8848 \
|
||||||
ENV PROFILE_NAME dev
|
NACOS_USERNAME=xjuser \
|
||||||
ENV SERVER_PORT 7011
|
NACOS_PASSWORD=Aa135790!123 \
|
||||||
ENV NACOS_SERVER_ADDR nacos250:8848
|
NACOS_NAMESPACE=3af98a54-4a44-4576-8e28-bf5781c0dccf \
|
||||||
ENV NACOS_USERNAME xjuser
|
NACOS_GROUP=dev
|
||||||
ENV NACOS_PASSWORD Aa135790!123
|
|
||||||
ENV NACOS_NAMESPACE 3af98a54-4a44-4576-8e28-bf5781c0dccf
|
|
||||||
ENV NACOS_GROUP dev
|
|
||||||
|
|
||||||
|
|
||||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
@@ -20,6 +17,6 @@ WORKDIR /health-emergency-start
|
|||||||
|
|
||||||
EXPOSE 7011
|
EXPOSE 7011
|
||||||
|
|
||||||
ADD ./target/health-emergency-start.jar ./
|
COPY ./target/health-emergency-start-xj.jar ./
|
||||||
|
|
||||||
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar health-emergency-start.jar
|
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar health-emergency-start-xj.jar
|
||||||
@@ -9,6 +9,11 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>health-emergency-start</artifactId>
|
<artifactId>health-emergency-start</artifactId>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.install.skip>true</maven.install.skip>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!--微服务启动 starter-->
|
<!--微服务启动 starter-->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -20,6 +25,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-emergency-biz</artifactId>
|
<artifactId>health-emergency-biz</artifactId>
|
||||||
|
<classifier>${biz-classifier}</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -13,10 +13,6 @@
|
|||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.install.skip>true</maven.install.skip>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<!--项目子模块-->
|
<!--项目子模块-->
|
||||||
<modules>
|
<modules>
|
||||||
<module>health-emergency-api</module>
|
<module>health-emergency-api</module>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-boot-base-core</artifactId>
|
<artifactId>jeecg-boot-base-core</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -9,14 +9,17 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>health-im-biz</artifactId>
|
<artifactId>health-im-biz</artifactId>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-im-api</artifactId>
|
<artifactId>health-im-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-cloud-api</artifactId>
|
<artifactId>jeecg-system-cloud-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--腾讯云即时对话pom-->
|
<!--腾讯云即时对话pom-->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -35,6 +38,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-consultation-api</artifactId>
|
<artifactId>health-consultation-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
@@ -54,4 +58,21 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>biz-obf</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.wvengen</groupId>
|
||||||
|
<artifactId>proguard-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions, MethodParameters
|
||||||
|
-keep @org.springframework.stereotype.Service class *
|
||||||
|
-keep @org.springframework.web.bind.annotation.RestController class *
|
||||||
|
-keep @org.springframework.context.annotation.Configuration class * { *; }
|
||||||
|
-keep @org.springframework.stereotype.Component class *
|
||||||
|
-keep class lombok.** { *; }
|
||||||
|
-keepclassmembers enum * { # 保留枚举结构
|
||||||
|
public static **[] values();
|
||||||
|
public static ** valueOf(java.lang.String);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * implements java.io.Serializable { *; }
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@org.springframework.web.bind.annotation.*Mapping *;
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@lombok.Getter *;
|
||||||
|
@lombok.Setter *;
|
||||||
|
}
|
||||||
|
# MyBatis 专用保留规则
|
||||||
|
-keep interface com.renkang.**.mapper.** { *; }
|
||||||
|
-keep class com.renkang.**.entity.** { *; }
|
||||||
|
-keep class com.renkang.**.bean.** { *; }
|
||||||
|
-keep class com.renkang.**.model.** { *; }
|
||||||
|
-keep class com.renkang.**.vo.** { *; }
|
||||||
|
-keepparameternames
|
||||||
|
|
||||||
|
# 关闭优化和压缩(避免框架兼容性问题)
|
||||||
|
-dontshrink # 不删除未使用代码
|
||||||
|
-dontoptimize # 不优化字节码[5,6](@ref)
|
||||||
|
-keepdirectories
|
||||||
|
-dontusemixedcaseclassnames
|
||||||
|
-adaptclassstrings
|
||||||
|
# 混淆选项
|
||||||
|
-useuniqueclassmembernames # 成员名称唯一化
|
||||||
|
-ignorewarnings
|
||||||
@@ -1,15 +1,12 @@
|
|||||||
FROM anapsix/alpine-java:8_server-jre_unlimited
|
FROM anapsix/alpine-java:8_server-jre_unlimited
|
||||||
|
|
||||||
MAINTAINER xxx@163.com
|
ENV PROFILE_NAME=dev \
|
||||||
|
SERVER_PORT=7012 \
|
||||||
|
NACOS_SERVER_ADDR=nacos250:8848 \
|
||||||
ENV PROFILE_NAME dev
|
NACOS_USERNAME=xjuser \
|
||||||
ENV SERVER_PORT 7012
|
NACOS_PASSWORD=Aa135790!123 \
|
||||||
ENV NACOS_SERVER_ADDR nacos250:8848
|
NACOS_NAMESPACE=3af98a54-4a44-4576-8e28-bf5781c0dccf \
|
||||||
ENV NACOS_USERNAME xjuser
|
NACOS_GROUP=dev
|
||||||
ENV NACOS_PASSWORD Aa135790!123
|
|
||||||
ENV NACOS_NAMESPACE 3af98a54-4a44-4576-8e28-bf5781c0dccf
|
|
||||||
ENV NACOS_GROUP dev
|
|
||||||
|
|
||||||
|
|
||||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
@@ -20,6 +17,6 @@ WORKDIR /health-im-start
|
|||||||
|
|
||||||
EXPOSE 7012
|
EXPOSE 7012
|
||||||
|
|
||||||
ADD ./target/health-im-start.jar ./
|
COPY ./target/health-im-start-xj.jar ./
|
||||||
|
|
||||||
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar health-im-start.jar
|
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar health-im-start-xj.jar
|
||||||
@@ -9,6 +9,11 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>health-im-start</artifactId>
|
<artifactId>health-im-start</artifactId>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.install.skip>true</maven.install.skip>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!--微服务启动 starter-->
|
<!--微服务启动 starter-->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -20,6 +25,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-im-biz</artifactId>
|
<artifactId>health-im-biz</artifactId>
|
||||||
|
<classifier>${biz-classifier}</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -13,10 +13,6 @@
|
|||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.install.skip>true</maven.install.skip>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<!--项目子模块-->
|
<!--项目子模块-->
|
||||||
<modules>
|
<modules>
|
||||||
<module>health-im-api</module>
|
<module>health-im-api</module>
|
||||||
|
|||||||
@@ -24,11 +24,19 @@
|
|||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-consultation-api</artifactId>
|
<artifactId>health-consultation-api</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-consultation-biz</artifactId>
|
<artifactId>health-consultation-biz</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.renkang</groupId>
|
||||||
|
<artifactId>health-consultation-biz</artifactId>
|
||||||
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>obf</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- emergency 应急模块-->
|
<!-- emergency 应急模块-->
|
||||||
@@ -36,11 +44,19 @@
|
|||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-emergency-api</artifactId>
|
<artifactId>health-emergency-api</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-emergency-biz</artifactId>
|
<artifactId>health-emergency-biz</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.renkang</groupId>
|
||||||
|
<artifactId>health-emergency-biz</artifactId>
|
||||||
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>obf</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- IM IM通信模块-->
|
<!-- IM IM通信模块-->
|
||||||
@@ -48,11 +64,19 @@
|
|||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-im-api</artifactId>
|
<artifactId>health-im-api</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-im-biz</artifactId>
|
<artifactId>health-im-biz</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.renkang</groupId>
|
||||||
|
<artifactId>health-im-biz</artifactId>
|
||||||
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>obf</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- watch 手表模块-->
|
<!-- watch 手表模块-->
|
||||||
@@ -60,23 +84,33 @@
|
|||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-watch-api</artifactId>
|
<artifactId>health-watch-api</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-watch-biz</artifactId>
|
<artifactId>health-watch-biz</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.renkang</groupId>
|
||||||
|
<artifactId>health-watch-biz</artifactId>
|
||||||
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>obf</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- modules 组件-->
|
<!-- modules 组件-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>data-center-api</artifactId>
|
<artifactId>data-center-api</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>font-resources</artifactId>
|
<artifactId>font-resources</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- starter -->
|
<!-- starter -->
|
||||||
@@ -84,16 +118,19 @@
|
|||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>renkang-starter-batch</artifactId>
|
<artifactId>renkang-starter-batch</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>renkang-starter-aspose-word</artifactId>
|
<artifactId>renkang-starter-aspose-word</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>renkang-test</artifactId>
|
<artifactId>renkang-test</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-boot-base-core</artifactId>
|
<artifactId>jeecg-boot-base-core</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba</groupId>
|
<groupId>com.alibaba</groupId>
|
||||||
|
|||||||
@@ -10,26 +10,32 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>health-watch-biz</artifactId>
|
<artifactId>health-watch-biz</artifactId>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-watch-api</artifactId>
|
<artifactId>health-watch-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-emergency-api</artifactId>
|
<artifactId>health-emergency-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-cloud-api</artifactId>
|
<artifactId>jeecg-system-cloud-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>renkang-starter-batch</artifactId>
|
<artifactId>renkang-starter-batch</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>data-center-api</artifactId>
|
<artifactId>data-center-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -39,6 +45,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>renkang-starter-aspose-word</artifactId>
|
<artifactId>renkang-starter-aspose-word</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba</groupId>
|
<groupId>com.alibaba</groupId>
|
||||||
@@ -55,6 +62,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>font-resources</artifactId>
|
<artifactId>font-resources</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
@@ -74,5 +82,21 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>biz-obf</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.wvengen</groupId>
|
||||||
|
<artifactId>proguard-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions, MethodParameters
|
||||||
|
-keep @org.springframework.stereotype.Service class *
|
||||||
|
-keep @org.springframework.web.bind.annotation.RestController class *
|
||||||
|
-keep @org.springframework.context.annotation.Configuration class * { *; }
|
||||||
|
-keep @org.springframework.stereotype.Component class *
|
||||||
|
-keep class lombok.** { *; }
|
||||||
|
-keepclassmembers enum * { # 保留枚举结构
|
||||||
|
public static **[] values();
|
||||||
|
public static ** valueOf(java.lang.String);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * implements java.io.Serializable { *; }
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@org.springframework.web.bind.annotation.*Mapping *;
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@lombok.Getter *;
|
||||||
|
@lombok.Setter *;
|
||||||
|
}
|
||||||
|
# MyBatis 专用保留规则
|
||||||
|
-keep interface com.renkang.**.mapper.** { *; }
|
||||||
|
-keep class com.renkang.**.mapper.provider** { *; }
|
||||||
|
-keep class com.renkang.**.entity.** { *; }
|
||||||
|
-keep class com.renkang.**.bean.** { *; }
|
||||||
|
-keep class com.renkang.**.model.** { *; }
|
||||||
|
-keep class com.renkang.**.vo.** { *; }
|
||||||
|
-keep class com.renkang.**.task.**
|
||||||
|
-keep class com.renkang.**.task.**Constants { *; }
|
||||||
|
-keepparameternames
|
||||||
|
|
||||||
|
# 关闭优化和压缩(避免框架兼容性问题)
|
||||||
|
-dontshrink # 不删除未使用代码
|
||||||
|
-dontoptimize # 不优化字节码[5,6](@ref)
|
||||||
|
-keepdirectories
|
||||||
|
-dontusemixedcaseclassnames
|
||||||
|
-adaptclassstrings
|
||||||
|
# 混淆选项
|
||||||
|
-useuniqueclassmembernames # 成员名称唯一化
|
||||||
|
-ignorewarnings
|
||||||
@@ -1,15 +1,12 @@
|
|||||||
FROM anapsix/alpine-java:8_server-jre_unlimited
|
FROM anapsix/alpine-java:8_server-jre_unlimited
|
||||||
|
|
||||||
MAINTAINER xxx@163.com
|
ENV PROFILE_NAME=dev \
|
||||||
|
SERVER_PORT=7098 \
|
||||||
|
NACOS_SERVER_ADDR=nacos250:8848 \
|
||||||
ENV PROFILE_NAME dev
|
NACOS_USERNAME=xjuser \
|
||||||
ENV SERVER_PORT 7098
|
NACOS_PASSWORD=Aa135790!123 \
|
||||||
ENV NACOS_SERVER_ADDR nacos250:8848
|
NACOS_NAMESPACE=3af98a54-4a44-4576-8e28-bf5781c0dccf \
|
||||||
ENV NACOS_USERNAME xjuser
|
NACOS_GROUP=dev
|
||||||
ENV NACOS_PASSWORD Aa135790!123
|
|
||||||
ENV NACOS_NAMESPACE 3af98a54-4a44-4576-8e28-bf5781c0dccf
|
|
||||||
ENV NACOS_GROUP dev
|
|
||||||
|
|
||||||
|
|
||||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
@@ -20,6 +17,6 @@ WORKDIR /health-watch-start
|
|||||||
|
|
||||||
EXPOSE 7098
|
EXPOSE 7098
|
||||||
|
|
||||||
ADD ./target/health-watch-start.jar ./
|
COPY ./target/health-watch-start-xj.jar ./
|
||||||
|
|
||||||
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar health-watch-start.jar
|
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar health-watch-start-xj.jar
|
||||||
@@ -11,6 +11,10 @@
|
|||||||
|
|
||||||
<artifactId>health-watch-start</artifactId>
|
<artifactId>health-watch-start</artifactId>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.install.skip>true</maven.install.skip>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!--微服务启动 starter-->
|
<!--微服务启动 starter-->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -22,11 +26,13 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-watch-biz</artifactId>
|
<artifactId>health-watch-biz</artifactId>
|
||||||
|
<classifier>${biz-classifier}</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>renkang-test</artifactId>
|
<artifactId>renkang-test</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,4 @@
|
|||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.install.skip>true</maven.install.skip>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import org.jeecg.modules.exports.entity.CommonExportsInfo;
|
|||||||
import org.jeecg.modules.imports.entity.CommonImports;
|
import org.jeecg.modules.imports.entity.CommonImports;
|
||||||
import org.jeecg.modules.imports.entity.CommonImportsDetail;
|
import org.jeecg.modules.imports.entity.CommonImportsDetail;
|
||||||
import org.jeecg.modules.imports.entity.CommonImportsInfo;
|
import org.jeecg.modules.imports.entity.CommonImportsInfo;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -11,6 +12,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* @author Jiang Shunzhi
|
* @author Jiang Shunzhi
|
||||||
*/
|
*/
|
||||||
|
@Component
|
||||||
public class ImportExportApiFallback implements ImportExportApi {
|
public class ImportExportApiFallback implements ImportExportApi {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-cloud-api</artifactId>
|
<artifactId>jeecg-system-cloud-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-boot-base-core</artifactId>
|
<artifactId>jeecg-boot-base-core</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -20,10 +20,12 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-consultation-api</artifactId>
|
<artifactId>health-consultation-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-local-api</artifactId>
|
<artifactId>jeecg-system-local-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hibernate</groupId>
|
<groupId>org.hibernate</groupId>
|
||||||
@@ -79,8 +81,25 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.renkang</groupId>
|
<groupId>com.renkang</groupId>
|
||||||
<artifactId>health-watch-api</artifactId>
|
<artifactId>health-watch-api</artifactId>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>biz-obf</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.wvengen</groupId>
|
||||||
|
<artifactId>proguard-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
-keepattributes *Annotation*, Signature, InnerClasses, EnclosingMethod, Exceptions, MethodParameters
|
||||||
|
-keep @org.springframework.stereotype.Service class *
|
||||||
|
-keep @org.springframework.web.bind.annotation.RestController class *
|
||||||
|
-keep @org.springframework.context.annotation.Configuration class * { *; }
|
||||||
|
-keep @org.springframework.stereotype.Component class *
|
||||||
|
-keep class lombok.** { *; }
|
||||||
|
-keepclassmembers enum * { # 保留枚举结构
|
||||||
|
public static **[] values();
|
||||||
|
public static ** valueOf(java.lang.String);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * implements java.io.Serializable { *; }
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@org.springframework.web.bind.annotation.*Mapping *;
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
private static synthetic java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
|
||||||
|
}
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@lombok.Getter *;
|
||||||
|
@lombok.Setter *;
|
||||||
|
}
|
||||||
|
# MyBatis 专用保留规则
|
||||||
|
-keep interface org.jeecg.**.mapper.** { *; }
|
||||||
|
-keep class org.jeecg.**.entity.** { *; }
|
||||||
|
-keep class org.jeecg.**.bean.** { *; }
|
||||||
|
-keep class org.jeecg.**.model.** { *; }
|
||||||
|
-keep class org.jeecg.**.vo.** { *; }
|
||||||
|
-keepparameternames
|
||||||
|
|
||||||
|
# 关闭优化和压缩(避免框架兼容性问题)
|
||||||
|
-dontshrink # 不删除未使用代码
|
||||||
|
-dontoptimize # 不优化字节码[5,6](@ref)
|
||||||
|
-keepdirectories
|
||||||
|
-dontusemixedcaseclassnames
|
||||||
|
-adaptclassstrings
|
||||||
|
# 混淆选项
|
||||||
|
-useuniqueclassmembernames # 成员名称唯一化
|
||||||
|
-ignorewarnings
|
||||||
+7
-5
@@ -30,12 +30,14 @@ public class WxConfig {
|
|||||||
configImpl.setSecret(config.getSecret());
|
configImpl.setSecret(config.getSecret());
|
||||||
configMap.put(miniAppName, configImpl);
|
configMap.put(miniAppName, configImpl);
|
||||||
});
|
});
|
||||||
String defaultAppName = miniAppProperties.getDefaultAppName();
|
|
||||||
if (StrUtil.isBlank(defaultAppName) || !configMap.containsKey(defaultAppName)) {
|
|
||||||
defaultAppName = configMap.keySet().iterator().next();
|
|
||||||
}
|
|
||||||
WxMaService wxMaService = new WxMaServiceImpl();
|
WxMaService wxMaService = new WxMaServiceImpl();
|
||||||
wxMaService.setMultiConfigs(configMap, defaultAppName);
|
if (!configMap.isEmpty()) {
|
||||||
|
String defaultAppName = miniAppProperties.getDefaultAppName();
|
||||||
|
if (StrUtil.isBlank(defaultAppName) || !configMap.containsKey(defaultAppName)) {
|
||||||
|
defaultAppName = configMap.keySet().iterator().next();
|
||||||
|
}
|
||||||
|
wxMaService.setMultiConfigs(configMap, defaultAppName);
|
||||||
|
}
|
||||||
return wxMaService;
|
return wxMaService;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
FROM anapsix/alpine-java:8_server-jre_unlimited
|
FROM anapsix/alpine-java:8_server-jre_unlimited
|
||||||
|
|
||||||
MAINTAINER xxx@163.com
|
ENV PROFILE_NAME=dev \
|
||||||
|
SERVER_PORT=7001 \
|
||||||
|
NACOS_SERVER_ADDR=nacos250:8848 \
|
||||||
ENV PROFILE_NAME dev
|
NACOS_USERNAME=xjuser \
|
||||||
ENV SERVER_PORT 7001
|
NACOS_PASSWORD=Aa135790!123 \
|
||||||
ENV NACOS_SERVER_ADDR nacos250:8848
|
NACOS_NAMESPACE=3af98a54-4a44-4576-8e28-bf5781c0dccf \
|
||||||
ENV NACOS_USERNAME xjuser
|
NACOS_GROUP=dev
|
||||||
ENV NACOS_PASSWORD Aa135790!123
|
|
||||||
ENV NACOS_NAMESPACE 3af98a54-4a44-4576-8e28-bf5781c0dccf
|
|
||||||
ENV NACOS_GROUP dev
|
|
||||||
|
|
||||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
|
|
||||||
@@ -19,6 +16,6 @@ WORKDIR /jeecg-system-start
|
|||||||
|
|
||||||
EXPOSE 7001
|
EXPOSE 7001
|
||||||
|
|
||||||
ADD ./target/jeecg-system-start.jar ./
|
COPY ./target/jeecg-system-start-xj.jar ./
|
||||||
|
|
||||||
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-system-start.jar
|
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-system-start-xj.jar
|
||||||
@@ -11,6 +11,10 @@
|
|||||||
<artifactId>jeecg-system-start</artifactId>
|
<artifactId>jeecg-system-start</artifactId>
|
||||||
<description>System项目微服务启动</description>
|
<description>System项目微服务启动</description>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.install.skip>false</maven.install.skip>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- 引入jeecg-boot-starter-cloud依赖 -->
|
<!-- 引入jeecg-boot-starter-cloud依赖 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -21,6 +25,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-biz</artifactId>
|
<artifactId>jeecg-system-biz</artifactId>
|
||||||
|
<classifier>${biz-classifier}</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -12,10 +12,6 @@
|
|||||||
<artifactId>jeecg-system</artifactId>
|
<artifactId>jeecg-system</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.install.skip>true</maven.install.skip>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>jeecg-system-api</module>
|
<module>jeecg-system-api</module>
|
||||||
<module>jeecg-system-biz</module>
|
<module>jeecg-system-biz</module>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
<biz-classifier>xj</biz-classifier>
|
||||||
<!-- 基础配置 -->
|
<!-- 基础配置 -->
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<maven.compiler.source>8</maven.compiler.source>
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
@@ -257,6 +258,13 @@
|
|||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-biz</artifactId>
|
<artifactId>jeecg-system-biz</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
|
<artifactId>jeecg-system-biz</artifactId>
|
||||||
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>obf</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- jeecg tools -->
|
<!-- jeecg tools -->
|
||||||
@@ -270,18 +278,21 @@
|
|||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-boot-base-core</artifactId>
|
<artifactId>jeecg-boot-base-core</artifactId>
|
||||||
<version>${jeecgboot-renkang.version}</version>
|
<version>${jeecgboot-renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- system 单体 api -->
|
<!-- system 单体 api -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-local-api</artifactId>
|
<artifactId>jeecg-system-local-api</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- system 微服务 api -->
|
<!-- system 微服务 api -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jeecgframework.boot</groupId>
|
<groupId>org.jeecgframework.boot</groupId>
|
||||||
<artifactId>jeecg-system-cloud-api</artifactId>
|
<artifactId>jeecg-system-cloud-api</artifactId>
|
||||||
<version>${renkang.version}</version>
|
<version>${renkang.version}</version>
|
||||||
|
<classifier>xj</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--微服务启动依赖-->
|
<!--微服务启动依赖-->
|
||||||
@@ -646,6 +657,13 @@
|
|||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<classifier>xj</classifier> <!-- 设置classifier -->
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<!-- 指定JDK编译版本 -->
|
<!-- 指定JDK编译版本 -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@@ -728,12 +746,90 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<!--设置为true,以便把本地的system的jar也包括进来-->
|
<!--设置为true,以便把本地的system的jar也包括进来-->
|
||||||
<includeSystemScope>true</includeSystemScope>
|
<includeSystemScope>true</includeSystemScope>
|
||||||
|
<!-- 可选:为可执行包设置新 classifier -->
|
||||||
|
<classifier>xj</classifier>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>biz-obf</id>
|
||||||
|
<properties>
|
||||||
|
<biz-classifier>obf</biz-classifier>
|
||||||
|
</properties>
|
||||||
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.wvengen</groupId>
|
||||||
|
<artifactId>proguard-maven-plugin</artifactId>
|
||||||
|
<version>2.7.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase> <!-- 在打包阶段执行混淆 -->
|
||||||
|
<goals>
|
||||||
|
<goal>proguard</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<putLibraryJarsInTempDir>true</putLibraryJarsInTempDir>
|
||||||
|
<injar>${project.build.finalName}-xj.jar</injar>
|
||||||
|
<outjar>${project.build.finalName}-obf.jar</outjar> <!-- 输出混淆后JAR -->
|
||||||
|
<obfuscate>true</obfuscate>
|
||||||
|
<libs>
|
||||||
|
<lib>${java.home}/lib/rt.jar</lib> <!-- JDK 核心库 -->
|
||||||
|
</libs>
|
||||||
|
<proguardInclude>proguard.cfg</proguardInclude> <!-- 模块独立规则 -->
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
<version>3.6.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-obf-jar</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>attach-artifact</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifacts>
|
||||||
|
<artifact>
|
||||||
|
<file>${project.build.directory}/${project.build.finalName}-obf.jar
|
||||||
|
</file>
|
||||||
|
<type>jar</type>
|
||||||
|
<classifier>obf</classifier> <!-- 关键:标识混淆JAR -->
|
||||||
|
</artifact>
|
||||||
|
</artifacts>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-dependencies</id>
|
||||||
|
<phase>prepare-package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/dependency</outputDirectory>
|
||||||
|
<includeScope>provided</includeScope>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>local</id>
|
<id>local</id>
|
||||||
<activation>
|
<activation>
|
||||||
@@ -810,6 +906,7 @@
|
|||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
<version>3.3.0</version>
|
<version>3.3.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<classifier>xj</classifier>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>${start-class}</mainClass>
|
<mainClass>${start-class}</mainClass>
|
||||||
|
|||||||
Reference in New Issue
Block a user