今天测试时,服务器上面的项目有问题,就重新打包了,第一打包成功,通过FTP工具上传到服务器上面,但是到第二次时,一直报错,看了日志没有啥,后来问了同事,才知道,maven对这个目录有保护,FTP打开了这个目录,因此打包才不成功的,把FTP工具关掉,重新打包,就可以了。问题终于找到了 ,记录一下。
以下是错误的日志
[WARNING] The requested profile "test" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project stcs-monitor: Failed to clean project: Failed to delete C:\Users\Administrator\workspace\stcs-monitor\target -> [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
未来已来,将至已至。
如果你觉得本篇文章对你有所帮助,请支持作者哦