Should be something along: <plugin> <groupId>org.apache.openwbebeans</groupId> <artifactId>openwebbeans-maven-plugin</artifactId> <version>{snapshot}</version> <executions> <execution> <id>scan</id> <phase>process-classes</phase> <goals><goal>scan</goal></goal> <configuration><!-- you can adjust dependencies includes/excludes --></configuration> </execution> </executions> </plugin>
Then at runtime, ensure to have owb snapshot and a scanner extending the abstract metadata one. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le lun. 7 déc. 2020 à 10:09, Thomas Andraschko <andraschko.tho...@gmail.com> a écrit : > Could you give me a sample config how to try it? > We have a big webapp with many many jar-dependencies which will be scanned. > > Am Sa., 5. Dez. 2020 um 21:16 Uhr schrieb Romain Manni-Bucau < > rmannibu...@gmail.com>: > > > Hi everyone, > > > > Did a quick scan mojo (+ its integration in our base scanner): > > https://github.com/apache/openwebbeans/tree/rmannibucau/scan-mojo > > > > It is usable but mainly a prototype for now. > > If you have some time on real apps - and tunning a bit the plugin to not > > scan the world (;)), can you test it on your apps to see if we have some > > benefit not opening the jars to scan and just load classes from a pre > > scanned mode. > > > > On my test app different was literally almost 0 so I'm tempted to not add > > it at all but wonder if on big apps it can help. > > > > Potential future would be to cut more scanning but I'm quite disappointed > > by the perf result with such a solution on my apps (ok I already trimmed > > down a lot the scanning but still, expected some 100ms of improvement). > > > > Feedback welcomed to know if it is worth keeping it or not. > > > > Romain Manni-Bucau > > @rmannibucau <https://twitter.com/rmannibucau> | Blog > > <https://rmannibucau.metawerx.net/> | Old Blog > > <http://rmannibucau.wordpress.com> | Github < > > https://github.com/rmannibucau> | > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book > > < > > > https://www.packtpub.com/application-development/java-ee-8-high-performance > > > > > >