diff --git a/pom.xml b/pom.xml index 2d8cd6cf8..d1a3e1291 100644 --- a/pom.xml +++ b/pom.xml @@ -38,4 +38,13 @@ + + + + aliyun + aliyun + http://maven.aliyun.com/nexus/content/groups/public + + + diff --git a/yudao-admin-server/pom.xml b/yudao-admin-server/pom.xml index dc30b5234..8c09991c4 100644 --- a/yudao-admin-server/pom.xml +++ b/yudao-admin-server/pom.xml @@ -68,6 +68,17 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M5 + + + org.apache.maven.plugins + maven-failsafe-plugin + 3.0.0-M5 + diff --git a/yudao-admin-server/src/main/java/cn/iocoder/dashboard/modules/system/service/auth/impl/SysAuthServiceImpl.java b/yudao-admin-server/src/main/java/cn/iocoder/dashboard/modules/system/service/auth/impl/SysAuthServiceImpl.java index 768dec9a8..40eb79ae3 100644 --- a/yudao-admin-server/src/main/java/cn/iocoder/dashboard/modules/system/service/auth/impl/SysAuthServiceImpl.java +++ b/yudao-admin-server/src/main/java/cn/iocoder/dashboard/modules/system/service/auth/impl/SysAuthServiceImpl.java @@ -85,7 +85,7 @@ public class SysAuthServiceImpl implements SysAuthService { @Override public String login(SysAuthLoginReqVO reqVO, String userIp, String userAgent) { // 判断验证码是否正确 -// this.verifyCaptcha(reqVO.getUsername(), reqVO.getUuid(), reqVO.getCode()); + this.verifyCaptcha(reqVO.getUsername(), reqVO.getUuid(), reqVO.getCode()); // 使用账号密码,进行登陆。 LoginUser loginUser = this.login0(reqVO.getUsername(), reqVO.getPassword()); diff --git a/yudao-dependencies/pom.xml b/yudao-dependencies/pom.xml index e2d8c106d..6b076f2db 100644 --- a/yudao-dependencies/pom.xml +++ b/yudao-dependencies/pom.xml @@ -49,6 +49,8 @@ 4.5.18 2.1.0 1.2.7 + + 3.0.0-M5 @@ -291,4 +293,21 @@ + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + org.apache.maven.plugins + maven-failsafe-plugin + ${maven-surefire-plugin.version} + + + + + diff --git a/yudao-framework/pom.xml b/yudao-framework/pom.xml index 2c06091e9..55b813c83 100644 --- a/yudao-framework/pom.xml +++ b/yudao-framework/pom.xml @@ -212,4 +212,20 @@ + + + ${artifactId} + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M5 + + + org.apache.maven.plugins + maven-failsafe-plugin + 3.0.0-M5 + + + diff --git a/yudao-framework/src/main/java/cn/iocoder/dashboard/util/test/RandomUtils.java b/yudao-framework/src/main/java/cn/iocoder/dashboard/util/test/RandomUtils.java index 9ff8d1c4c..f5712500a 100644 --- a/yudao-framework/src/main/java/cn/iocoder/dashboard/util/test/RandomUtils.java +++ b/yudao-framework/src/main/java/cn/iocoder/dashboard/util/test/RandomUtils.java @@ -92,7 +92,7 @@ public class RandomUtils { @SafeVarargs public static List randomPojoList(Class clazz, Consumer... consumers) { - int size = RandomUtil.randomInt(0, RANDOM_COLLECTION_LENGTH); + int size = RandomUtil.randomInt(1, RANDOM_COLLECTION_LENGTH); return Stream.iterate(0, i -> i).limit(size).map(o -> randomPojo(clazz, consumers)) .collect(Collectors.toList()); }