You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by stug23 <pa...@gmail.com> on 2008/10/09 18:21:01 UTC
How do I exclude an xml file from a jar?
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How do I exclude an xml file from a jar?
Posted by Brett Porter <br...@gmail.com>.
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 <pa...@gmail.com>:
>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Brett Porter
Blog: http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org