Issue Details (XML | Word | Printable)

Key: MOJO-377
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Jörg Henne
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Mojo

Strip META-INF/**.xml files

Created: 21/Apr/06 12:40 PM   Updated: 28/Mar/08 02:22 PM   Resolved: 14/Mar/08 04:08 AM
Return to search
Component/s: jboss-packaging-maven-plugin
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File AbstractSarMojo.patch (3 kB)
2. Text File AbstractSarMojo.patch (3 kB)
3. Text File jorgs.patch (3 kB)


Complexity: Intermediate


 Description  « Hide

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.



Alex Karasulu added a comment - 21/Apr/06 02:29 PM

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?


Jörg Henne added a comment - 24/Apr/06 06:13 AM

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


Jörg Henne made changes - 24/Apr/06 06:13 AM
Field Original Value New Value
Attachment AbstractSarMojo.patch [ 20232 ]
Alex Karasulu added a comment - 17/Aug/06 11:02 PM

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.


Alex Karasulu made changes - 17/Aug/06 11:02 PM
Attachment jorgs.patch [ 22313 ]
Alex Karasulu added a comment - 17/Aug/06 11:23 PM

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


Paul Gier added a comment - 13/Mar/08 05:46 PM

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


Jörg Henne made changes - 14/Mar/08 04:08 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Elifarley Callado Coelho added a comment - 28/Mar/08 02:22 PM

This was a JBoss bug. See here:

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

It's already been fixed.