to list log4j files in a .jar (ubuntu 1404):
jar tvf target/Phoenix.jar | grep " org/apache/logging/log4j/" | tail -n +2 | cut -c 37- | tr '/' '.'
and
jar tvf target/Phoenix.jar | grep " org/apache/logging/log4j/" | tail -n +2 | cut -c 37- | tr '/' '.' | grep ".class$" | rev | cut -c 7- | rev | sort | awk '// {print "<include>" $1 "</include>"}' > tmp/log4jfiles.txt
will make a list ready for inclusion in pom.xml ... but where are you gonna get the list of necessary core-files ?
to list log4j files in a .jar (ubuntu 1404):
jar tvf target/Phoenix.jar | grep " org/apache/logging/log4j/" | tail -n +2 | cut -c 37- | tr '/' '.'
andjar tvf target/Phoenix.jar | grep " org/apache/logging/log4j/" | tail -n +2 | cut -c 37- | tr '/' '.' | grep ".class$" | rev | cut -c 7- | rev | sort | awk '// {print "<include>" $1 "</include>"}' > tmp/log4jfiles.txt
will make a list ready for inclusion in pom.xml ... but where are you gonna get the list of necessary core-files ?