百度开放云制作网站,广州那家做网站最好,企业网站的特点是什么,网站开发项目答辩主持词Maven项目引入第三方jar包到问题处理 背景:1. 下载jar包,通过maven命令手动安装到本地maven仓库2. jar放到项目路径下,通过pom直接引用 背景:
开发中会遇到需要使用第三方依赖的时,第三方依赖在中央仓库没有,解决方法
1. 下载jar包,通过maven命令手动安装到本地maven仓库
mv… Maven项目引入第三方jar包到问题处理 背景:1. 下载jar包,通过maven命令手动安装到本地maven仓库2. jar放到项目路径下,通过pom直接引用 背景:
开发中会遇到需要使用第三方依赖的时,第三方依赖在中央仓库没有,解决方法
1. 下载jar包,通过maven命令手动安装到本地maven仓库
mvn install:install-file -DgroupIdcom.aspose -DartifactIdaspose-words -Dversion18.2.0 -Dpackagingjar -Dfileaspose-words-18.2.0-jdk16.jar-DgroupIdpom.xml中groupId
-DartifactIdpom.xml中artifactId
-Dversionpom.xml中0.0.1-SNAPSHOT
-Dpackagingjar或war包的后缀名
-Dfile包的本地真实地址需要在jar所在的目录下执行该命令否则会找不到pom
!-- https://mvnrepository.com/artifact/com.aspose/aspose-words --dependencygroupIdcom.aspose/groupIdartifactIdaspose-words/artifactIdversion18.2/version/dependency2. jar放到项目路径下,通过pom直接引用 dependencygroupIdcom.aspose/groupIdartifactIdaspose-words/artifactIdversion18.2/versionscopesystem/scopesystemPath${project.basedir}/src/main/resources/lib/aspose-words-18.2-jdk16.jar/systemPath
/dependencysystemPath指定了引用jar包所在的位置${project.basedir}指定是在当前项目下。
linux环境下还需要做如下配置 buildpluginsplugingroupIdorg.springframework.boot/groupIdartifactIdspring-boot-maven-plugin/artifactIdconfiguration!--微服务模式下修改为true,跳过此打包插件否则微服务模块无法引用--skipfalse/skip/configuration/plugin/plugins!--配置resource信息解决linux环境下依赖jar包打入项目jar的BOOT-INF位置问题 -- resourcesresourcedirectorysrc/main/java/directoryincludesinclude**/*/include/includes/resourceresourcedirectorysrc/main/resources/directoryincludesinclude**/*/include/includes/resourceresourcedirectorysrc/main/resources/directorytargetPathBOOT-INF//targetPathincludesinclude/lib/*.jar/include/includes/resource/resources/build