Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
mvn dependency:list | grep ":.*:.*:.*" | grep -v -e "Finished at" -e "Some problems\[WARNING]" -e "Can't extract module name" -e "Flink :" | cut -d] -f2- | awk '{$1=$1};1' | cut -d ' ' -f1 | sed 's/:[a-z]*$//g' | sort -u
# 'mvn dependency:list' outputs the list of all dependencies (including transitive ones)
# 'grep ":.*:.*:.*"' looks for dependency-like lines
# 'grep -v -e "Finished at" -e "Some problems"...' excludes certain lines that are just noise
# 'cut -d] -f2-' removes [INFO] blocks from the output
# 'awk '{$1=$1};1' removes leading/trailing whitespace
# 'cut -d ' ' -f1' removes any trailing content (e.g., java 11 module information)
# 'sed 's/:[a-z]*$//g'' removes the dependency scope
# 'sort -u' sorts the output and removes duplicate entries

...