Just solved the Problem. Adding the following "cheat" does the job

 <preGoal name="war:war-resources">
     <ant:mkdir dir="${maven.build.dir}/classes" />
     <ant:copy toDir="${maven.build.dir}/classes">
         <ant:fileSet dir="main/src/java">
             <ant:include name="**/*.properties" />
         </ant:fileSet>
     </ant:copy>
 </preGoal>

Filip

Filip Polsakiewicz schrieb:

Thanks. But this didn't work. I remember from some ant-times that I needed to copy the resource files from the src.dir to the classes-dir before creating the war. I just don't know how to do this in maven.

Filip


Martien Huysmans schrieb:

Filip Polsakiewicz wrote:

Hi all,
I'm having trouble using the war plugin. How can I tell the plugin to include property files from src/java in the war?


Any help would be appreciated.

Thanks Filip


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


Hi Filip

I have done somthing similar by including the following in the project.xml.
This might help.


 <build>            <resources>
     <resource>
       <directory>${basedir}/src/conf</directory>
       <includes>
         <include>*.properties</include>
       </includes>
     </resource>
   </resources>
 </build>

Regards Martien

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to