2012-05-03 30 views
1

我使用Maven作爲war打包Java EE項目。作爲戰爭的Maven包:不考慮帶* .vm文件的src/main/java下的文件夾(速度模板)

我使用tomcat-maven-plugin,我只是簡單的「mvn clean tomcat deploy」。

一切工作正常,除了沒有打包到War文件中的文件夾。

此文件夾是src/main/java下的源文件夾,只有* .vm文件(不是.java文件),它們是我的Velocity模板。

有沒有辦法告訴maven打包這個文件夾! (我懷疑只有包.java文件被認爲是)

在控制檯我得到:

[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ accueil_individu --- 
[INFO] Packaging webapp 
[INFO] Assembling webapp [accueil_individu] in    [D:\DevSpring\workspace\accueil_individu\target\accueil_individu] 
[INFO] Processing war project 
[INFO] Copying webapp resources  [D:\DevSpring\workspace\accueil_individu\src\main\webapp] 
[INFO] Processing overlay [ id org.springframework.security:spring-security-samples-cas-client] 
[INFO] Webapp assembled in [1699 msecs] 
[INFO] Building war: D:\DevSpring\workspace\accueil_individu\target\accueil_individu.war 
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored 
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true') 
[INFO] 
[INFO] <<< tomcat-maven-plugin:1.1:deploy (default-cli) @ accueil_individu <<< 
[INFO] 
[INFO] --- tomcat-maven-plugin:1.1:deploy (default-cli) @ accueil_individu --- 
[INFO] Deploying war to http://pcwebapps02.ifma.fr:8080/accueil_individu 
[INFO] OK - Application déployée pour le chemin de contexte /accueil_individu 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD SUCCESS 

回答

相關問題