Maven 2.x JBoss Packaging Plugin

Strip META-INF/**.xml files

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    3

Description

The JBoss JARDeployer rejects all jars containing META-INF/**.xml files. Since jars created using maven by default contain a Maven and contain a META-INF/maven/<groupId>/<artifactId>/pom.xml file, all those JARs are rejected during deployment and thus excluded from the classpath.

The attached patch fixes this problem by filtering/skipping all META-INF/**.xml files during SAR assembly.

  1. AbstractSarMojo.patch
    24/Apr/06 6:13 AM
    3 kB
    Jörg Henne
  2. AbstractSarMojo.patch
    21/Apr/06 12:40 PM
    3 kB
    Jörg Henne
  3. jorgs.patch
    17/Aug/06 11:02 PM
    3 kB
    Alex Karasulu

Activity

Hide
Alex Karasulu added a comment -

Trying to apply your patch but I keep getting this:

[akarasulu@newton sar]$ patch -p0 < AbstractSarMojo.patch
(Stripping trailing CRs from patch.)
patch: **** File . is not a regular file – can't patch

Did you generate this patch with svn diff?

Show
Alex Karasulu added a comment - Trying to apply your patch but I keep getting this: [akarasulu@newton sar]$ patch -p0 < AbstractSarMojo.patch (Stripping trailing CRs from patch.) patch: **** File . is not a regular file – can't patch Did you generate this patch with svn diff?
Hide
Jörg Henne added a comment -

I created it using the subversive eclipse plugin. Here is one that hopefully works better. Sorry.

Show
Jörg Henne added a comment - I created it using the subversive eclipse plugin. Here is one that hopefully works better. Sorry.
Hide
Alex Karasulu added a comment -

Jorg I took your patch and hand edited the file by reading your patch. I could never get it to work. Hopefully this is good enough for someone to apply it. I used to have access to this repo but I lost me ssh key on another machine to beaver. I'll ask the codehaus guys to hook me up again.

Show
Alex Karasulu added a comment - Jorg I took your patch and hand edited the file by reading your patch. I could never get it to work. Hopefully this is good enough for someone to apply it. I used to have access to this repo but I lost me ssh key on another machine to beaver. I'll ask the codehaus guys to hook me up again.
Hide
Alex Karasulu added a comment -

I applied your patch. Found how to reset my codehaus password .

Show
Alex Karasulu added a comment - I applied your patch. Found how to reset my codehaus password .
Hide
Paul Gier added a comment -

Since the patch was applied, can this issue be closed now?

Show
Paul Gier added a comment - Since the patch was applied, can this issue be closed now?
Hide
Elifarley Callado Coelho added a comment -

This was a JBoss bug. See here:

http://jira.jboss.org/jira/browse/JBAS-2949

It's already been fixed.

Show
Elifarley Callado Coelho added a comment - This was a JBoss bug. See here: http://jira.jboss.org/jira/browse/JBAS-2949 It's already been fixed.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: