Skip to content

Commit 49480a3

Browse files
committed
[docs] Add note about publishing issues
1 parent 0f9bbd1 commit 49480a3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/notes/publishing.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Publishing to maven central
2+
The process of publishing to maven central is absolutely non-intuitive, not visualizable and confusing.
3+
I faced unexpectable behaviour when my publications had a random count of components in the UI
4+
https://central.sonatype.com/publishing/deployments
5+
Publishing such a library version causes error on client's side, when he tries to resolve all required dependencies.
6+
There are absolutely no errors nor in publishing logs nor in web UI.
7+
8+
## APIs
9+
[Official docs](https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#post-to-manualuploadrepositoryrepository-key)
10+
11+
Calling the fallowing api's helped at least close all the repositories in open status (open status is not visible in UI)
12+
Beware that APIs response with a timeout error very often.
13+
14+
list open repos (open means uploaded and not visible in ui)
15+
```bash
16+
curl -X GET -u "{MAVEN_USER}:{MAVEN_PASSWORD}" "https://ossrh-staging-api.central.sonatype.com/manual/search/repositories?ip=any&state=open"
17+
```
18+
19+
manually trigger processing of open repo (would be visible in UI with some status)
20+
```bash
21+
curl -X POST -u "{MAVEN_USER}:{MAVEN_PASSWORD}" "https://ossrh-staging-api.central.sonatype.com/manual/upload/repository/{MAVEN_USER}/{IP}/io.github.nsk90--default-repository"
22+
```
23+
24+
drops the repository
25+
```bash
26+
curl -X DELETE -u "{MAVEN_USER}:{MAVEN_PASSWORD}" "https://ossrh-staging-api.central.sonatype.com/manual/drop/repository/{MAVEN_USER}/{IP}/io.github.nsk90--default-repository"
27+
```

0 commit comments

Comments
 (0)