Ok, that does make it a little more flexible, but the neat thing about skinnyWars is that entire dependency trees are pruned. I think it will be easier to use provided scoped dependencies than having to come up with a regexp that matches 180 jars and does not match the other jars (other than listing them all).
On Tue, Nov 18, 2014 at 8:21 PM, Fred Bricon <[email protected]> wrote: > The JBoss server adapters, since JBoss Tools 4.2, support regexps in > packagingExclude. See [1] and [2] > > [1] > http://maven.apache.org/plugins/maven-war-plugin/examples/including-excluding-files-from-war.html > [2] https://issues.jboss.org/browse/JBIDE-12821 > > On Tue, Nov 18, 2014 at 2:02 PM, Emond Papegaaij < > [email protected]> wrote: > >> But that would exclude all libs, right? Unfortunately, that's not an >> option, because some of the dependencies must stay inside the war to >> prevent conflicts with other deployments. For example, one of the wars >> still bundles its own cxf version, which requires me to disable the jaxws >> subsystem for that deployment. Moving those jars to the ear, would require >> me to disable jaxws entirely. I think I've got no option but to go for the >> provided scope approach, even though this will create a maintenance >> nightmare. >> >> Best regards, >> Emond Papegaaij >> >> On Tue, Nov 18, 2014 at 4:20 PM, Fred Bricon <[email protected]> wrote: >> >>> Skinny wars are not supported directly in m2e-wtp. I started to look at >>> it recently and it appears this will require changes in upstream WTP >>> projects. So I definitely can't give any ETA on that. >>> >>> However, since you're using JBoss servers, you can simply use < >>> packagingExcludes>WEB-INF/lib/*</packagingExcludes> in your war >>> pom.xml. You'll probably need to remove your project from the server, >>> clean, and add it back for it to work >>> >>> On Tue, Nov 18, 2014 at 9:41 AM, Emond Papegaaij < >>> [email protected]> wrote: >>> >>>> Skinnywars is meant to be used without making all dependencies provided. >>>> Marking 180 jars as provided, in an application with almost 50 modules >>>> is >>>> almost impossible to get right. Also, I want to build different ears >>>> with the >>>> same wars but with different dependencies. That's impossible when these >>>> dependencies are scoped provided. >>>> >>>> Best regards, >>>> Emond Papegaaij >>>> >>>> On Tuesday, November 18, 2014 03:33:49 PM Rafał Krzewski wrote: >>>> > I'm using skinny wars with M2E-WTP and JBoss 7 and 8 without problems. >>>> > One thing you should pay attention to is adding JAR dependencies to >>>> WARs >>>> > with "provided" scope, which prevents them from being packaged into >>>> > WEB-INF/lib. >>>> > >>>> > Cheers, >>>> > Rafał >>>> > >>>> > On 11/18/2014 02:59 PM, Emond Papegaaij wrote: >>>> > > Hi, >>>> > > >>>> > > I'm trying to setup a project that depends heavily on the skinnyWars >>>> > > feature of the maven-ear-plugin: >>>> > > >>>> http://maven.apache.org/plugins/maven-ear-plugin/examples/skinny-wars.htm >>>> > > l . The war has over 200 dependencies, of which about 180 have to >>>> be moved >>>> > > to the ear. When I deploy this ear to WildFly from Eclipse, the >>>> jars are >>>> > > not removed from the war. They end up in the deployment twice (both >>>> in >>>> > > the ear and the war). This results in all kinds of deployment >>>> errors. An >>>> > > ear built from the commandline, does not have this problem. >>>> > > >>>> > > All I could find about this is >>>> > > https://issues.sonatype.org/browse/MECLIPSEWTP-222 , but this >>>> project >>>> > > seems to be abandoned. Is skinnyWars support known to be broken, or >>>> did I >>>> > > do something wrong? >>>> > > >>>> > > Best regards, >>>> > > Emond Papegaaij >>>> > > _______________________________________________ >>>> > > m2e-users mailing list >>>> > > [email protected] >>>> > > To change your delivery options, retrieve your password, or >>>> unsubscribe >>>> > > from this list, visit >>>> https://dev.eclipse.org/mailman/listinfo/m2e-users >>>> > >>>> > _______________________________________________ >>>> > m2e-users mailing list >>>> > [email protected] >>>> > To change your delivery options, retrieve your password, or >>>> unsubscribe from >>>> > this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-users >>>> >>>> _______________________________________________ >>>> m2e-users mailing list >>>> [email protected] >>>> To change your delivery options, retrieve your password, or unsubscribe >>>> from this list, visit >>>> https://dev.eclipse.org/mailman/listinfo/m2e-users >>>> >>> >>> >>> >>> -- >>> "Have you tried turning it off and on again" - The IT Crowd >>> >>> _______________________________________________ >>> m2e-users mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://dev.eclipse.org/mailman/listinfo/m2e-users >>> >> >> >> _______________________________________________ >> m2e-users mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/m2e-users >> > > > > -- > "Have you tried turning it off and on again" - The IT Crowd > > _______________________________________________ > m2e-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/m2e-users >
_______________________________________________ m2e-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-users
