Updated Deploying ANTLR mvn artifacts (markdown)

Terence Parr 2015-01-13 18:08:24 -08:00
parent 428a9b20dc
commit 492db3489f
1 changed files with 11 additions and 22 deletions

@ -80,8 +80,6 @@ Go to [sonatype view repos](https://oss.sonatype.org/#view-repositories) and put
## Deploying jars built from bild.py
TODO:
Any version with -SNAPSHOT in it is not a stable release.
First we need to set up authentication in `~/.m2/settings.xml`. It should minimally have the following:
@ -99,6 +97,16 @@ $ vi settings.xml
</settings>
```
Then, just run
```bash
./bild.py deploy
```
which will ensure that everything is built and push all of the appropriate jars to the snapshot area of maven central. This of course assumes that your version has `-SNAPSHOT` as a suffix.
## Deploying jars manually (those built from bild.py)
```bash
# must correspond to <id>ossrh</id> in settings.xml
$ mvn deploy:deploy-file -Durl=https://oss.sonatype.org/content/repositories/snapshots \
@ -140,29 +148,10 @@ Uploaded: https://oss.sonatype.org/content/repositories/snapshots/org/antlr/antl
Wow. It sticks stuff here:
```
https://oss.sonatype.org/content/repositories/snapshots/org/antlr/antlr4-master/4.5-SNAPSHOT/
https://oss.sonatype.org/content/repositories/snapshots/org/antlr/antlr4/4.5-SNAPSHOT/
https://oss.sonatype.org/content/repositories/snapshots/org/antlr/antlr4-runtime/4.5-SNAPSHOT/
```
I'm trying this now:
```bash
$ mvn -Dmaven.install.skip=true \
-Dmaven.test.skip=true \
-Dmaven.compile.skip=true \
-Dmaven.package.skip=true \
-DrepositoryId=ossrh \
-Durl=https://oss.sonatype.org/content/repositories/snapshots deploy
```
but I get that authorization problem again even after I set the repository ID:
```bash
Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/org/antlr/antlr4-master/4.5-SNAPSHOT/antlr4-master-4.5-20150113.045849-3.pom. Return code is: 401, ReasonPhrase:Unauthorized.
```
# Manual (non bild.py) install to .m2
Ok, so I will stick with the dist dir.