【发布时间】:2012-10-23 13:01:03
【问题描述】:
是否可以在特定阶段运行 maven-install-plugin。
我想运行安装插件,以便 ojdbc14.jar 在它尝试检查依赖项之前在我的存储库中可用。
我在下面的尝试是尝试设置流程资源阶段,但这不起作用
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.1.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
<configuration>
<file>${basedir}/resources/ojdbc14.jar</file>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.1.0</version>
<packaging>jar</packaging>
</configuration>
</plugin>
</plugins>
</build>
【问题讨论】:
-
我可能错了,但你不能一劳永逸地安装它吗?
标签: maven maven-3 maven-plugin