/** * @see ArtifactContext#getArtifactsFor(String, String, String, String) */ public List<Artifact> getArtifactsFor( String groupId, String artifactId, String version, String type ) { NetDependenciesRepositoryImpl repository = (NetDependenciesRepositoryImpl) repositoryRegistry.find( "net-dependencies" ); if ( repository == null ) { logger.warn( "NPANDAY-000-001: Could not locate artifact (net dependencies repository not found): Group ID = " + groupId + ", Artifact ID = " + artifactId + ", Version = " + version + ", Type = " + type ); return new ArrayList<Artifact>(); } repository.init( artifactFactory ); List<Artifact> artifacts = repository.getArtifactsFor( groupId, artifactId, version, type ); for ( Artifact artifact : artifacts ) { logger.debug("NPANDAY-000-002: set file"); artifact.setFile( PathUtil.getUserAssemblyCacheFileFor( artifact, getLocalRepository() ) ); } return artifacts; }