Tag Archives: Integrate the mobile MAS SMS service

[Integrate the mobile MAS SMS service] SDK start error: NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtil

1. Problem description

An error is reported when executing the unit test

"C:\Program Files\Java\jdk-11.0.7\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:E:\IDEA\IntelliJ IDEA 2020.1.2\lib\idea_rt.jar=1590:E:\IDEA\IntelliJ IDEA 2020.1.2\bin" -Dfile.encoding=UTF-8 -classpath "E:\IDEA\IntelliJ IDEA 2020.1.2\lib\idea_rt.jar;C:\Users\司超龙\.m2\repository\org\junit\platform\junit-platform-launcher\1.5.2\junit-platform-launcher-1.5.2.jar;C:\Users\司超龙\.m2\repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;C:\Users\司超龙\.m2\repository\org\junit\platform\junit-platform-engine\1.5.2\junit-platform-engine-1.5.2.jar;C:\Users\司超龙\.m2\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;C:\Users\司超龙\.m2\repository\org\junit\platform\junit-platform-commons\1.5.2\junit-platform-commons-1.5.2.jar;E:\IDEA\IntelliJ IDEA 2020.1.2\plugins\junit\lib\junit5-rt.jar;E:\IDEA\IntelliJ IDEA 2020.1.2\plugins\junit\lib\junit-rt.jar;E:\项目\工单维修\repire-work-order\third-party\target\test-classes;E:\项目\工单维修\repire-work-order\third-party\target\classes;E:\项目\工单维修\repire-work-order\third-party\lib\masmgc.sdk.mms-0.0.1-SNAPSHOT.jar;E:\项目\工单维修\repire-work-order\third-party\lib\masmgc.sdk.sms-0.0.1-SNAPSHOT.jar;E:\Maven\MavenLocalRepository\maven_repository\com\tencentcloudapi\tencentcloud-sdk-java\3.1.297\tencentcloud-sdk-java-3.1.297.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;E:\Maven\MavenLocalRepository\maven_repository\com\squareup\okio\okio\1.12.0\okio-1.12.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\squareup\okhttp\okhttp\2.7.5\okhttp-2.7.5.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar;E:\Maven\MavenLocalRepository\maven_repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;E:\Maven\MavenLocalRepository\maven_repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\squareup\okhttp\logging-interceptor\2.7.5\logging-interceptor-2.7.5.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-data-redis\2.2.6.RELEASE\spring-boot-starter-data-redis-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter\2.2.6.RELEASE\spring-boot-starter-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot\2.2.6.RELEASE\spring-boot-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-autoconfigure\2.2.6.RELEASE\spring-boot-autoconfigure-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-logging\2.2.6.RELEASE\spring-boot-starter-logging-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\Maven\MavenLocalRepository\maven_repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;E:\Maven\MavenLocalRepository\maven_repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;E:\Maven\MavenLocalRepository\maven_repository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\data\spring-data-redis\2.2.6.RELEASE\spring-data-redis-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\data\spring-data-keyvalue\2.2.6.RELEASE\spring-data-keyvalue-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\data\spring-data-commons\2.2.6.RELEASE\spring-data-commons-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-tx\5.2.5.RELEASE\spring-tx-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-oxm\5.2.5.RELEASE\spring-oxm-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-aop\5.2.5.RELEASE\spring-aop-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-context-support\5.2.5.RELEASE\spring-context-support-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\redis\clients\jedis\3.1.0\jedis-3.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\commons\commons-pool2\2.7.0\commons-pool2-2.7.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\commons\commons-lang3\3.3.2\commons-lang3-3.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-io\commons-io\1.3.2\commons-io-1.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-net\commons-net\3.3\commons-net-3.3.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-fileupload\commons-fileupload\1.3.1\commons-fileupload-1.3.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\spring-cloud-starter-alicloud-oss\2.1.0.RELEASE\spring-cloud-starter-alicloud-oss-2.1.0.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\spring-cloud-alicloud-oss\2.1.0.RELEASE\spring-cloud-alicloud-oss-2.1.0.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\spring-cloud-alicloud-context\2.1.0.RELEASE\spring-cloud-alicloud-context-2.1.0.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\alicloud-context\1.0.5\alicloud-context-1.0.5.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\oss\aliyun-sdk-oss\3.1.0\aliyun-sdk-oss-3.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\httpcomponents\httpclient\4.5.12\httpclient-4.5.12.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\httpcomponents\httpcore\4.4.13\httpcore-4.4.13.jar;E:\Maven\MavenLocalRepository\maven_repository\org\jdom\jdom\1.1\jdom-1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\jersey\jersey-json\1.9\jersey-json-1.9.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jettison\jettison\1.1\jettison-1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\xml\bind\jaxb-impl\2.2.3-1\jaxb-impl-2.2.3-1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jackson\jackson-core-asl\1.8.3\jackson-core-asl-1.8.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jackson\jackson-mapper-asl\1.8.3\jackson-mapper-asl-1.8.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jackson\jackson-jaxrs\1.8.3\jackson-jaxrs-1.8.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\jackson\jackson-xc\1.8.3\jackson-xc-1.8.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\jersey\jersey-core\1.9\jersey-core-1.9.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\aliyun-java-sdk-core\3.4.0\aliyun-java-sdk-core-3.4.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\json\json\20170516\json-20170516.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\aliyun-java-sdk-ram\3.0.0\aliyun-java-sdk-ram-3.0.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\aliyun-java-sdk-sts\3.0.0\aliyun-java-sdk-sts-3.0.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\aliyun\aliyun-java-sdk-ecs\4.2.0\aliyun-java-sdk-ecs-4.2.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2.2.2.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-2.2.2.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\nacos\nacos-client\1.3.2\nacos-client-1.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\nacos\nacos-common\1.3.2\nacos-common-1.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\httpcomponents\httpasyncclient\4.1.4\httpasyncclient-4.1.4.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\httpcomponents\httpcore-nio\4.4.13\httpcore-nio-4.4.13.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\nacos\nacos-api\1.3.2\nacos-api-1.3.2.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\guava\guava\24.1.1-jre\guava-24.1.1-jre.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\code\findbugs\jsr305\1.3.9\jsr305-1.3.9.jar;E:\Maven\MavenLocalRepository\maven_repository\org\checkerframework\checker-compat-qual\2.0.0\checker-compat-qual-2.0.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\errorprone\error_prone_annotations\2.1.3\error_prone_annotations-2.1.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\codehaus\mojo\animal-sniffer-annotations\1.14\animal-sniffer-annotations-1.14.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\core\jackson-core\2.10.3\jackson-core-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\core\jackson-databind\2.10.3\jackson-databind-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\core\jackson-annotations\2.10.3\jackson-annotations-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\alibaba\spring\spring-context-support\1.0.9\spring-context-support-1.0.9.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-commons\2.2.5.RELEASE\spring-cloud-commons-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\security\spring-security-crypto\5.2.2.RELEASE\spring-security-crypto-5.2.2.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-context\2.2.5.RELEASE\spring-cloud-context-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.5.RELEASE\spring-cloud-starter-netflix-ribbon-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.5.RELEASE\spring-cloud-netflix-ribbon-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.5.RELEASE\spring-cloud-netflix-archaius-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.5.RELEASE\spring-cloud-starter-netflix-archaius-2.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\Maven\MavenLocalRepository\maven_repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\Maven\MavenLocalRepository\maven_repository\javax\inject\javax.inject\1\javax.inject-1.jar;E:\Maven\MavenLocalRepository\maven_repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\netflix-commons\netflix-commons-util\0.1.1\netflix-commons-util-0.1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\Maven\MavenLocalRepository\maven_repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-web\2.2.6.RELEASE\spring-boot-starter-web-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-json\2.2.6.RELEASE\spring-boot-starter-json-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.3\jackson-datatype-jdk8-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.3\jackson-datatype-jsr310-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.3\jackson-module-parameter-names-2.10.3.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-tomcat\2.2.6.RELEASE\spring-boot-starter-tomcat-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.33\tomcat-embed-core-9.0.33.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.33\tomcat-embed-el-9.0.33.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.33\tomcat-embed-websocket-9.0.33.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-validation\2.2.6.RELEASE\spring-boot-starter-validation-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;E:\Maven\MavenLocalRepository\maven_repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;E:\Maven\MavenLocalRepository\maven_repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-web\5.2.5.RELEASE\spring-web-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-beans\5.2.5.RELEASE\spring-beans-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-webmvc\5.2.5.RELEASE\spring-webmvc-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-context\5.2.5.RELEASE\spring-context-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-expression\5.2.5.RELEASE\spring-expression-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-starter-openfeign\2.2.6.RELEASE\spring-cloud-starter-openfeign-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-starter\2.2.6.RELEASE\spring-cloud-starter-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;E:\Maven\MavenLocalRepository\maven_repository\org\bouncycastle\bcprov-jdk15on\1.64\bcprov-jdk15on-1.64.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\cloud\spring-cloud-openfeign-core\2.2.6.RELEASE\spring-cloud-openfeign-core-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-aop\2.2.6.RELEASE\spring-boot-starter-aop-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\aspectj\aspectjweaver\1.9.5\aspectjweaver-1.9.5.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\feign-core\10.10.1\feign-core-10.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\feign-slf4j\10.10.1\feign-slf4j-10.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\io\github\openfeign\feign-hystrix\10.10.1\feign-hystrix-10.10.1.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\Maven\MavenLocalRepository\maven_repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;E:\Maven\MavenLocalRepository\maven_repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\Maven\MavenLocalRepository\maven_repository\org\projectlombok\lombok\1.18.12\lombok-1.18.12.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-starter-test\2.2.6.RELEASE\spring-boot-starter-test-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-test\2.2.6.RELEASE\spring-boot-test-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\boot\spring-boot-test-autoconfigure\2.2.6.RELEASE\spring-boot-test-autoconfigure-2.2.6.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;E:\Maven\MavenLocalRepository\maven_repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;E:\Maven\MavenLocalRepository\maven_repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;E:\Maven\MavenLocalRepository\maven_repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;E:\Maven\MavenLocalRepository\maven_repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\jupiter\junit-jupiter\5.5.2\junit-jupiter-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\jupiter\junit-jupiter-api\5.5.2\junit-jupiter-api-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\platform\junit-platform-commons\1.5.2\junit-platform-commons-1.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\jupiter\junit-jupiter-params\5.5.2\junit-jupiter-params-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\jupiter\junit-jupiter-engine\5.5.2\junit-jupiter-engine-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\vintage\junit-vintage-engine\5.5.2\junit-vintage-engine-5.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\junit\platform\junit-platform-engine\1.5.2\junit-platform-engine-1.5.2.jar;E:\Maven\MavenLocalRepository\maven_repository\junit\junit\4.12\junit-4.12.jar;E:\Maven\MavenLocalRepository\maven_repository\org\mockito\mockito-junit-jupiter\3.1.0\mockito-junit-jupiter-3.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\org\assertj\assertj-core\3.13.2\assertj-core-3.13.2.jar;E:\Maven\MavenLocalRepository\maven_repository\org\hamcrest\hamcrest\2.1\hamcrest-2.1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\mockito\mockito-core\3.1.0\mockito-core-3.1.0.jar;E:\Maven\MavenLocalRepository\maven_repository\net\bytebuddy\byte-buddy\1.10.8\byte-buddy-1.10.8.jar;E:\Maven\MavenLocalRepository\maven_repository\net\bytebuddy\byte-buddy-agent\1.10.8\byte-buddy-agent-1.10.8.jar;E:\Maven\MavenLocalRepository\maven_repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;E:\Maven\MavenLocalRepository\maven_repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;E:\Maven\MavenLocalRepository\maven_repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-core\5.2.5.RELEASE\spring-core-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-jcl\5.2.5.RELEASE\spring-jcl-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\springframework\spring-test\5.2.5.RELEASE\spring-test-5.2.5.RELEASE.jar;E:\Maven\MavenLocalRepository\maven_repository\org\xmlunit\xmlunit-core\2.6.4\xmlunit-core-2.6.4.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit5 henu.soft.xiaosi.thirdparty.ThirdPartyApplicationTests,test1
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/%e9%a1%b9%e7%9b%ae/%e5%b7%a5%e5%8d%95%e7%bb%b4%e4%bf%ae/repire-work-order/third-party/lib/masmgc.sdk.sms-0.0.1-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/Maven/MavenLocalRepository/maven_repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]



