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

Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:unpack (download-test-logs) on project gctoolkit: Unable to find/resolve artifact. #30

Closed
andotorg opened this issue Aug 11, 2021 · 12 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@andotorg
Copy link

Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:unpack (download-test-logs) on project gctoolkit: Unable to find/resolve artifact.

@karianna
Copy link
Member

@andotorg can you run that again with mvn -X <command> and post the relevant output here?

@karianna karianna added the Waiting on OP Waiting for feedback from the person who opened the issue label Aug 11, 2021
@dsgrieve
Copy link
Member

Also, can you confirm that you followed the guidance in https://github.com/microsoft/gctoolkit#prerequisite-for-building-gctookit ? I'd like to know if there is a problem in the doc. Thanks.

@anantk24
Copy link
Contributor

anantk24 commented Aug 11, 2021

Go through following steps check this resolve your issue:

  • ~/.m2/settings.xml - check if this file is present or not. if not present copy from maven/conf folder to .m2 -- this is default setting for IDE
  • create github token
  • Make sure it has appropriate scopes defined.
  • once token is created copy it.
  • Edit settings.xml and put server tags for github , enter username, enter token which you created . Refer here for details
  • try running mvn clean install

@karianna
Copy link
Member

@andotorg Can you confirm that this is resolved for you?

@andotorg
Copy link
Author

i create github token, I've specified settings.xml
I downloaded the dependent project again and installed the dependent project locally。
This project is another project that relies on your open source

@andotorg
Copy link
Author

https://github.com/microsoft/gctoolkit#prerequisite-for-building-gctokit

I followed the instructions in the document, but the document still didn't feel very clear

@andotorg
Copy link
Author

@karianna
Copy link
Member

I think it's fair to say that the README.md doesn't quite guide the user to the appropriate CONTRIBUTING.md file. I think the https://github.com/microsoft/gctoolkit#maven-coordinates could also do with a little bit of context (in that those maven coordinates need to be added to any client application that you might create).

@karianna
Copy link
Member

#59 to improve this.

@andotorg
Copy link
Author

I add maven coordinates, but not auto download jar, so after git clone https://github.com/microsoft/gctoolkit-testdata
exec [ mvn clean install ] is success!
Thanks you @karianna .

@andotorg
Copy link
Author

Excuse me, why not put the jar package in the maven central warehouse?

@karianna
Copy link
Member

Excuse me, why not put the jar package in the maven central warehouse?

The test data is too large for Maven Central (and not in a JAR format)

@karianna karianna added bug Something isn't working documentation Improvements or additions to documentation and removed Waiting on OP Waiting for feedback from the person who opened the issue labels Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants