Why dependencies do not accompany the made package by Maven?

前端 未结 3 2017
悲哀的现实
悲哀的现实 2021-01-27 06:40

I\'ve followed the simplest maven example and made the following pom.xml file:



        
3条回答
  •  误落风尘
    2021-01-27 07:35

    By default, jar doesn't include dependencies within it. You either need to add all dependencies in classpath at run time or you can build jar with dependencies. For building jar with dependencies see link: http://maven.apache.org/plugins/maven-assembly-plugin/

提交回复
热议问题