m2eclipse部署tomcat失败

xunclapton 2010-10-21
是按照网上都能找到的流程做的
在setting.xml中配置了server,设置了用户名、密码
但是在eclipse中就是失败,说没有配置用户名、密码:

[INFO] Deploying war to http://localhost:8080/mvnTest 
[DEBUG] No server username specified - using default
[DEBUG] No server password specified - using default
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE


但是我用命令行执行mvn package tomcat:redeploy就可以成功,说明我用户名和密码配得没问题啊,很怪异
[INFO] Deploying war to http://localhost:8080/mvnTest
[INFO] OK - Undeployed application at context path /mvnTest
[INFO] OK - Deployed application at context path /mvnTest
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

请高手 指点
Global site tag (gtag.js) - Google Analytics