The magic issue with the Spring boot project when using Maven on a Mac: Unregistering jmx-exposed beans on shutdown

Source: Internet
Author: User

The error is as follows:

? Springboottest1 MVN spring-Boot: Run[INFO] scanning forProjects ...[INFO] [INFO]-------------------------------- ----------------------------------------[INFO] Building springboottest10.0.1-snapshot[info]------------------------------------------------------------------------[INFO] [INFO]>>> spring-Boot-maven-plugin:1.4.7.release: Run(DEFAULT-CLI) > test-compile @ springboottest1 >>>[INFO] [INFO]---maven-resources-plugin:2.6: Resources(default-resources)@ springboottest1---[INFO] Using ' utf-8 ' Encoding toCopyFiltered resources.[INFO] Skip non existing resourcedirectory/users/jim/desktop/springboottest1/src/main/Resources[info] Skip non existing resourcedirectory/users/jim/desktop/springboottest1/src/main/Resources[info] [INFO]---maven-compiler-plugin:3.1: Compile(Default-compile)@ springboottest1---[INFO] changes detected-recompiling the module! [INFO] Compiling2 SourceFilesto/users/jim/desktop/springboottest1/target/classes[warning] read Error when/users/jim/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.15/tomcat-embed-core-8.5.15.jar ; Invalid LOC header (bad signature)[INFO] [INFO]---maven-resources-plugin:2.6: Testresources(default-testresources)@ springboottest1---[INFO] Using ' utf-8 ' Encoding toCopyFiltered resources.[INFO] Skip non existing resourcedirectory/users/jim/desktop/springboottest1/src/test/Resources[info] [INFO]---maven-compiler-plugin:3.1: Testcompile(Default-testcompile)@ springboottest1---[INFO] changes detected-recompiling the module! [INFO] Compiling1 source file to/users/jim/desktop/springboottest1/target/test-classes[warning] read Error when/users/jim/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.15/tomcat-embed-core-8.5.15.jar ; Invalid LOC header (bad signature)[INFO] [INFO]<<< spring-Boot-maven-plugin:1.4.7.release: Run(DEFAULT-CLI) < Test-compile @ springboottest1 <<<[INFO] [INFO]---spring-Boot-maven-plugin:1.4.7.release: Run(DEFAULT-CLI)@ springboottest1---.   ____          _            __ _ _ /\\/___ ' _ __ _ _ (_) _ __ _ \ \ \ (() \___ | ' _ | ' _| | ' _ \ _ ' | \ \ \  \\/  ___)| |_)| | | | | ||  (_| | ) ) ) )' |____|.__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/::Spring Boot:: (v1.4.7.release)2017-08-17 15:50:23.713 INFO 2562---[main] c.j.springboottest.springboottest1.app:starting App onJimdemacbook-pro.local with PID 2562 (/users/jim/desktop/springboottest1/target/classes started by Jim in/users/jim/   DESKTOP/SPRINGBOOTTEST1) 2017-08-17 15:50:23.716 INFO 2562---[main] C.j.springboottest.springboottest1.app : No Active ProfileSet,falling back to default Profiles:default2017-08-17 15:50:23.777 INFO 2562---[main] s.c.a.annotationconfigapplicationcontext:refreshing org.spring[ Email Protected]220b740b:startupDate[Thu 15:50:23 CST 2017];root of context hierarchy2017-08-17 15:50:25.248 INFO 2562---[main] o.s.j.e.a.annotationmbeanexporter:registering beans forJMX exposure onStartup2017-08-17 15:50:25.267 INFO 2562---[main] c.j.springboottest.springboottest1.app:started App in 12.251 Seconds (JVM running for16.751)[INFO]------------------------------------------------------------------------[INFO] BUILD Success[info]---- --------------------------------------------------------------------[INFO] Total Time: 15.357S[info] finished at:2017-08-17t15:50:25+08:00[INFO] Final memory:30m/379m[info]------------------------------------------------------------------------2017-08-17 15:50:25.494 INFO 2562---[Thread-1] s.c.a.annotationconfigapplicationcontext:closing Org.spring[ema Il protected]220b740b:startupDate[Thu 15:50:23 CST 2017];root of context hierarchy2017-08-17 15:50:25.496 INFO 2562---[Thread-1] o.s.j.e.a.annotationmbeanexporter:unregistering Jmx-expo SED beans onShutdown

As can be seen from the above question, when the Tomcat jar package read failed, then the solution to go to the local repository to delete all the packages under this directory, and then rebuild can be resolved.

Summarize:

In general, when using Maven to rely on, you will encounter a lot of inexplicable problems, perhaps delete the local library package and re-download is also a solution, especially for the correct configuration after the project can not run the situation.

The magic issue with the Spring boot project when using Maven on a Mac: Unregistering jmx-exposed beans on shutdown

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.