maven插件maven-install-plugin

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一下

上一篇:pom文件引入Oracle依赖


下一篇:MFC下调试日志的打印