<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>1</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.wltea</groupId>
<artifactId>IKAnalyzer</artifactId>
<version>6.5.0</version>
<packaging>jar</packaging>
<file>${basedir}/lib/IKAnalyzer6.5.0.jar</file>
</configuration>
</execution>
<execution>
<id>2</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>com.oracle.jdbc</groupId>
<artifactId>ojdbc6</artifactId>
<version>6</version>
<packaging>jar</packaging>
<file>${basedir}/lib/ojdbc6.jar</file>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
lib文件夹在项目目录下,注意如果要引多个包时,execution的id要不同。使用install。