forked from IntershopCommunicationsAG/nexus-setup-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nexus_configure.sh
executable file
·9 lines (8 loc) · 1.05 KB
/
nexus_configure.sh
1
2
3
4
5
6
7
8
9
#!/bin/sh
/etc/init.d/nexus restart & sleep 30
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -f -X POST -v -d "@repositories/gradle_repository.xml" -u admin:admin123 http://127.0.0.1:8081/nexus/service/local/repositories
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -f -X POST -v -d "@repositories/distributions_repository.xml" -u admin:admin123 http://127.0.0.1:8081/nexus/service/local/repositories
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -f -X POST -v -d "@repositories/ishreleases_repository.xml" -u admin:admin123 http://127.0.0.1:8081/nexus/service/local/repositories
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -f -X POST -v -d "@repositories/components_group.xml" -u admin:admin123 http://localhost:8081/nexus/service/local/repo_groups
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -f -X POST -v -d "@repositories/mavenall_group.xml" -u admin:admin123 http://localhost:8081/nexus/service/local/repo_groups
/etc/init.d/nexus restart