maven工程经常回遇到引用外部jar包,需要先安装在jar包,然后再在工程中pom.xml文件中添加依赖。

示例:

命令行中运行:

mvn install:install-file -Dfile=E:\SVN\roadtask\src\main\webapp\WEB-INF\lib\smartupload.jar -DgroupId=org.smartupload -DartifactId=smartupload -Dversion=1.0 -Dpackaging=jar

pom.xml中添加:

<dependency>
<groupId>org.smartupload</groupId>
<artifactId>smartupload</artifactId>
<version>1.0</version>
</dependency>

 

相关文章:

  • 2021-10-06
  • 2022-12-23
  • 2022-01-28
  • 2021-09-13
  • 2022-12-23
  • 2021-08-24
猜你喜欢
  • 2022-01-21
  • 2022-12-23
  • 2021-12-26
  • 2021-11-07
  • 2021-06-11
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案