Hi Kapil,
In your build section define on the following format:
<build>
<resources>
<resource>
<directory>doc</directory> <!-- a directory on the same level
as your pom -->
<excludes>
<exclude>configuration.txt</exclude> <!-- a file in doc
directory to exclude from the JAR file -->
<exclude>sql_create_mySQL.txt</exclude>
<exclude>sql_populate_mySQL.txt</exclude>
</excludes>
</resource>
</resources>
....
<build>
-Martin Börlin
>----Ursprungligt meddelande----
>Från: [EMAIL PROTECTED]
>Datum: 2006-09-20 08:22:11
>Till: "Maven Users List"<[email protected]>
>Ärende: how to exclude txt file from source?
>
>Hi,
>
>How can I exclude a txt file lying in java source folder while
packaging
>jar file. The same thing can be done using filtering to exclude a
file
>from resources folder but I could not find any documentation on
>excluding a file from source folder.
>
>Regards
>
>Kapil
>
>
>
>CONFIDENTIALITY NOTICE
>This e-mail transmission and any documents, files, or previous e-mail
>messages appended or attached to it, may contain information that is
>confidential or legally privileged. If you are not the intended
>recipient, or a person responsible for delivering it to the intended
>recipient, you are hereby notified that you must not read this
>transmission and that any disclosure, copying, printing,
distribution,
>or use of the information contained or attached to this transmission
is
>STRICTLY PROHIBITED. If you have received this transmission in error,
>please immediately notify the sender by telephone +91.172.229.9450 or
>return e-mail message [EMAIL PROTECTED]
><BLOCKED::mailto:[EMAIL PROTECTED]> and delete the original
>transmission, its attachments, and any copies without reading or
saving
>in any manner. Thank you.
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]