2017-07-26 24 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> 
相關問題