[ http://jira.codehaus.org/browse/MPWAR-30?page=comments#action_44027 ]
Brill Pappin commented on MPWAR-30: ----------------------------------- I remember asking for this a while back. In my case I wanted to be able to get package information (build/revision, company etc) when an exception occured in a webapp. In the end I had to use a rather ugly custom solution to do it. I don't actually think it's against the "Maven Way"... it just makes the WAR a little cleaner and allows the use of the java.lang.Package class to actually get information about the class in question (it mostly uses the manifest). It also makes deploying hot-fixes simple as you only need to replace on jar file. I see this as a simple property, off be default that will tell the war plugin to bundle it all up in a jar and copy that instead of simply sending all the raw classes to /target/webapp/WEB-INF/classes... in fact even though its adding another operation to the war goal, it *might* make it faster as a copy tends to be slow. Anyway, I've added another vote for it, and hope to see it in the future. > [PATCH] Option to pack project classes inside a JAR into WEB-INF/lib > -------------------------------------------------------------------- > > Key: MPWAR-30 > URL: http://jira.codehaus.org/browse/MPWAR-30 > Project: maven-war-plugin > Type: New Feature > Versions: 1.7 > Reporter: Felipe Leme > Assignee: Felipe Leme > Attachments: maven_war_usesJar.patch > > Original Estimate: 1 hour > Remaining: 1 hour > > The way the plugin works now, the project classes are packed under > WEB-INF/classes. It would be nice if the plugin used the project's JAR > instead, packing it under WEB-INF/lib. That feature would be really useful > when the war is a secondary package for the project (for instance, when the > main artifact is a JAR containg a taglib). > I'm providing a patch for this change - if there is interest in applying it, > I can write some test cases too. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]