public static synchronized MavenSettingsSingleton getInstance() { if (instance == null) { instance = new MavenSettingsSingleton(); } return instance; } /**
public synchronized static MavenEmbedder getOnlineEmbedder() { if (online == null) { online = createOnlineEmbedder(); } return online; }
private Artifact createFromOriginal(Artifact orig) { if (orig != null) { return new NbArtifact(orig); } return null; }
@Override public void addExtension(Extension extension, Model originatingModel, List remoteRepositories, MavenExecutionRequest request) throws ExtensionManagerException { openSesame(); try { super.addExtension(extension, originatingModel, remoteRepositories, request); } finally { closeSesame(); } }
public void testArtifact(Artifact node) { if (getDelegate() != null) { getDelegate().testArtifact(node); } // System.out.println("testArtifact" + node); }
public MavenEmbedder getEmbedder() { return EmbedderFactory.getProjectEmbedder(); }
@Override public void getArtifact(Artifact artifact, ArtifactRepository repository) throws TransferFailedException, ResourceDoesNotExistException { this.getArtifact(artifact, repository, true); }
public void contextualize(Context context) throws ContextException { setField("artifactHandlerManager", artifactHandlerManager); }
@Override public void getArtifactMetadata(ArtifactMetadata metadata, ArtifactRepository remoteRepository, File destination, String checksumPolicy) throws TransferFailedException, ResourceDoesNotExistException { if (areGatesOpened()) { // System.out.println("checking metadata"); super.getArtifactMetadata(metadata, remoteRepository, destination, checksumPolicy); } // System.out.println("getartifact metadata=" + metadata); // original.getArtifactMetadata(metadata, remoteRepository, destination, checksumPolicy); }
@Override public void addPluginAsExtension(Plugin plugin, Model originatingModel, List remoteRepositories, MavenExecutionRequest request) throws ExtensionManagerException { openSesame(); try { super.addPluginAsExtension(plugin, originatingModel, remoteRepositories, request); } finally { closeSesame(); } }
public void updateScopeCurrentPom( Artifact artifact, String scope ){ if (getDelegate() != null) { getDelegate().updateScopeCurrentPom(artifact, scope); } // System.out.println("update scope"); }
@Override public void addExtension(Extension extension, MavenProject project, MavenExecutionRequest request) throws ExtensionManagerException { openSesame(); try { super.addExtension(extension, project, request); } finally { closeSesame(); } }
public void startProcessChildren( Artifact artifact ) { if (getDelegate() != null) { getDelegate().startProcessChildren(artifact); } // System.out.println("startProcessChildren" + artifact); }
@Override public void registerWagons() { openSesame(); try { super.registerWagons(); } finally { closeSesame(); } }
public void updateScope( Artifact artifact, String scope ){ if (getDelegate() != null) { getDelegate().updateScope(artifact, scope); } // System.out.println("update scope"); }
public void manageArtifact( Artifact artifact, Artifact replacement ){ if (getDelegate() != null) { getDelegate().manageArtifact(artifact, replacement); } // System.out.println("MANAGE Artifact=" + artifact + " replacement=" + replacement); }
public void selectVersionFromRange( Artifact artifact ){ if (getDelegate() != null) { getDelegate().selectVersionFromRange(artifact); } // System.out.println("select version"); }
public void endProcessChildren( Artifact artifact ){ if (getDelegate() != null) { getDelegate().endProcessChildren(artifact); } // System.out.println("endProcessChildren" + artifact); }
public void omitForNearer( Artifact omitted, Artifact kept ) { if (getDelegate() != null) { getDelegate().omitForNearer(omitted, kept); } // System.out.println("omitted.. kept" + kept); }
public void omitForCycle( Artifact artifact ){ if (getDelegate() != null) { getDelegate().omitForCycle(artifact); } // System.out.println("omit cycle" + artifact); }