title: i have errors when run spring boot project
body: <p>I am beginer with java and Spring boot and when i build simple project and run it then i get errors about can not load main class but i don't why ?? somebody can help me?? Thank a lot!</p>
  
  <p>Here my struct of my project: 
  <a href="https://i.stack.imgur.com/pxX3R.png" rel="nofollow noreferrer">1</a></p>
  
  <p>and my main class:</p>
  
  <pre><code>package app3;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  
  @SpringBootApplication
  public class App3 {
      public static void main(String[] args) {
          SpringApplication.run(App3.class, args);
      }
  }
  </code></pre>
  
  <p>my controller file</p>
  
  <pre><code>package app3;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.GetMapping;
  
  // Đánh dấu đây là một Controller
  // Nơi tiếp nhận các reqquest từ phía người dùng
  @Controller
  public class WebController {
  
      // Đón nhận request GET
      @GetMapping("/") // Nếu người dùng request tới địa chỉ "/"
      public String index() {
          return "index"; // Trả về file index.html
      }
  }
  </code></pre>
  
  <p>my XML file: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.2.0.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;app3&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-learning&lt;/artifactId&gt;
      &lt;version&gt;0.0.2-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;spring-boot-learning&lt;/name&gt;
      &lt;description&gt;Everything about Spring Boot&lt;/description&gt;
  
  
      &lt;dependencies&gt;
  
          &lt;!--spring mvc, rest--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;!-- thymeleaf --&gt;
          &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;    
                  &lt;mainClass&gt;app3.App3&lt;/mainClass&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>and simple html file in reources dict  </p>
  
  <p>then i type command  <code>mvn spring-boot:run -e</code></p>
  
  <pre><code>WARNING: An illegal reflective access operation has occurred
  WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
  WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  WARNING: All illegal access operations will be denied in a future release
  [INFO] Error stacktraces are turned on.
  [INFO] Scanning for projects...
  [INFO] 
  [INFO] ---------------------&lt; app3:spring-boot-learning &gt;----------------------
  [INFO] Building spring-boot-learning 0.0.2-SNAPSHOT
  [INFO] --------------------------------[ pom ]---------------------------------
  [INFO] 
  [INFO] &gt;&gt;&gt; spring-boot-maven-plugin:2.2.0.RELEASE:run (default-cli) &gt; test-compile @ spring-boot-learning &gt;&gt;&gt;
  [INFO] 
  [INFO] &lt;&lt;&lt; spring-boot-maven-plugin:2.2.0.RELEASE:run (default-cli) &lt; test-compile @ spring-boot-learning &lt;&lt;&lt;
  [INFO] 
  [INFO] 
  [INFO] --- spring-boot-maven-plugin:2.2.0.RELEASE:run (default-cli) @ spring-boot-learning ---
  [INFO] Attaching agents: []
  Error: Could not find or load main class app3.App3
  Caused by: java.lang.ClassNotFoundException: app3.App3
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  1.576 s
  [INFO] Finished at: 2019-11-11T23:37:45+07:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:run (default-cli) on project spring-boot-learning: Application finished with exit code: 1 -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:run (default-cli) on project spring-boot-learning: Application finished with exit code: 1
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Application finished with exit code: 1
      at org.springframework.boot.maven.RunMojo.runWithForkedJvm (RunMojo.java:108)
      at org.springframework.boot.maven.AbstractRunMojo.doRunWithForkedJvm (AbstractRunMojo.java:284)
      at org.springframework.boot.maven.AbstractRunMojo.run (AbstractRunMojo.java:249)
      at org.springframework.boot.maven.AbstractRunMojo.execute (AbstractRunMojo.java:205)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  [ERROR] 
  [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/MojoExecutionException
  </code></pre>
  
  <p>when i type <code>mvn clean spring-boot:start -e</code>
  i get the log:</p>
  
  <pre><code>WARNING: An illegal reflective access operation has occurred
  WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
  WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  WARNING: All illegal access operations will be denied in a future release
  [INFO] Error stacktraces are turned on.
  [INFO] Scanning for projects...
  [INFO] 
  [INFO] ---------------------&lt; app3:spring-boot-learning &gt;----------------------
  [INFO] Building spring-boot-learning 0.0.2-SNAPSHOT
  [INFO] --------------------------------[ pom ]---------------------------------
  [INFO] 
  [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ spring-boot-learning ---
  [INFO] 
  [INFO] --- spring-boot-maven-plugin:2.2.0.RELEASE:start (default-cli) @ spring-boot-learning ---
  [INFO] Attaching agents: []
  Error: Could not find or load main class app3.App3
  Caused by: java.lang.ClassNotFoundException: app3.App3
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  2.362 s
  [INFO] Finished at: 2019-11-11T23:39:46+07:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:start (default-cli) on project spring-boot-learning: Could not contact Spring Boot application: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
  [ERROR]         java.net.SocketException: Connection reset]
  [ERROR] -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.0.RELEASE:start (default-cli) on project spring-boot-learning: Could not contact Spring Boot application
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  Caused by: org.apache.maven.plugin.MojoFailureException: Could not contact Spring Boot application
      at org.springframework.boot.maven.StartMojo.waitForSpringApplication (StartMojo.java:185)
      at org.springframework.boot.maven.StartMojo.runWithForkedJvm (StartMojo.java:96)
      at org.springframework.boot.maven.AbstractRunMojo.doRunWithForkedJvm (AbstractRunMojo.java:284)
      at org.springframework.boot.maven.AbstractRunMojo.run (AbstractRunMojo.java:249)
      at org.springframework.boot.maven.AbstractRunMojo.execute (AbstractRunMojo.java:205)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
          java.net.SocketException: Connection reset]
      at javax.management.remote.rmi.RMIConnector.connect (RMIConnector.java:370)
      at javax.management.remote.JMXConnectorFactory.connect (JMXConnectorFactory.java:270)
      at org.springframework.boot.maven.SpringApplicationAdminClient.connect (SpringApplicationAdminClient.java:116)
      at org.springframework.boot.maven.StartMojo$CreateJmxConnector.call (StartMojo.java:271)
      at org.springframework.boot.maven.StartMojo$CreateJmxConnector.call (StartMojo.java:260)
      at org.springframework.boot.maven.StartMojo.execute (StartMojo.java:240)
      at org.springframework.boot.maven.StartMojo.waitForForkedSpringApplication (StartMojo.java:195)
      at org.springframework.boot.maven.StartMojo.waitForSpringApplication (StartMojo.java:178)
      at org.springframework.boot.maven.StartMojo.runWithForkedJvm (StartMojo.java:96)
      at org.springframework.boot.maven.AbstractRunMojo.doRunWithForkedJvm (AbstractRunMojo.java:284)
      at org.springframework.boot.maven.AbstractRunMojo.run (AbstractRunMojo.java:249)
      at org.springframework.boot.maven.AbstractRunMojo.execute (AbstractRunMojo.java:205)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
  
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  Caused by: javax.naming.CommunicationException
      at com.sun.jndi.rmi.registry.RegistryContext.lookup (RegistryContext.java:137)
      at com.sun.jndi.toolkit.url.GenericURLContext.lookup (GenericURLContext.java:207)
      at javax.naming.InitialContext.lookup (InitialContext.java:409)
      at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI (RMIConnector.java:1839)
  
      at org.springframework.boot.maven.StartMojo$CreateJmxConnector.call (StartMojo.java:271)
      at org.springframework.boot.maven.StartMojo$CreateJmxConnector.call (StartMojo.java:260)
      at org.springframework.boot.maven.StartMojo.execute (StartMojo.java:240)
      at org.springframework.boot.maven.StartMojo.waitForForkedSpringApplication (StartMojo.java:195)
      at org.springframework.boot.maven.StartMojo.waitForSpringApplication (StartMojo.java:178)
      at org.springframework.boot.maven.StartMojo.runWithForkedJvm (StartMojo.java:96)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
          java.net.SocketException: Connection reset
      at sun.rmi.transport.tcp.TCPChannel.createConnection (TCPChannel.java:300)
      at sun.rmi.transport.tcp.TCPChannel.newConnection (TCPChannel.java:196)
      at sun.rmi.server.UnicastRef.newCall (UnicastRef.java:338)
      at sun.rmi.registry.RegistryImpl_Stub.lookup (RegistryImpl_Stub.java:112)
      at com.sun.jndi.rmi.registry.RegistryContext.lookup (RegistryContext.java:133)
      at com.sun.jndi.toolkit.url.GenericURLContext.lookup (GenericURLContext.java:207)
      at javax.naming.InitialContext.lookup (InitialContext.java:409)
      at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI (RMIConnector.java:1839)
      at javax.management.remote.rmi.RMIConnector.findRMIServer (RMIConnector.java:1813)
      at javax.management.remote.rmi.RMIConnector.connect (RMIConnector.java:302)
      at javax.management.remote.JMXConnectorFactory.connect (JMXConnectorFactory.java:270)
      at org.springframework.boot.maven.SpringApplicationAdminClient.connect (SpringApplicationAdminClient.java:116)
      at org.springframework.boot.maven.StartMojo$CreateJmxConnector.call (StartMojo.java:271)
      at org.springframework.boot.maven.StartMojo$CreateJmxConnector.call (StartMojo.java:260)
      at org.springframework.boot.maven.StartMojo.execute (StartMojo.java:240)
      at org.springframework.boot.maven.StartMojo.waitForForkedSpringApplication (StartMojo.java:195)
      at org.springframework.boot.maven.StartMojo.waitForSpringApplication (StartMojo.java:178)
      at org.springframework.boot.maven.StartMojo.runWithForkedJvm (StartMojo.java:96)
      at org.springframework.boot.maven.AbstractRunMojo.doRunWithForkedJvm (AbstractRunMojo.java:284)
      at org.springframework.boot.maven.AbstractRunMojo.run (AbstractRunMojo.java:249)
      at org.springframework.boot.maven.AbstractRunMojo.execute (AbstractRunMojo.java:205)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  Caused by: java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read (SocketInputStream.java:186)
      at java.net.SocketInputStream.read (SocketInputStream.java:140)
      at java.io.BufferedInputStream.fill (BufferedInputStream.java:252)
      at java.io.BufferedInputStream.read (BufferedInputStream.java:271)
      at java.io.DataInputStream.readByte (DataInputStream.java:270)
      at sun.rmi.transport.tcp.TCPChannel.createConnection (TCPChannel.java:239)
      at sun.rmi.transport.tcp.TCPChannel.newConnection (TCPChannel.java:196)
      at sun.rmi.server.UnicastRef.newCall (UnicastRef.java:338)
      at sun.rmi.registry.RegistryImpl_Stub.lookup (RegistryImpl_Stub.java:112)
      at com.sun.jndi.rmi.registry.RegistryContext.lookup (RegistryContext.java:133)
      at com.sun.jndi.toolkit.url.GenericURLContext.lookup (GenericURLContext.java:207)
      at javax.naming.InitialContext.lookup (InitialContext.java:409)
      at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI (RMIConnector.java:1839)
      at javax.management.remote.rmi.RMIConnector.findRMIServer (RMIConnector.java:1813)
      at javax.management.remote.rmi.RMIConnector.connect (RMIConnector.java:302)
      at javax.management.remote.JMXConnectorFactory.connect (JMXConnectorFactory.java:270)
      at org.springframework.boot.maven.SpringApplicationAdminClient.connect (SpringApplicationAdminClient.java:116)
      at org.springframework.boot.maven.StartMojo$CreateJmxConnector.call (StartMojo.java:271)
      at org.springframework.boot.maven.StartMojo$CreateJmxConnector.call (StartMojo.java:260)
      at org.springframework.boot.maven.StartMojo.execute (StartMojo.java:240)
      at org.springframework.boot.maven.StartMojo.waitForForkedSpringApplication (StartMojo.java:195)
      at org.springframework.boot.maven.StartMojo.waitForSpringApplication (StartMojo.java:178)
      at org.springframework.boot.maven.StartMojo.runWithForkedJvm (StartMojo.java:96)
      at org.springframework.boot.maven.AbstractRunMojo.doRunWithForkedJvm (AbstractRunMojo.java:284)
      at org.springframework.boot.maven.AbstractRunMojo.run (AbstractRunMojo.java:249)
      at org.springframework.boot.maven.AbstractRunMojo.execute (AbstractRunMojo.java:205)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
         at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  [ERROR] 
  [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
  </code></pre>
  
  <p>sombody can help me! thank a lot!</p>