You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed a couple of things in the build scrolling by related to maven shade plugin.
I have found a somewhat cheaper and cleaner workaround to shade which removes all the manifest collisions I have ever encountered to date and is far less likely to provoke the legal team in times of open-source license reviews:
-- using the deps plugin to dump a libs dir in target/
this is cheap and lives in inner target to accompany a script classpath of
the cp using $PWD/target/classes can also be $PWD/target/* to use the maven final jar depending on if you want to edit live code and run compile, or package respectively during development. both in the same classpath is not advised.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I noticed a couple of things in the build scrolling by related to maven shade plugin.
I have found a somewhat cheaper and cleaner workaround to shade which removes all the manifest collisions I have ever encountered to date and is far less likely to provoke the legal team in times of open-source license reviews:
-- using the deps plugin to dump a libs dir in target/
this is cheap and lives in inner target to accompany a script classpath of
-cp "$PWD/target/classes:$PWD/target/lib/*" pkg.random.ClassWithMain
or in the parent pom with undefined specificity:
the cp using
$PWD/target/classes
can also be$PWD/target/*
to use the maven final jar depending on if you want to edit live code and run compile, or package respectively during development. both in the same classpath is not advised.Beta Was this translation helpful? Give feedback.
All reactions