Jakob,

Presuming your TLDs are in src/main/tld, you can add the following to your POM build section:

<resources>
  <resource>
     <directory>src/main/tld</directory>
     <targetPath>META-INF</targetPath>
  </resource>
</resources>

See http://maven.apache.org/maven-1.x/using/resources.html for more info on resources. Even though it's a Maven 1.x doc, I'm fairly certain it applies to m2 as well.

HTH,
Doug

Jakob Vad Nielsen wrote:

Hi,

I try to use maven for building a jar package. When building with ant I
include all the tld-files in the project into META-INF with the ant
target:

<metainf dir="${tlddir}">
  <include name="*.tld"/>
</metainf>

Maven only includes the class files from the project.

Is there a way to make maven 1.x include the tld files as well as the
class files into the jar file?


/Jakob

---------------------------------------------------------------------
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]

Reply via email to