---
title: "Maven项目使用lib下面jar"
author: "HazeOver"
date: "2016-10-10T15:48:04Z"
tags: []
categories: ["企业架构"]
slug: "maven-lib-jar"
draft: false
lastmod: "2016-10-10T15:48:04Z"
id: 2329534
url: "https://hazeover.iteye.com/blog/2329534"
---

```
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
                <encoding>UTF-8</encoding>
                <compilerArguments>
                   <extdirs>src\main\webapp\WEB-INF\lib</extdirs>
                </compilerArguments>
            </configuration>
        </plugin>
        无关配置省略...
    </plugins>
</build>
```