室内设计网站图片,济宁亿蜂网站建设,百度百度一下一下,查询建筑资质的网站前言
使用外部手动添加的jar到项目#xff0c;打包时出现jar找不到问题解决
处理
例如项目结构如下 引入方式换成这种 !-- 除了一下这两种引入外部jar#xff0c;还是可以将外部jar包添加到maven中#xff08;百度查#xff09;--!-- pdf转word --…前言
使用外部手动添加的jar到项目打包时出现jar找不到问题解决
处理
例如项目结构如下 引入方式换成这种 !-- 除了一下这两种引入外部jar还是可以将外部jar包添加到maven中百度查--!-- pdf转word --dependencygroupIdcom.aspose/groupIdartifactIdaspose-pdf/artifactIdversion22.5/versionscopesystem/scopesystemPath${project.basedir}/lib/aspose-pdf-22.5.cracked.jar/systemPath/dependency!-- excel转pdf --dependencygroupIdcom.external/groupIdartifactIdaspose-cells/artifactIdversion8.5.2/versionscopesystem/scopesystemPath${project.basedir}/lib/aspose-cells-8.5.2.jar/systemPath/dependency这里打包war生成的jar会在lib-provided所以要指定不然就算打包成功也会报错找不到类的 buildplugins!-- 打包外部jar需要--plugingroupIdorg.springframework.boot/groupIdartifactIdspring-boot-maven-plugin/artifactIdconfigurationincludeSystemScopetrue/includeSystemScope/configuration/plugin!-- 打包war防止上面引入的本地jar添加到 lib-provided 文件夹中而读取不了--plugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-war-plugin/artifactIdconfigurationwebResourcesresourcedirectory${project.basedir}/lib/directorytargetPathWEB-INF/lib//targetPathincludesinclude**/*.jar/include/includes/resource/webResources/configuration/plugin/plugins/build这样打包后即可
你也可以将这些jar包添加到本地maven然后正常引入 如参考博客 1参考https://blog.csdn.net/qq_33610816/article/details/121230093 2参考https://cloud.tencent.com/developer/article/2225546?areaSource102001.5traceIdqhV21ynId-ZXtcVdb5DYN