Add the required directory as a resource in your pom.xml file.
Eg:
<build>
<resources>
<resource>
<directory>src/main/config</directory>
</resource>
</resources>
:
:
:
</build>
-----Original Message-----
From: fy [mailto:[EMAIL PROTECTED]
Sent: Monday, January 08, 2007 3:20 PM
To: [email protected]
Subject: How package a file into *.jar/META-INF /
Hi,
I have a webapp project,and I have two files in src/main/config ,now I
want
package these files into ejb.jar/META-INF when I execute mvn jar:jar .
This is my pom.xml :
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<classesDirectory>target/classes</classesDirectory>
<finalName>ejb</finalName>
<outputDirectory>F:\jboss-4.0.4.GA\server\maven\deploy</outputDirectory>
</configuration>
</plugin>
what I need to add ? how I to do?
--
View this message in context:
http://www.nabble.com/How-package-a-file-into-*.jar-META-INF---tf2938316
s177.html#a8215025
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]