org.apache.maven.model.resolution.InvalidRepositoryException Java Examples
The following examples show how to use
org.apache.maven.model.resolution.InvalidRepositoryException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MavenModelResolver.java From furnace with Eclipse Public License 1.0 | 6 votes |
@Override public void addRepository(final Repository repository, boolean replace) throws InvalidRepositoryException { if (session.isIgnoreArtifactDescriptorRepositories()) { return; } if (!repositoryIds.add(repository.getId())) { if (!replace) { return; } removeMatchingRepository(repository.getId()); } repositories.add(new RemoteRepository.Builder(repository.getId(), repository.getName(), repository.getUrl()) .build()); }
Example #2
Source File: NBRepositoryModelResolver.java From netbeans with Apache License 2.0 | 5 votes |
@Override public void addRepository(Repository repository, boolean replace) throws InvalidRepositoryException { RepositorySystem repositorySystem = embedder.lookupComponent(RepositorySystem.class); try { ArtifactRepository repo = repositorySystem.buildArtifactRepository(repository); if(replace) { remoteRepositories.remove(repo); } remoteRepositories.add(repo); remoteRepositories = repositorySystem.getEffectiveRepositories( remoteRepositories ); } catch (org.apache.maven.artifact.InvalidRepositoryException ex) { throw new InvalidRepositoryException(ex.toString(), repository, ex); } }
Example #3
Source File: SimpleModelResolver.java From gate-core with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void addRepository(org.apache.maven.model.Repository repository) throws InvalidRepositoryException { if (!repositoryIds.add(repository.getId())) { return; } this.repositories.add(ArtifactDescriptorUtils.toRemoteRepository(repository)); }
Example #4
Source File: RepositoryModelResolver.java From repairnator with MIT License | 5 votes |
@Override public void addRepository(Repository repository, boolean b) throws InvalidRepositoryException { for (Repository existingRepository : repositories) { if (existingRepository.getId().equals(repository.getId()) && !b) { return; } } repositories.add(repository); }
Example #5
Source File: RepositoryModelResolver.java From archiva with Apache License 2.0 | 5 votes |
@Override public void addRepository( Repository repository ) throws InvalidRepositoryException { // we just ignore repositories outside of the current one for now // TODO: it'd be nice to look them up from Archiva's set, but we want to do that by URL / mapping, not just the // ID since they will rarely match }
Example #6
Source File: MavenModelResolver.java From furnace with Eclipse Public License 1.0 | 5 votes |
@Override public void addRepository(Repository repository) throws InvalidRepositoryException { if (repositoryIds.contains(repository.getId())) { return; } repositoryIds.add(repository.getId()); repositories.add(new RemoteRepository.Builder(repository.getId(), repository.getName(), repository.getUrl()) .build()); }
Example #7
Source File: NBRepositoryModelResolver.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void addRepository(Repository repository) throws InvalidRepositoryException { addRepository(repository, false); }
Example #8
Source File: SimpleModelResolver.java From gate-core with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void addRepository(org.apache.maven.model.Repository repository, boolean replace) throws InvalidRepositoryException { // TODO Auto-generated method stub }
Example #9
Source File: POMParser.java From meghanada-server with GNU General Public License v3.0 | 4 votes |
@Override public void addRepository(Repository repository) throws InvalidRepositoryException {}
Example #10
Source File: POMParser.java From meghanada-server with GNU General Public License v3.0 | 4 votes |
@Override public void addRepository(Repository repository, boolean replace) throws InvalidRepositoryException {}
Example #11
Source File: RepositoryModelResolver.java From repairnator with MIT License | 4 votes |
@Override public void addRepository(Repository repository) throws InvalidRepositoryException { this.addRepository(repository, false); }
Example #12
Source File: RepositoryModelResolver.java From archiva with Apache License 2.0 | 4 votes |
@Override public void addRepository( Repository repository, boolean b ) throws InvalidRepositoryException { }