码上敲享录 > maven开发经验分享 > pom.xml的scope为system的jar打包不进去的问题

pom.xml的scope为system的jar打包不进去的问题

上一章章节目录 2022-09-25已有1239人阅读 评论(0)

pom.xml的scope为system的jar打包不进去的问题


解决方法:

添加<includeSystemScope>true</includeSystemScope>即可。

<dependencies>

<dependency>

           <groupId>org.apache.impala</groupId>

           <artifactId>impala-frontend</artifactId>

           <version>cdh5.10.0-release</version>

           <scope>system</scope>

           <!-- 这里改成你的jar包存放的位置 -->

           <systemPath>${project.basedir}/src/main/lib/impala-frontend-0.1-SNAPSHOT.jar</systemPath>

       </dependency>

</dependencies>

<build>

       <plugins>

           <plugin>

               <groupId>org.springframework.boot</groupId>

               <artifactId>spring-boot-maven-plugin</artifactId>

               <configuration>

                   <!--设置为true,以便把本地的system的jar也包括进来-->

                   <includeSystemScope>true</includeSystemScope>

               </configuration>

           </plugin>

       </plugins>

   </build>


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交