It would b ebetter to introduce the file onto the classpath for the
tool through whatever plugin you are using from a different location
if possible.

If you must exclude it from the JAR:
http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#excludes

Cheers,
Brett

2008/10/10 stug23 <[EMAIL PROTECTED]>:
>
> I need to have persistence.xml file on the classpath in order to perform DDL
> generation using the Hibernate Tool hbm2ddl.
>
> However I don't want the persistence.xml file to be included in the jar
> file.
>
> How can I exclude persistence.xml from the jar file even though it needs to
> be on the classpath earlier in the lifecycle?
>
> TIA
> --
> View this message in context: 
> http://www.nabble.com/How-do-I-exclude-an-xml-file-from-a-jar--tp19902363p19902363.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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

Reply via email to