6
votes

I use sonatype nexus for maven repository proxing. Our project need to use http://jcenter.bintray.com/ repository. But if I add jcenter as a proxy to our nexus server, it does not work properly. it seems a folder includes parent folder structures recursivly. something like the following.

a
b
c
    a
    b
    c
        a
        b
        c
            ....

Is this possible to proxy jcenter with sonatype nexus?

2
I am experiencing the exact same issue on Nexus 2.0.3. I can only see the folders as specified in the "Configuration" tab. Each time I go down a folder level, it's basically the same the parent folder structure. If I specify the "repository" in pom.xml directly without going through Nexus, I can get the artifact. Basically jcenter.bintray.com doesn't work through Nexusanonymous

2 Answers

6
votes

Have you tried pulling in artifacts through the JCenter remote proxy? This should work as JCenter is a standard maven repository that's heavily used by all maven clients/repository managers. The issue may only be with the remote repository browsing in the Nexus UI.

6
votes

As previously mentioned, pulling artifacts worked for me. As proxy repo I used https://jcenter.bintray.com/

Browsing the repo is not possible, but gradle with the configured nexus successfully pulled out everything necessary.