openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helge Waastad <he...@waastad.org>
Subject Re: Meecrowave and gradle
Date Thu, 06 Jun 2019 07:52:54 GMT
Right now I'm doing exclusion by path, but investigating the difference
between shadow/mvn shade.
a lot of deps from cxf-rt-frontend seems to be added.
Sure, once I'm satisfied .-)
/hw

on., 05.06.2019 kl. 22.32 +0200, skrev Romain Manni-Bucau:
> Did you port the excludes as well?
> Btw if you want to PR the doc on the website to add it would be
> welcomed ;)
> Le mer. 5 juin 2019 à 22:20, Helge Waastad <helge@waastad.org> a
> écrit :
> > Just an update.
> > I needed to implement the OpenWebBeansPropertiesTransformerin my
> > gradle build.
> > It's working now, but it seems to be some work left to trim down
> > the jar. Currently I'm ~4M larger than the maven version.
> > /hw
> > on., 05.06.2019 kl. 10.50 +0200, skrev Romain Manni-Bucau:
> > > Hi Helge,
> > > Meecrowave supports shadowing but as explained on the maven page
> > > documenting how to do a fat jar with shade plugin (no need to
> > > build a capsule ;)) - 
> > > http://openwebbeans.apache.org/meecrowave/meecrowave-maven/index.html
> > >  (the end) - it requires to use custom transformers for cxf,
> > > openwebbeans, log4j2 (until you exclude it) etc...
> > > 
> > > If you do the same with shadowing plugin - transformers API was
> > > copied from shade plugin so it should be trivial to port them
> > > over - then the shadowing will work.
> > > 
> > > Romain Manni-Bucau
> > > @rmannibucau |  Blog | Old Blog | Github | LinkedIn | Book
> > > 
> > > Le mer. 5 juin 2019 à 10:48, Helge Waastad <helge@waastad.org> a
> > > écrit :
> > > > Hi,
> > > > I've been running meecrowave and maven (and capsule-maven-
> > > > plugin) to make a fat jar.
> > > > 
> > > > However in my quest to use Gradle I'm struggling to get
> > > > shadowing working for Meecrowave.
> > > > 
> > > > running jar:
> > > > Caused by: java.lang.NullPointerException
> > > > 	at
> > > > org.apache.meecrowave.tomcat.MeecrowaveContextConfig.webConfig(
> > > > MeecrowaveContextConfig.java:111)
> > > > 	at
> > > > org.apache.catalina.startup.ContextConfig.configureStart(Contex
> > > > tConfig.java:768)
> > > > 	at
> > > > org.apache.catalina.startup.ContextConfig.lifecycleEvent(Contex
> > > > tConfig.java:301)
> > > > 	at
> > > > org.apache.meecrowave.tomcat.MeecrowaveContextConfig.lifecycleE
> > > > vent(MeecrowaveContextConfig.java:165)
> > > > 	at
> > > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Lifec
> > > > ycleBase.java:123)
> > > > 	at
> > > > org.apache.catalina.core.StandardContext.startInternal(Standard
> > > > Context.java:5034)
> > > > 	at
> > > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java
> > > > :183)
> > > > 
> > > > 
> > > > Does anyone have an example for a gradle build and Meecrowave?
> > > > 
> > > > /hw
> > > > 
> > > > 
> > > > 
> > > > -- 
> > > > Helge Waastad
> > > > - The Undelstad Cup Champion 2017

Mime
View raw message