Test ignored.

java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available.

	at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:144)
	at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:122)
	at org.junit.jupiter.engine.execution.ExtensionValuesStore.lambda$getOrComputeIfAbsent$0(ExtensionValuesStore.java:81)
	at org.junit.jupiter.engine.execution.ExtensionValuesStore$MemoizingSupplier.get(ExtensionValuesStore.java:182)
	at org.junit.jupiter.engine.execution.ExtensionValuesStore.getOrComputeIfAbsent(ExtensionValuesStore.java:84)
	at org.junit.jupiter.engine.execution.ExtensionValuesStore.getOrComputeIfAbsent(ExtensionValuesStore.java:88)
	at org.junit.jupiter.engine.execution.NamespaceAwareStore.getOrComputeIfAbsent(NamespaceAwareStore.java:61)
	at org.springframework.test.context.junit.jupiter.SpringExtension.getTestContextManager(SpringExtension.java:213)
	at org.springframework.test.context.junit.jupiter.SpringExtension.beforeAll(SpringExtension.java:77)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllCallbacks$7(ClassBasedTestDescriptor.java:355)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllCallbacks(ClassBasedTestDescriptor.java:355)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:189)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:77)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:132)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229)
	at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197)
	at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
	at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58)
	Suppressed: java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'value' attribute or make the default bootstrapper class available.
		at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:144)
		at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:122)
		at org.junit.jupiter.engine.execution.ExtensionValuesStore.lambda$getOrComputeIfAbsent$0(ExtensionValuesStore.java:81)
		at org.junit.jupiter.engine.execution.ExtensionValuesStore$MemoizingSupplier.get(ExtensionValuesStore.java:182)
		at org.junit.jupiter.engine.execution.ExtensionValuesStore.remove(ExtensionValuesStore.java:98)
		at org.junit.jupiter.engine.execution.NamespaceAwareStore.remove(NamespaceAwareStore.java:73)
		at org.springframework.test.context.junit.jupiter.SpringExtension.afterAll(SpringExtension.java:89)
		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllCallbacks$13(ClassBasedTestDescriptor.java:421)
		at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeAfterAllCallbacks$14(ClassBasedTestDescriptor.java:421)
		at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeAfterAllCallbacks(ClassBasedTestDescriptor.java:421)
		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:213)
		at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.after(ClassBasedTestDescriptor.java:77)
		at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:145)
		at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
		at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:145)
		... 27 more
	Caused by: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.findAllMergedAnnotations(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/util/Set;
		at org.springframework.test.context.BootstrapUtils.resolveExplicitTestContextBootstrapper(BootstrapUtils.java:152)
		at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:127)
		... 43 more
