Hello,
at the moment I try to automate the creation of maven-proxy repositories by the nexus3-API so I wrote this little Script:
import groovy.json.JsonSlurper; def repo=new JsonSlurper().parseText(args);
repository.createMavenProxy(repo.name, repo.url, 'default', true, org.sonatype.nexus.repository.maven.VersionPolicy.valueOf(repo.policy), org.sonatype.nexus.repository.maven.LayoutPolicy.STRICT)
and uploaded it to the nexus3-Server and I can already give this script a json so it created for me the proxy repository. But I didn't found out till this point how can I set username and password for the new repository? Maybe there is a additional method, but I don't can figured out which, maybe someone here can help me? I would very thanksful for every helpful hint.
best regards
Dan