#63 - Additional guards against snapshots in release train BOM.
We now inspect the BOM pom.xml for references to -SNAPSHOT in declared dependencies. This is to work around the limitation of the Maven Enforcer plugin which only verifies actual project dependencies, not ones declared in a <dependencyManagement /> block. #63 - Additional guards against snapshots in release train BOM. We now inspect the BOM pom.xml for references to -SNAPSHOT in declared dependencies. This is to work around the limitation of the Maven Enforcer plugin which only verifies actual project dependencies, not ones declared in a <dependencyManagement /> block.
This commit is contained in:
@@ -79,4 +79,12 @@ public class MavenIntegrationTests extends AbstractIntegrationTests {
|
||||
maven.updateProjectDescriptors(build, information);
|
||||
maven.prepareVersion(build, Phase.PREPARE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void findsSnapshotDependencies() throws Exception {
|
||||
|
||||
Pom pom = projection.io().file(workspace.getFile("bom/pom.xml", Projects.BUILD)).read(Pom.class);
|
||||
|
||||
System.out.println(pom.getSnapshotDependencies());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user