2017-07-26 44 views
0

哪个maven pom.xml属性必须定义webcontent(如xhtml页面和css,js,图像资源)? ps:我正在使用eclipse IDE。哪个maven pom.xml属性必须定义webcontent项目?

+0

你是什么意思?你为什么要在pom.xml中定义它? –

+0

因为当我做'运行构建'时,生成的war文件不包含我的xhtml页面和其他web资源。 – BicaBicudo

+0

显示您的项目结构和pom。 –

回答

0
<plugin> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-war-plugin</artifactId> 
     <configuration> 
      <webappDirectory> ${basedir}/target/resources </webappDirectory> 
相关问题