Class file from a external jar not found during maven build? [duplicate]

僤鯓⒐⒋嵵緔 提交于 2019-12-04 10:36:57

You need to install your external jar in local repository in following way:

mvn install:install-file -Dfile=c:\kaptcha-{version}.jar -DgroupId=com.google.code -DartifactId=kaptcha -Dversion={version} -Dpackaging=jar

and add the following dependency in pom:

<dependency>
      <groupId>com.google.code</groupId>
      <artifactId>kaptcha</artifactId>
      <version>2.3</version>
 </dependency>

Please replace the values of your external jar for c:\kaptcha-{version}.jar.

Build again and tell me the result.

You may also look at http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!