> On Jun 10, 2020, at 7:58 PM, David Blevins <[email protected]> wrote:
> 
> I've gone ahead and created us a new repo and seeded it with the bytecode 
> scanning/transformation code that I've been working on to Scan/Transform 
> Maven Central.
> 
> - 
> https://github.com/apache/tomee-patch-plugin/commit/2a06d9f081c1db05164286db9149ba17c30754dc
> 

Ok, this is still a work in progress, but here's an early draft PR.

 - https://github.com/apache/tomee/pull/662

Effectively what the plugin will (hopefully) allow us to do is put a source 
file in like this one:

 - 
https://github.com/apache/tomee/pull/662/commits/c3474501b484cf7b6eee42da7d86635945eb45ee

Then make the modifications you need:

 - 
https://github.com/apache/tomee/pull/662/commits/5385ce29cd68333224abedd97e2a75b59baf951f

And the plugin will compile that class against the libraries in your zip and 
then it will find in the zip where that class lived and replace it.  It does 
this recursively so it can find them in nested jars.

The compile totally works -- code lifted from the Maven Compile Plugin, but 
with the classpath built from the zip

Still some tweaks to do on getting the replacement into the jar, but so far is 
looking really promising.

The main goal was that any modifications we make to java files could be tracked 
in the same TomEE branch that needs them.


-David


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to