Hello everyone,

I was wondering why the resolution of snapshots in the dependency section is implemented but the resolution of snapshots in the dependencyManagement section is not. There is also a @TODO comment regarding this at CheckDependencySnapshots.java line 148.

As far as I can see the resolution of dependencyManagement snapshots can be implemented the same way as dependency snapshots:

        try {

// This is the same as 'project.createArtifacts( artifactFactory, null, null );' for snapshot dependencies // but it uses project.getDependencyManagement().getDependencies() instead of project.getDependencies()
            @SuppressWarnings( "unchecked" )
Set<Artifact> dependencyManagementArtifacts = MavenMetadataSource.createArtifacts( this.artifactFactory, project.getDependencyManagement().getDependencies(), null, null, project );

checkDependencies( originalVersions, releaseDescriptor, artifactMap, dependencyManagementArtifacts );

        } catch ( InvalidDependencyVersionException e ) {
throw new ReleaseExecutionException( "Failed to create dependency-management artifacts", e );
        }


Best regards

Konrad


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to