Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] expose the functionality DefaultArtifactDescriptorReader.loadPom

In maven-aether-provider-3.1.0 DefaultArtifactDescriptorReader.java, there is the following:

public ArtifactDescriptorResult readArtifactDescriptor( RepositorySystemSession session, ArtifactDescriptorRequest request ) throws ArtifactDescriptorException {
    ArtifactDescriptorResult result = new ArtifactDescriptorResult( request );
    Model model = loadPom( session, request, result );
    ...
}
private Model loadPom( RepositorySystemSession session, ArtifactDescriptorRequest request, ArtifactDescriptorResult result ) throws ArtifactDescriptorException {
    ...
}

the loadPom function computes the effectivePom (such as resolving properties and parent models).

I think that this loadPom function is very useful, not only for readArtifactDescriptor().

could you refactor this class to expose this functionality (loadPom) (public, instead of private)?


Regards,
David


---
David Portabella - Senior IT Architect
AlmaZ Informatique SA - www.almazsa.com
david.portabella@xxxxxxxxxxx
+41 78 802 6411


Back to the top