Not sure about that, but the META-INF stuff shouldn't be in src/main/ java, but rather in src/main/resources, at which point it will automatically be put into the .jar. Not sure why what you're doing is messing things up, but it's certainly against recommended practice for the maven plugins involved.

i think what's happening is that you're overriding where reosurces are pulled from, which means it's no longer pulling anythign from src/main/ resources/. I think if you did this:

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

but the "right" way to do it would be to put your META-INF stuff in your resources folder, not your java folder.

Christian.

On 10-Mar-08, at 15:18 , Filip S. Adamsen wrote:

That would be a Maven bug, if anything.

-Filip

Marcelo Lotif skrev:
Hi all,
I was trying to add some files to META-INF folder putting this code into my
pom.xml:
<build>
<resources>
    <resource>
           <targetPath>META-INF</targetPath>
           <directory>src/main/java/META-INF</directory>
     </resource>
</resources>
...
</build>
To deploy it to tomcat, I'm generating a .war file using the "mvn package" command. Ok, this will add the files into the META-INF folder, but i also
noticed that this way the .tml files are not added to the jar file!
This is a bug? Should i fire a JIRA?
Regards,
Marcelo Lotif

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