maven-install-plugin负责将获取的jar包安装到本地仓库
<build> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> <executions> <execution> <id>install-external</id> <phase>clean</phase> <configuration> <file>${project.basedir}/src/lib/ojdbc14.jar</file> <repositoryLayout>default</repositoryLayout> <groupId>ojdbc14</groupId> <artifactId>ojdbc14</artifactId> <version>1.0</version> <packaging>jar</packaging> <generatePom>true</generatePom> </configuration> <goals> <goal>install-file</goal> </goals> </execution> </executions> </plugin> </build>
mvn clean一下