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

How to add everything under M2 repository to pyjnius classpath? #668

Closed
siddhsql opened this issue Aug 31, 2023 · 2 comments
Closed

How to add everything under M2 repository to pyjnius classpath? #668

siddhsql opened this issue Aug 31, 2023 · 2 comments
Labels

Comments

@siddhsql
Copy link

How can I add everything under M2 respository ~/.m2/repository to the pyjnius classpath? thanks.

@cmacdonald
Copy link
Contributor

I wouldnt suggest that as a solution, as M2 can grow to large. Thats not how Maven works either.

See https://github.com/terrier-org/pyterrier/blob/master/pyterrier/mavenresolver.py for something that imports jar files from ~/.m2/

You can then add the identified jar files to the classpath:
https://github.com/terrier-org/pyterrier/blob/master/pyterrier/__init__.py#L121-L122

@github-actions
Copy link

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.

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

No branches or pull requests

3 participants