nexus3

How to backup all Nexus 3 artifacts?

痴心易碎 提交于 2019-12-04 15:07:49
I was wondering how to download all (not one or two specified ones) artifacts from a Nexus 3 repo to local disk. In Nexus 2 it was easy since everything was stored on disk and I would just rsync all the artifacts to my local disk. But in Nexus 3 all artifacts are stored in the OrientDB and I will have to take an other route. I was thinking about downloading them per http after getting a complete list somehow. Does anybody has an idea on how to perform such an export? I modified following groovy scirpt, which can be uploaded using the API: https://gist.github.com/kellyrob99

Nexus 3 : how to get latest snapshot?

坚强是说给别人听的谎言 提交于 2019-12-04 12:58:07
问题 As we all know Nexus 3 does not have REST API yet, which is very weird for me. I can only download artifacts manually using wget or curl. But as I'm using Maven 3, all the snapshots artifacts are named using timestamps like this : myartifact-1.0-20161215.141522-4.tar.gz So I want to know how I can get latest snapshots from a repo? I want to automate the download process of artifacts but as names change I didn't find any way to achieve this. Thanks. 回答1: If keeping only one SNAPSHOT in the

OrientDB corruption state in Nexus Repository version 3.2.0-01

拜拜、爱过 提交于 2019-12-04 08:11:31
问题 We are using Nexus Repository version 3.2.0-01 and started getting the following error in nexus.log. OrientDB has got corrupted. Nexus is no longer starting. 2017-03-21 13:00:36,329+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseServerImpl - OrientDB version: 2.2.13 2017-03-21 13:00:36,348+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - OrientDB Server v2.2.13 is starting up... 2017-03-21 13:00:36,355+0000 INFO [FelixStartLevel

Get size of specific repository in Nexus 3

怎甘沉沦 提交于 2019-12-03 11:23:57
问题 How can I get a size of specific repository in Nexus 3? For example, Artifactory shows the repository "size on disk" via UI. Does Nexus have something similar? If not - how can I get this information by script? 回答1: You can use admin task with groovy script nx-blob-repo-space-report.groovy from https://issues.sonatype.org/browse/NEXUS-14837 - for me turned out too slow Or you can get it from database: login with user-owner nexus installation on nexus server (e.g. nexus) go to application

Nexus 3 : how to get latest snapshot?

独自空忆成欢 提交于 2019-12-03 08:14:12
As we all know Nexus 3 does not have REST API yet, which is very weird for me. I can only download artifacts manually using wget or curl. But as I'm using Maven 3, all the snapshots artifacts are named using timestamps like this : myartifact-1.0-20161215.141522-4.tar.gz So I want to know how I can get latest snapshots from a repo? I want to automate the download process of artifacts but as names change I didn't find any way to achieve this. Thanks. If keeping only one SNAPSHOT in the repository is a valid option This API call will work: ${nexusUrl}/service/rest/beta/search/assets/download

Get size of specific repository in Nexus 3

不羁的心 提交于 2019-12-03 01:45:44
How can I get a size of specific repository in Nexus 3? For example, Artifactory shows the repository "size on disk" via UI. Does Nexus have something similar? If not - how can I get this information by script? You can use admin task with groovy script nx-blob-repo-space-report.groovy from https://issues.sonatype.org/browse/NEXUS-14837 - for me turned out too slow Or you can get it from database: login with user-owner nexus installation on nexus server (e.g. nexus) go to application directory (e.g. /opt/nexus): $ cd /opt/nexus run java orient console: $ java -jar ./lib/support/nexus-orient

OrientDB corruption state in Nexus Repository version 3.2.0-01

為{幸葍}努か 提交于 2019-12-02 21:49:45
We are using Nexus Repository version 3.2.0-01 and started getting the following error in nexus.log. OrientDB has got corrupted. Nexus is no longer starting. 2017-03-21 13:00:36,329+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseServerImpl - OrientDB version: 2.2.13 2017-03-21 13:00:36,348+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - OrientDB Server v2.2.13 is starting up... 2017-03-21 13:00:36,355+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - Databases directory: /c9/setup/apps/nexus

Purge old release from Nexus 3

↘锁芯ラ 提交于 2019-11-30 19:20:18
I use Nexus 3 and I want to delete my old releases. In Nexus 2 there is a scheduled task called Remove Releases From Repository . It seems that this tasks is missing in Nexus 3. How can we delete old release from Nexus 3 ? Thanks Since the release of nexus 3 you can deploy groovy scripts to the nexus manager. Simply create a new execute script task and use the following script: import org.sonatype.nexus.repository.storage.StorageFacet; import org.sonatype.nexus.common.app.GlobalComponentLookupHelper import org.sonatype.nexus.repository.maintenance.MaintenanceService import org.sonatype.nexus

how to upload JAR to Nexus OSS 3?

别来无恙 提交于 2019-11-29 18:36:13
问题 How to perform an upload of a jar via curl the Nexus 3? I tried using the link tips but without success. Here are my attempts: curl -v -F r = -F releases hasPom = true and = -F jar -F file = @. / v12.1.0.1 / pom.xml -F file = @. / v12.1.0.1 / ojdbc7.jar -u admin: admin123 http: // localhost: 8081 / repository / maven releases curl -v -F r = -F releases hasPom = false -F and -F jar = g = com.oracle.jdbc -F = ojdbc7 -F v = 1.0 p = -F jar -F file = @. / v12 .1.0.1 / ojdbc7.jar -u admin: admin123

Purge old release from Nexus 3

*爱你&永不变心* 提交于 2019-11-29 18:24:30
问题 I use Nexus 3 and I want to delete my old releases. In Nexus 2 there is a scheduled task called Remove Releases From Repository . It seems that this tasks is missing in Nexus 3. How can we delete old release from Nexus 3 ? Thanks 回答1: Since the release of nexus 3 you can deploy groovy scripts to the nexus manager. Simply create a new execute script task and use the following script: import org.sonatype.nexus.repository.storage.StorageFacet; import org.sonatype.nexus.common.app