在模块列表失败之前,我应该如何配置 maven 父 pom 以检出代码,因为找不到 pom。
当 scm 使用项目的 pom 检查项目时,maven 对模块 pom 的反应器测试似乎发生在generate-sources阶段之前。
我怎样才能解决这个问题 ?
<modules>
<module>target/mod-1</module>
<module>target/mod-2</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.9.4</version>
<executions>
<execution>
<id>mod-1</id>
<phase>generate-sources</phase>
<configuration>
<connectionUrl>${mod-1.url}</connectionUrl>
<scmVersionType>${mod-1.versionType}</scmVersionType>
<scmVersion>${mod-1.version}</scmVersion>
<checkoutDirectory>${mod-1.directory}</checkoutDirectory>
</configuration>
<goals>
<goal>checkout</goal>
</goals>
</execution>
<execution>
<id>mod-2</id>
<phase>generate-sources</phase>
<configuration>
<connectionUrl>${mod-2.url}</connectionUrl>
<scmVersionType>${mod-2.versionType}</scmVersionType>
<scmVersion>${mod-2.version}</scmVersion>
<checkoutDirectory>${mod-2.directory}</checkoutDirectory>
</configuration>
<goals>
<goal>checkout</goal>
</goals>
</execution>
</executions>
.....
</build>