Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] Problem accessing Apache Archive maven repo from aether

I  modified the aether example to target Apache Archiva 1.3.6 and I got an error while trying to resolve an artifact:

==============================================

Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Cannot access http://localhost:9080/archiva/ with type maven using the available connector factories: BasicRepositoryConnectorFactory
    at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:208)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:532)
    ... 6 more
===============================================

Booter.java[1] that I modified is:
private static RemoteRepository newCentralRepository() {
        Authentication authentication= new AuthenticationBuilder().addUsername("bgreen").addPassword("c0ffe").build();
        return new RemoteRepository.Builder("my archiva", "maven", "http://localhost:9080/archiva/repository/internal/").setAuthentication(authentication).build();
    }

where Apache Archiva runs at port 9080 and I have a user "bgreen" with password "c0fee" .

[1] http://git.eclipse.org/c/aether/aether-demo.git/tree/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/util/Booter.java


Back to the top