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 Wed, 05 Jun 2019 20:19:52 GMT
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(Meec
> > rowaveContextConfig.java:111)
> > 	at
> > org.apache.catalina.startup.ContextConfig.configureStart(ContextCon
> > fig.java:768)
> > 	at
> > org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextCon
> > fig.java:301)
> > 	at
> > org.apache.meecrowave.tomcat.MeecrowaveContextConfig.lifecycleEvent
> > (MeecrowaveContextConfig.java:165)
> > 	at
> > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Lifecycle
> > Base.java:123)
> > 	at
> > org.apache.catalina.core.StandardContext.startInternal(StandardCont
> > ext.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