Caused by: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.findAllMergedAnnotations(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/util/Set;
	at org.springframework.test.context.BootstrapUtils.resolveExplicitTestContextBootstrapper(BootstrapUtils.java:152)
	at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:127)
	... 43 more





Process finished with exit code -1

When searching the reason, you know that it should be a dependency conflict and start checking the dependency

<?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>
    <groupId>henu.soft.xiaosi</groupId>
    <artifactId>third-party</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>third-party</name>
    <description>Third party service</description>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.6.RELEASE</version>
    </parent>
    <properties>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <commons-lang3.version>3.3.2</commons-lang3.version>
        <commons-io.version>1.3.2</commons-io.version>
        <commons-net.version>3.3</commons-net.version>

        <commons-fileupload.version>1.3.1</commons-fileupload.version>
    </properties>

    <dependencies>


<!--        Tencent Cloud SMS Service-->

         <!-- Tencent Cloud Java SDK dependency -->
        <dependency>
            <groupId>com.tencentcloudapi</groupId>
            <artifactId>tencentcloud-sdk-java</artifactId>
            <version>3.1.297</version>
        </dependency>

<!--        redis-->
<!--        <dependency>-->
<!--            <groupId>org.springframework.boot</groupId>-->
<!--            <artifactId>spring-boot-starter-data-redis</artifactId>-->
<!--        </dependency>-->

        <!--In order to solve the problem of out-of-heap memory overflow caused by the bug of luttce, use the jedis client operationredis-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>io.lettuce</groupId>
                    <artifactId>lettuce-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>

        </dependency>

