Hi there,
I dont think you can do that with war plugin. But you can use assembly
plugin to create a source distribution and a binary distribution for
your project
Please refer to these sites for more info
http://maven.apache.org/guides/mini/guide-assemblies.html
http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
regards,
-allan
Venkat Muthusamy wrote:
Hi,
I like to know how to include java source files in a maven build war file.
I am building a sample WAR application. I like to distribute the WAR file
along with source files.
If I use 'warSourceDirectory' option in web.xml then it is not copying my
web.xml to the target from webapp directory. I follow maven's default
directory structures.
appName
------- src
---- main
----java
----resources
----webspp
----target
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0-beta-2</version>
<configuration>
<!-- <warSourceDirectory>src/main/java</warSourceDirectory>
-->
<!-- <includes>*.java</includes> -->
</configuration>
</plugin>
</plugins>
Thanks in advance.
Venkat M
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.12/193 - Release Date: 12/6/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]