Document hacks as such

This commit is contained in:
Michael Osipov 2021-07-02 17:50:44 +02:00
parent cbaf7f7b48
commit b551be7445
2 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,7 @@ public class MavenMetadataSource
Artifact relocatedArtifact = null; Artifact relocatedArtifact = null;
// TODO hack: don't rebuild model if it was already loaded during reactor resolution
final WorkspaceReader workspace = legacySupport.getRepositorySession().getWorkspaceReader(); final WorkspaceReader workspace = legacySupport.getRepositorySession().getWorkspaceReader();
Model model = null; Model model = null;
if ( workspace instanceof MavenWorkspaceReader ) if ( workspace instanceof MavenWorkspaceReader )

View File

@ -257,6 +257,7 @@ public class DefaultArtifactDescriptorReader
Model model; Model model;
// TODO hack: don't rebuild model if it was already loaded during reactor resolution
final WorkspaceReader workspace = session.getWorkspaceReader(); final WorkspaceReader workspace = session.getWorkspaceReader();
if ( workspace instanceof MavenWorkspaceReader ) if ( workspace instanceof MavenWorkspaceReader )
{ {