Operating Environment:
JDK Version: 1.8
Maven version: apache-maven-3.3.3
Idea version: 14
Maven-jetty-plugin configuration:
<plugin> <groupId>Org.eclipse.jetty</groupId> <Artifactid>Jetty-maven-plugin</Artifactid> <Configuration> <webappsourcedirectory>${project.basedir}/web</webappsourcedirectory> <Scanintervalseconds>10</Scanintervalseconds> <HttpConnector> <Port>8081</Port> </HttpConnector> <Stopkey>Shutdown</Stopkey> <Stopport>9966</Stopport> <webApp> <ContextPath>/${project.artifactid}</ContextPath> </webApp> </Configuration></plugin>
Console output Exception information:
"C:\Program Files\java\jdk1.8.0_65\bin\java"-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:59770,suspend= Y,server=n-dmaven.home=d:\apache-maven-3.3.3-dclassworlds.conf=d:\apache-maven-3.3.3\bin\m2.conf- Dfile.encoding=utf-8-classpath "D:\apache-maven-3.3.3\boot\plexus-classworlds-2.5.2.jar; C:\Program Files (x86) \jetbrains\intellij idea 14.0.2\lib\idea_rt.jar "Org.codehaus.classworlds.Launcher- didea.version=14.0.2' 127.0.0.1:59770 ', Transport: ' Socket' 127.0.0.1:59770 ', Transport: ' Socket ' -1
Workaround:
On the internet is due to the idea and MAVEN version incompatibility caused by the above problem (original address: http://bbs.51cto.com/thread-1147659-1.html), to change Maven to Apache-maven-3.1.1-bin, The above problems have been solved successfully.
Create a Maven Web project with Idea (exception)-Disconnected from the target VM, address: ' 127.0.0.1:59770 ', Transport: ' Socket '