【发布时间】:2015-04-29 06:37:45
【问题描述】:
我按照简单的步骤来实现这一点。将 Tomcat 和 Maven 与 eclipse 集成。 1.打开日食。新建->其他-> maven项目-> webapp 2. 增加tomcat插件。 3.右键单击POM文件并以maven clean运行 4.作为maven运行生成源 5.作为maven构建运行。 6.通过命令tomcat:run 但是出现以下错误,
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:run (default-cli) on project simplehelloworld: Could not start Tomcat: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind <null>:8080 -> [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/MojoExecutionException
【问题讨论】: