mirror of https://github.com/apache/maven.git
Document hacks as such
This commit is contained in:
parent
cbaf7f7b48
commit
b551be7445
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue