Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin works with Nexus 3.19.1-01 ? #53

Closed
theopentag opened this issue Oct 29, 2019 · 8 comments
Closed

Plugin works with Nexus 3.19.1-01 ? #53

theopentag opened this issue Oct 29, 2019 · 8 comments

Comments

@theopentag
Copy link

Hi.
Any chance that plugin works with Sonatype Nexus 3.19.1-01?

@theopentag
Copy link
Author

any news ?

@ghost
Copy link

ghost commented Oct 30, 2019

I dont want to explicitly say "Works on my machine". but, Works on my machine :-)

image

@theopentag
Copy link
Author

@tvanrielwendrich sure, repository exist. But, i cannot upload any zip file to it. Always get 404 error

@ghost
Copy link

ghost commented Oct 30, 2019

I uploaded a zip just fine. Are you sure you didn't accidentally made a typo in your username/password and in the repo path?

@theopentag
Copy link
Author

theopentag commented Oct 30, 2019

Sure) i got an error:

composer nexus-push --name=xxxxxxxxxxxx --url=https://nexus.xxxxxxxxxxxx.com/repository/xxxxxxxxxxxx-composer --username=******* --password=******* 0.0.1
[ZIP Archive] Archive into the subdirectory xxxxxxxxxxxx-0-0-1
Zip archive /tmp/nexus-pushadLUgx.zip done
Execute the Nexus Push for the URL https://nexus.xxxxxxxxxxxx.com/repository/xxxxxxxxxxxx-composer/packages/upload/xxxxxxxxxxxx/0.0.1...

[GuzzleHttp\Exception\ClientException]
Client error: PUT https://nexus.xxxxxxxxxxxx.com/repository/xxxxxxxxxxxx-composer/packages/upload/xxxxxxxxxxxx/0.0.1 resulted in a 404 Not Found response

nexus-push [--name NAME] [--url URL] [--username USERNAME] [--password PASSWORD] [-i|--ignore [IGNORE]] [--ignore-dirs [IGNORE-DIRS]] [--ignore-by-git-attributes] [--]

@ghost
Copy link

ghost commented Oct 30, 2019

Make sure the name contains a vendor prefix
If your package is called foo, make sure the --name option is theopentag/foo. otherwise, nexus will attempt to interpret the version number as the package and there will be no version.

I upload using the curl command instead of the composer plugin. but it should work the same.

@theopentag
Copy link
Author

@tvanrielwendrich you are right, problem was in --name. Thanks a lot.

@ghost
Copy link

ghost commented Oct 30, 2019

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant