我正在尝试在新系统上调试我用 maven 构建的项目。该命令mvn tomcat:run
运行良好,但是失败并显示mvnDebug tomcat:run
.
C:\project>mvnDebug tomcat:run
Preparing to Execute Maven in Debug Mode
ERROR: transport error 202: bind failed: Permission denied
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
pom.xml 中定义的插件是:
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0</version>
</plugin>
我无法找到解释“权限被拒绝”问题的解决方案。我确实在这里找到了关于 SO 的帖子,但它有一个“地址已在使用中”的问题。