You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

163 lines
20 KiB

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.crm:crm-auth:jar:1.0.0-SNAPSHOT
[WARNING] 'dependencies.dependency.version' for org.projectlombok:lombok:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 60, column 22
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.crm:crm-file:jar:1.0.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.projectlombok:lombok:jar -> duplicate declaration of version (?) @ line 49, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] crm [pom]
[INFO] crm-base [jar]
[INFO] crm-file [jar]
[INFO] crm-auth [jar]
[INFO]
[INFO] ----------------------------< com.crm:crm >-----------------------------
[INFO] Building crm 1.0.0-SNAPSHOT [1/4]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --------------------------< com.crm:crm-base >--------------------------
[INFO] Building crm-base 1.0.0-SNAPSHOT [2/4]
[INFO] from crm-base\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ crm-base ---
[INFO] skip non existing resourceDirectory D:\code\crm-backend-matt\crm-base\src\main\resources
[INFO] skip non existing resourceDirectory D:\code\crm-backend-matt\crm-base\src\main\resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ crm-base ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ crm-base ---
[INFO] skip non existing resourceDirectory D:\code\crm-backend-matt\crm-base\src\test\resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ crm-base ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- surefire:3.2.5:test (default-test) @ crm-base ---
[INFO]
[INFO] --------------------------< com.crm:crm-file >--------------------------
[INFO] Building crm-file 1.0.0-SNAPSHOT [3/4]
[INFO] from crm-file\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ crm-file ---
[INFO] skip non existing resourceDirectory D:\code\crm-backend-matt\crm-file\src\main\resources
[INFO] skip non existing resourceDirectory D:\code\crm-backend-matt\crm-file\src\main\resources
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ crm-file ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ crm-file ---
[INFO] skip non existing resourceDirectory D:\code\crm-backend-matt\crm-file\src\test\resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ crm-file ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- surefire:3.2.5:test (default-test) @ crm-file ---
[INFO]
[INFO] --------------------------< com.crm:crm-auth >--------------------------
[INFO] Building crm-auth 1.0.0-SNAPSHOT [4/4]
[INFO] from crm-auth\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ crm-auth ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO] Copying 0 resource from src\main\resources to target\classes
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ crm-auth ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ crm-auth ---
[INFO] skip non existing resourceDirectory D:\code\crm-backend-matt\crm-auth\src\test\resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ crm-auth ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --- surefire:3.2.5:test (default-test) @ crm-auth ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.crm.auth.service.impl.ResourceServiceImplTest
mvn : Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap cl
asspath has been appended
所在位置 行:1 字符: 1
+ mvn -pl crm-auth -am test "-Dtest=ResourceServiceImplTest" "-Dsurefir ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Java HotSpot(TM...s been appended:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
09:20:15.128 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 保存资源节点:id=1, name=改名字, type=CATALOG
09:20:15.478 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 保存资源节点:id=null, name=新目录, type=CATALOG
09:20:15.573 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 保存资源节点:id=10, name=改名, type=MENU
09:20:15.635 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 图标上传成功:fileId=12345, name=icon.png
09:20:15.648 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 保存资源节点:id=1, name=改昵称, type=CATALOG
09:20:15.719 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 保存资源节点:id=10, name=改名, type=MENU
09:20:15.740 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 保存资源节点:id=null, name=新增按钮, type=BUTTON
09:20:15.776 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 保存资源节点:id=null, name=根菜单, type=MENU
09:20:15.863 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 删除资源节点:id=100, name=查询用户
09:20:15.882 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 删除资源节点时级联清理角色授权引用:menuId=100, 清理了 2 条记录
09:20:15.884 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 删除资源节点:id=100, name=查询用户
09:20:15.913 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 保存资源节点:id=null, name=根目录, type=CATALOG
09:20:15.934 [main] INFO com.crm.auth.service.impl.ResourceServiceImpl -- 保存资源节点:id=null, name=新菜单, type=MENU
[ERROR] Tests run: 36, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.123 s <<< FAILURE! -- in com.crm.auth.service.impl.ResourceServiceImplTest
[ERROR] com.crm.auth.service.impl.ResourceServiceImplTest.save_editCatalog_noButtonFields -- Time elapsed: 0.028 s <<< FAILURE!
org.opentest4j.AssertionFailedError:
expected: null
but was: "unused-perm"
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at com.crm.auth.service.impl.ResourceServiceImplTest.save_editCatalog_noButtonFields(ResourceServiceImplTest.java:377)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ResourceServiceImplTest.save_editCatalog_noButtonFields:377
expected: null
but was: "unused-perm"
[INFO]
[ERROR] Tests run: 36, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for crm 1.0.0-SNAPSHOT:
[INFO]
[INFO] crm ................................................ SUCCESS [ 0.002 s]
[INFO] crm-base ........................................... SUCCESS [ 3.820 s]
[INFO] crm-file ........................................... SUCCESS [ 0.962 s]
[INFO] crm-auth ........................................... FAILURE [ 6.014 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.522 s
[INFO] Finished at: 2026-08-31T09:20:16+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.5:test (default-test) on project crm-auth: There are test failures.
[ERROR]
[ERROR] Please refer to D:\code\crm-backend-matt\crm-auth\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :crm-auth