mvnDebug因拒绝许可而失败

Mon*_*oon 2 java tomcat maven

我正在尝试使用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)
Run Code Online (Sandbox Code Playgroud)

pom.xml中定义的插件是:

            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.0</version>
            </plugin>
Run Code Online (Sandbox Code Playgroud)

我无法找到解决"权限被拒绝"问题的解决方案.我没有找到一个职位在这里上如此,但它"已在使用中的地址"的问题了.

Viv*_*ath 5

其他东西可能被绑定到端口8000,或者它可能以某种方式被阻止.尝试使用另一个端口,看看你是否能够绑定到那个端口.有细节在这里.基本上你必须改变mvnDebug.bat批处理文件以使用另一个端口.