将开源博客模板导入Eclipse并发布到Tomcat时猫前面有个"!"

  昨天下了一个博客模板,导入到MyEclipse发布到Tomcat时会出现下的窗口:


Deployment failure on Tomcat  6.x. Could not copy all resources to D:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\BlogOnline. If a file is locked, you can wait until the lock times out to
redeploy, or stop the server and redeploy, or manually remove the deployment at D:\Program Files\Apache
Software Foundation\Tomcat 6.0\webapps\BlogOnline

 

点击Redeploy后会出现:


可能因为开源项目用的是Ant工具来构建的,在构建路径选项中会出现如下好多图标带 "!" ,

解决方法:把所有 "!" 的包选中后 Remove 掉,再部署时就可以了.


 

你可能感兴趣的:(apache,eclipse,tomcat,MyEclipse,ant)