79139593

Date: 2024-10-30 03:35:58
Score: 0.5
Natty:
Report link

I don't know if this's a use for it, when I build and upload an artifact to repository, I can remove all maven dependencies needed in this project for artifact's pom.xml, but they will still exist in META-INF/../pom.xml.

In this situation, when my SpringBoot project import this artifact as a dependency, maven won't actively download it's dependencies, but I can use "maven-dependency-plugin: copy dependency" to get needed jars defined in META-INF/../pom.xml, and then include them into classpath, which will make SpringBoot jar smaller.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Leif Liu