Adding external JAR to Maven project in NetBeans

后端 未结 5 716
挽巷
挽巷 2020-12-04 22:10

When I right click on my Maven project and choose the Add dependency option and I type my external jar\'s name in query, it is not found. How to add external jar to

5条回答
  •  猫巷女王i
    2020-12-04 22:51

    one trick is in the netbeans main menu select: profile->options->java->maven put in the global execution options the parameters example: -Dfile=C:\Users\anonym\Desktop\commons-pool-1.6.jar -DgroupId=commons-pool -DartifactId=commons-pool -Dversion=1.6 -Dpackaging=jar

    where de parameter -Dfile is the location of the jar file -Dfile=routeToJar

    after that select your project. then rigth clic on the select project. and then select Run Maven->Goal. when the wizard appear type in as Goals install:install-file .. and then clic OK buttom

提交回复
热议问题