Not referencing local repository for dependency #1663
Unanswered
dudeNumber4
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Are you using latest jbang ? Your usecase is you have a jar locally built that is not in any of the main repositories setup? It should work but could be it got lost as I just realize we don't seem to have a test for that specific use case. A workaround is to do But yeah we should consider adding local and central where local is the configured download location. Today we just add central. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The doc reads, "By default, jbang uses ~/.m2 as local repository," but I'm not finding that to be the case.
In my java file I have:
//DEPS sap.jdbc4.sqlanywhere:sajdbc4:17.0.11.7173
In my local repository I have:
// C:\Users\me.m2\repository\sap\jdbc4\sqlanywhere\sajdbc4\17.0.11.7173
When I run jbang against my file I get:
[jbang] Resolving dependencies...
[jbang] sap.jdbc4.sqlanywhere:sajdbc4:17.0.11.7173
[jbang] [ERROR] Could not resolve dependencies: Could not find artifact sap.jdbc4.sqlanywhere:sajdbc4:jar:17.0.11.7173 in mavencentral (https://repo1.maven.org/maven2/)
What do I need to do to make it reference the local repo?
Beta Was this translation helpful? Give feedback.
All reactions