在使用maven新建的web项目中,执行

【maven   报错】maven项目执行maven  install时报错Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)

 

执行如上的这两个操作,报错:

 1 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project bioligyInfo: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre1.8.0_73\..\lib\tools.jar -> [Help 1]
 2 [ERROR] 
 3 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
 4 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 5 [ERROR] 
 6 [ERROR] For more information about the errors and possible solutions, please read the following articles:
 7 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
 8 
 9 
10 
11 
12 
13 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project bioligyInfo: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
14 [ERROR] 
15 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
16 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
17 [ERROR] 
18 [ERROR] For more information about the errors and possible solutions, please read the following articles:
19 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
View Code

相关文章:

  • 2022-12-23
  • 2021-06-14
  • 2022-02-06
  • 2021-04-03
  • 2021-11-17
  • 2022-12-23
  • 2022-01-09
  • 2021-09-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-02-10
  • 2022-12-23
相关资源
相似解决方案