<!--        ftp file upload-->

         <!-- Apache tool components -->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>${commons-lang3.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-io</artifactId>
            <version>${commons-io.version}</version>
        </dependency>
        <dependency>
            <groupId>commons-net</groupId>
            <artifactId>commons-net</artifactId>
            <version>${commons-net.version}</version>
        </dependency>

        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>${commons-fileupload.version}</version>
        </dependency>
<!--        OOS依赖-->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alicloud-oss</artifactId>
            <version>2.1.0.RELEASE</version>
        </dependency>
<!--        Registry-->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
            <version>2.2.2.RELEASE</version>

        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
            <version>2.2.6.RELEASE</version>
        </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>
            <version>2.2.6.RELEASE</version>
        </dependency>




    </dependencies>

    <dependencyManagement>
        <dependencies>


        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.2.6.RELEASE</version>
                <configuration>
                    <mainClass>henu.soft.xiaosi.thirdparty.ThirdPartyApplication</mainClass>
                </configuration>
                <executions>
                    <execution>
                        <id>repackage</id>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>

2、 Try to solve

No matter how you try to change the dependency, you still report errors all the time. Finally, you have no choice but to re create a sub module (note that there is no jar package of the SDK of the mobile MAS!!!, which can run), and a new POM file

<?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>
    <groupId>henu.soft.xiaosi</groupId>
    <artifactId>third</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>third</name>
    <description>Third party service</description>

    <properties>
        <java.version>11</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <spring-boot.version>2.3.7.RELEASE</spring-boot.version>
        <spring-cloud-alibaba.version>2.2.2.RELEASE</spring-cloud-alibaba.version>
        <spring-cloud.version>Hoxton.SR9</spring-cloud.version>
    </properties>

    <dependencies>

        <!--        Registry-->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
            <version>2.2.2.RELEASE</version>

        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</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>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>${spring-boot.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>${spring-cloud-alibaba.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>11</source>
                    <target>11</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.3.7.RELEASE</version>
                <configuration>
                    <mainClass>henu.soft.xiaosi.third.ThirdApplication</mainClass>
                </configuration>
                <executions>
                    <execution>
                        <id>repackage</id>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>

Then the unit test does not report an error, and the next step is to copy the things of the old module to the new module (that is, the mobile MAS package)

Because the module needs to use a third-party jar package, and then add aslibiary, and then start the test and report an error again……!!!

Then remove lib and add it again, but it still doesn’t work…!!!

For the last operation, I just want to say TMD. The solution is to select Global Library and then confirm. Try again. It can run this time, but it is really one-time… An error is reported when running again


This may also be caused by the error of adding external jar packages. In addition, it seems that the main class can only succeed and fail in testing or starting. This should be the problem of jar packages

3. Problem solving

After tossing for a long time, I finally said in an article that is the reason for moving the SDK of MAS, because there are a lot of spring dependencies in the SDK package…

When writing the SDK, try not to use the framework. If you can use the method provided by JDK, use the method provided by JDK, otherwise it will cause a lot of trouble to those who use your SDK.

1. First, delete the dependencies in the jar

It mainly depends on spring and slf4j. Use 7z to open and delete it. After deletion

2. Install the SDK jar package into the Maven local library

What I choose here is to package the jar and put it in the local warehouse, and switch to the folder where the jar is located

mvn install:install-file 
-Dfile=masmgc.sdk.sms-0.0.1-SNAPSHOT.jar 
-DgroupId=com.masmgc.sms 
-DartifactId=masmgc-sdk-sms 
-Dversion=0.0.1-SNAPSHOT 
-Dpackaging=jar

Then it is introduced in the POM file

<!--        Mobile SMS-->
        <dependency>
            <groupId>com.masmgc.sms</groupId>
            <artifactId>masmgc-sdk-sms</artifactId>
            <version>0.0.1-SNAPSHOT</version>

Testing