How to add local jar files to a Maven project?

后端 未结 30 4233
悲&欢浪女
悲&欢浪女 2020-11-21 04:58

How do I add local jar files (not yet part of the Maven repository) directly in my project\'s library sources?

30条回答
  •  天命终不由人
    2020-11-21 05:18

    In Apache Maven 3.5.4, I had to add double quotation. Without double quotation it wasn't worked for me.

    example: mvn install:install-file "-Dfile=location to the jar file" "-DgroupId=group id" "-DartifactId=artifact id" "-Dversion=version" "-Dpackaging=package type"

提交回复
热议问题