Exception——maven编译项目时无法编译本地第三方jar包

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Mutou_ren/article/details/82467138

maven编译插件提供支持

在pom中加入以下代码可以实现src/main/webapp/WEB-INF/lib目录下的第三方本地jar包的编译

<plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.7.0</version>
          <configuration>
            <compilerArguments>
              <extdirs>src/main/webapp/WEB-INF/lib</extdirs>
            </compilerArguments>
          </configuration>
</plugin>

猜你喜欢

转载自blog.csdn.net/Mutou_ren/article/details/82467138