![]() Response=`curl -ksSL -u "$sourceUser:$sourcePassword" -X GET -header 'Accept: application/json' "$url"` ![]() Url=$sourceServer"/service/rest/v1/assets?continuationToken="$contToken"&repository="$sourceRepoĮcho Processing repository token: $contToken | tee -a $logfile Url=$sourceServer"/service/rest/v1/assets?repository="$sourceRepo I know one issue is that the very first download this script initiates is put in the wrong directory. This script is by no means perfect and you may need to edit it. I slightly modified it and posted it below. RUN_AS_USER=”nexus” /var/lib/dpkg/info/ca-certificates-java.The script above really helped me with this issue. Make the nexus user created above the owner of this directory chown –R nexus:nexus /etc/local/sonatype-workĮdit this file to point to the directory and user created above. Wget tar -xvzf mv nexus-2.14.13-01 nexus useradd nexus sh –c ‘echo “export NEXUS_HOME=/usr/local/nexus” > /etc/profile.d/nexus.sh’ cp /usr/local/nexus/bin/nexus /etc/init.d/nexus chmod 755 /etc/init.d/nexus chown root /etc/init.d/nexus update-rc.d nexus defaultsĬreate a directory for Sonatype products to use for working files mkdir /etc/local/sonatype-workĬreate a directory for Nexus to use for working files mkdir /etc/local/sonatype-work/nexus Latest version of Sonatype Nexus needs Java 8 version add-apt-repository ppa:openjdk-r/ppa apt-get update apt-get install openjdk-8-jdk java -version cd /usr/local You get the benefits of having your own 'central', and there is no easier way to collaborate. Internally, you configure your build to publish artifacts to NexusĪnd they then become available to other developers. ![]() It makes it easy to distribute your software. It allows you to proxy, collect, and manage your dependencies so that you are not constantly jugglingĪ collection of JARs. ![]() > Nexus is artifact manager, artifact is nothing but when code is build it generates an artifact which can be deployed on targets. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |