Difference between maven scope compile and provided for JAR packaging

后端 未结 7 1781
忘掉有多难
忘掉有多难 2020-11-22 14:44

What is the difference between the maven scope compile and provided when artifact is built as a JAR? If it was WAR, I\'d understand - the artifact

相关标签:
7条回答
  • 2020-11-22 15:36

    If jar file is like executable spring boot jar file then scope of all dependencies must be compile to include all jar files.

    But if jar file used in other packages or applications then it does not need to include all dependencies in jar file because these packages or applications can provide other dependencies themselves.

    0 讨论(0)
提交回复
热议问题