If you look into the $MAVEN_HOME/plugins/maven-jar-plugin-1.0/plugin.jelly file, you'll find this:
--- <goal name="jar:jar" description="Create the deliverable jar file." prereqs="test:test"> <ant:available property="maven.jar.manifest.available" file="${maven.jar.manifest}"/> <!-- See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html --> <!-- See http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html --> <ant:jar jarfile="${maven.build.dir}/${maven.final.name}.jar" basedir="${maven.build.dest}" index="true" excludes="${maven.jar.excludes}"> --- So, seemingly, you can set the "maven.jar.excludes" variable and will get what you want. [excludes="${maven.build.dest}/config/**"] /You can find this documented on the jar plugin properties page, too: http://maven.apache.org/reference/plugins/jar/properties.html, but sometimes looking into the source is faster./ incze On Thu, Jun 05, 2003 at 03:20:37AM -0400, Verma, Nitin (GECP, OTHER, 529706) wrote: > Anyone any help? > > -----Original Message----- > From: Verma, Nitin (GECP, OTHER, 529706) > Sent: Wednesday, June 04, 2003 9:56 PM > To: Maven Users List > Subject: How to exclude files in jar but not in target/classes dir > > > > Hi All, > > This is what I need:- > > Source:- > java/src/config/** > java/src/my/** > Classes:- > targer/classes/config/** > targer/classes/my/** > Jar:- > my-1.1.jar!my/** > > I load "config.resource" and need it to be outside jar. > > I would use the jar as follows:- > > WEB-INF/classes/config/** > WEB-INF/lib/my-1.1.jar > > So having config inside my jar will mess-up my appliaction. > And if I don't have targer/classes/config/** my tests will > fail. > > Regards, > > Nitin > > --------------------------------------------------------------------- > 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]