sonatype

How to delete artifacts with classifier from Nexus using REST API?

眉间皱痕 提交于 2019-12-18 16:31:43
问题 I know how to delete a whole GAV using this command : curl --request DELETE --user "login:password" http://myNexus/service/local/repositories/myRepository/content/myGroupId/myArtifactId/myVersion It works like a charm. Now I need to just delete an artifact with a classifier, I could not find or read a solution for this. I wonder if there is a way to delete an artifact with a classifier using the Nexus REST API ? 回答1: To delete an specific artifact, use this command: curl --request DELETE -

Using maven-release-plugin with GitHub “You can't push to git://github.com/…”

社会主义新天地 提交于 2019-12-14 00:19:35
问题 Recently having switched source code repository for a project to GitHub from SourceForge I need to update the maven release process to match. I followed this link for configuring the "scm" section of the pom. The GitHub repository is shown here. Everything else is as it was when using SVN (for publishing to https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-4.MavenRepositories). So then I invoke mvn clean release:clean

ASMSupport成功release到OSS。

跟風遠走 提交于 2019-12-13 22:17:41
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 经过两天的倒腾终于将第一个release版本(0.2版本)的asmsupport加入到 oss.sonatype.org 通过 http://search.maven.org 也能搜索到了。这样一来,只需要将asmsupport的maven坐标: <!-- lang: xml --> <dependency> <groupId>com.googlecode.amssupport</groupId> <artifactId>asmsupport</artifactId> <version>0.2</version> </dependency> 加入到pom文件中,就可以通过maven直接下载使用了。 也有可能会因为我朝网络的问题没法下,这样的话就只能在maven的setting.xml文件中配置代理了。我是通过GoAgent+Google App Engine实现的(可以上Youtube哦,网上很多教程)。 留图留真相: asmsupport地址: https://code.google.com/p/amssupport/ 如果大家有开源项目也可以按照官方文档 https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository

Upload artifact bundle to sonatype using curl: 500 Server Error

混江龙づ霸主 提交于 2019-12-12 12:09:12
问题 I want to upload an artifact bundle (jar) to https://oss.sonatype.org with the curl command: curl \ --verbose \ --user $SONATYPE_USER:$SONATYPE_PASSWORD \ --form "file=$BUNDLE" \ https://oss.sonatype.org/service/local/staging/bundle_upload The command was based on this SO answer: https://stackoverflow.com/a/47460712/766786, I just have the habit of writing all options in their long form ( --foobar ) for better readability in shell scripts. This question is not a duplicate, because A) the

Sonatype buildNumber and timestamp out of sync

送分小仙女□ 提交于 2019-12-12 04:44:51
问题 I have a really weird problem with my snapshot deployment: https://gist.github.com/fommil/5042065 <groupId>com.github.fommil</groupId> <artifactId>emokit</artifactId> <version>1.0-SNAPSHOT</version> <versioning> <snapshot> <timestamp>20130226.204310</timestamp> <buildNumber>13</buildNumber> </snapshot> <lastUpdated>20130226204310</lastUpdated> <snapshotVersions> <snapshotVersion> <extension>jar</extension> <value>1.0-20130226.204248-12</value> <updated>20130226204310</updated> <

How to type in Sonatype Nexus a password with special characters in proxy repo?

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:39:52
问题 In Sonatype Nexus you can add a proxy repository and optional enter Basic Authentication. The username and password fields get saved in the server in nexus.xml. I had problems to login with a password that had ampersand "&" in it. The problem is that Nexus has a bug or missing feature (for me, it is a bug) and it saves it as &. You can verify this by setting the "org.apache.http" logger to trace and then it prints the Base64 each time you try to use the repository. When you decode the Base64

Upload artifact bundle to sonatype

a 夏天 提交于 2019-12-11 15:27:44
问题 I want to upload an artifact bundle(jar) to https://oss.sonatype.org via curl command. I am facing issues with URL. curl -v -u 'username':'password' --upload-file xyz-version-bundle.jar https://oss.sonatype.org/content/repositories/com/abc/xyz/version/ I have tried via above curl command and I have tried many variations in URL but still getting 404 - Repository with ID="com" not found . Note: The bundle jar file contains all files like pom etc. I am able to upload the same bundle via UI. 回答1:

Is it possible to perform a nexus 2 to nexus 3 migration multiple times?

帅比萌擦擦* 提交于 2019-12-11 14:56:06
问题 We have a nexus 2 to nexus 3 migration being done and we have A LOT of objects in our nexus 2 so the migration is somewhat slow even with the hardlink process. The nexus documentation: https://books.sonatype.com/nexus-book/reference3/upgrading.html#upgrade-process-expectations Has this blurb: Using an existing installation of Nexus Repository Manager 3 populated with data and configuration as the target repository manager incurs restrictions that make the upgrade more complex and potentially

Nexus 3 Rest api to check if component exist

≡放荡痞女 提交于 2019-12-11 05:05:42
问题 Maybe I miss something but i can't find a way to upload a component(jar or dll) to the nexus 3 repository from the UI. So I am trying to build a tool for this job, to optimize the upload process I need a way to check if component exist in the nexus repository programmatically, all my tries to find suitable rest api failed. Anyone have suggestions? 回答1: At this time, the REST API has been released as beta. You can get more information and give us feedback by going to this link: http://blog

Some sonatype nexus questions

主宰稳场 提交于 2019-12-11 03:38:37
问题 I deployed a sonatype nexus server inside my LAN , mapping some remote repositories to my public repositories : alt text http://img576.imageshack.us/img576/5517/7875d01884ad4234a5b02e2.png First question is , why these repositories not sync with the "real" repositories ? For example , I mapped maven central (http://repo1.maven.org/maven2) to "central" , but when I browse http://smallufo:8081/nexus/content/repositories/central/org/springframework/ , the packages are not complete , in http:/