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

problem fetching all needed jars #410

Closed
wisechengyi opened this issue Dec 13, 2016 · 1 comment
Closed

problem fetching all needed jars #410

wisechengyi opened this issue Dec 13, 2016 · 1 comment
Labels

Comments

@wisechengyi
Copy link
Collaborator

wisechengyi commented Dec 13, 2016

Hi,

I am trying to get all transitive jars for org.apache.thrift:libthrift:0.9.2:default including itself(https://repo1.maven.org/maven2/org/apache/thrift/libthrift/0.9.2/libthrift-0.9.2.jar), but it is not obtained at fetch stage. How can I force fetch it? Does it have anything to do with the scope?

Resolve

$ ./coursier resolve -v org.apache.thrift:libthrift:0.9.2
  Dependencies:
org.apache.thrift:libthrift:0.9.2:default(compile)
  Result:
commons-codec:commons-codec:1.6:default
commons-logging:commons-logging:1.1.1:default
org.apache.httpcomponents:httpclient:4.2.5:default
org.apache.httpcomponents:httpcore:4.2.4:default
org.apache.thrift:libthrift:0.9.2:default
org.slf4j:slf4j-api:1.5.8:default

Fetch does not contain libthrift

$ ./coursier fetch  org.apache.thrift:libthrift:0.9.2
/Users/yic/.coursier/cache/v1/https/repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.5/httpclient-4.2.5.jar
/Users/yic/.coursier/cache/v1/https/repo1.maven.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
/Users/yic/.coursier/cache/v1/https/repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar
/Users/yic/.coursier/cache/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar
/Users/yic/.coursier/cache/v1/https/repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar

Cannot find the libthrift jar in cache either

$ find ~/.coursier/ | grep libthrift
/Users/yic/.coursier//cache/v1/https/repo1.maven.org/maven2/org/apache/thrift/libthrift
/Users/yic/.coursier//cache/v1/https/repo1.maven.org/maven2/org/apache/thrift/libthrift/0.9.2
/Users/yic/.coursier//cache/v1/https/repo1.maven.org/maven2/org/apache/thrift/libthrift/0.9.2/.libthrift-0.9.2.pom.checked
/Users/yic/.coursier//cache/v1/https/repo1.maven.org/maven2/org/apache/thrift/libthrift/0.9.2/.libthrift-0.9.2.pom.sha1.checked
/Users/yic/.coursier//cache/v1/https/repo1.maven.org/maven2/org/apache/thrift/libthrift/0.9.2/libthrift-0.9.2.pom
/Users/yic/.coursier//cache/v1/https/repo1.maven.org/maven2/org/apache/thrift/libthrift/0.9.2/libthrift-0.9.2.pom.sha1

Ivy resolve does it correctly:

[tw-mbp-yic pants (master)]$ java -jar /Users/yic/.ivy2//cache/org.apache.ivy/ivy/jars/ivy-2.3.0.jar -dependency org.apache.thrift libthrift 0.9.2
:: loading settings :: url = jar:file:/Users/yic/.ivy2/cache/org.apache.ivy/ivy/jars/ivy-2.3.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.apache.thrift#libthrift-caller;working
	confs: [default]
	found org.apache.thrift#libthrift;0.9.2 in public
	found org.slf4j#slf4j-api;1.5.8 in public
	found org.apache.httpcomponents#httpclient;4.2.5 in public
	found org.apache.httpcomponents#httpcore;4.2.4 in public
	found commons-logging#commons-logging;1.1.1 in default
	found commons-codec#commons-codec;1.6 in public
	found javax.servlet#servlet-api;2.5 in public
downloading http://repo1.maven.org/maven2/org/apache/thrift/libthrift/0.9.2/libthrift-0.9.2.jar ...
............................. (222kB)
.. (0kB)
	[SUCCESSFUL ] org.apache.thrift#libthrift;0.9.2!libthrift.jar (86ms)
downloading http://repo1.maven.org/maven2/org/apache/thrift/libthrift/0.9.2/libthrift-0.9.2-javadoc.jar ...
............................................................ (497kB)
.. (0kB)
	[SUCCESSFUL ] org.apache.thrift#libthrift;0.9.2!libthrift.jar(javadoc) (117ms)
downloading http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar ...
.... (22kB)
.. (0kB)
	[SUCCESSFUL ] org.slf4j#slf4j-api;1.5.8!slf4j-api.jar (25ms)
downloading http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.5/httpclient-4.2.5.jar ...
................................................. (423kB)
.. (0kB)
	[SUCCESSFUL ] org.apache.httpcomponents#httpclient;4.2.5!httpclient.jar (86ms)
downloading http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar ...
..................... (221kB)
.. (0kB)
	[SUCCESSFUL ] org.apache.httpcomponents#httpcore;4.2.4!httpcore.jar (51ms)
downloading http://repo1.maven.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar ...
................................. (227kB)
.. (0kB)
	[SUCCESSFUL ] commons-codec#commons-codec;1.6!commons-codec.jar (53ms)
downloading http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar ...
............... (102kB)
.. (0kB)
	[SUCCESSFUL ] javax.servlet#servlet-api;2.5!servlet-api.jar (36ms)
:: resolution report :: resolve 1208ms :: artifacts dl 464ms
	---------------------------------------------------------------------
	|                  |            modules            ||   artifacts   |
	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
	---------------------------------------------------------------------
	|      default     |   7   |   6   |   6   |   0   ||   8   |   7   |
	---------------------------------------------------------------------

:: problems summary ::
:::: ERRORS
	unknown resolver null

	unknown resolver null

	unknown resolver null

@alexarchambault
Copy link
Member

This is fixed in the current master (since https://github.com/alexarchambault/coursier/pull/430). The fix will be included in the upcoming 1.0.0-M15-2. Feel free to re-open if you still face this 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

2 participants