是否可以在特定阶段运行maven-install-plugin?在特定阶段运行maven插件
我想运行安装插件,以便将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>
我可能是错的,但你不能只安装一劳永逸? – mfirry