为什么抛出JSP文件不存在异常

时间:2018-11-25 13:27:43

标签: java maven jsp intellij-idea

为什么即使将WebContent设置为Resource后它仍然失败?

This solution没有帮助

enter image description here

enter image description here

enter image description here

[INFO] --- maven-war-plugin:2.2:war (default-war) @ ESWebApp ---
[INFO] Packaging webapp
[INFO] Assembling webapp [ESWebApp] in 
[/Users/alim/practice/ElasticSearchAutoComplete/webApp-api/target/webapp-api]
[INFO] Processing war project
[INFO] Copying webapp webResources 
[/Users/alim/practice/ElasticSearchAutoComplete/webApp-api/WebContent\WEB-INF\pages] to 
[/Users/alim/practice/ElasticSearchAutoComplete/webApp-api/target/webapp-api]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.863 s
[INFO] Finished at: 2018-11-25T21:17:49+08:00
[INFO] Final Memory: 25M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project ESWebApp: Could not copy resource 
[/Users/alim/practice/ElasticSearchAutoComplete/webApp-api/WebContent\WEB-INF\pages]: File /Users/alim/practice/ElasticSearchAutoComplete/webApp-api/WebContent\WEB-INF\pages/autocomplete.jsp does not exist -> [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

请看看。

预先感谢

0 个答案:

没有答案