Closed vigna closed 2 years ago
Definitely an improvement, but we are still far from Maven:
xalan:xalan:2.5.1 (2006-06-28 12:00:12.0)
commons-collections:commons-collections:20040616 (2005-10-15 04:07:58.0)
org.apache.mina:mina-filter-ssl:1.1.7 (2008-04-19 05:44:09.0)
org.slf4j:integration:1.7.6 (2014-02-05 21:40:50.0)
commons-dbcp:commons-dbcp:1.2.2 (2007-04-04 03:46:28.0)
javax.mail:mail:1.4 (2006-05-02 21:22:22.0)
junitperf:junitperf:1.8 (2005-08-01 07:42:49.0)
commons-logging:commons-logging:1.1.1 (2007-11-26 19:24:10.0)
mockobjects:mockobjects-core:0.09 (2006-06-28 12:00:11.0)
org.slf4j:slf4j-log4j12:1.5.6 (2008-11-21 12:57:06.0)
ch.qos.logback:logback-classic:1.1.2 (2014-04-02 17:42:38.0)
org.subethamail:subethasmtp:2.1.0 (2008-10-13 16:30:50.0)
tomcat:naming-java:5.0.28 (2005-12-20 15:20:36.0)
com.h2database:h2:1.2.132 (2010-03-21 13:56:26.0)
postgresql:postgresql:8.4-701.jdbc4 (2009-10-01 21:20:19.0)
ch.qos.cal10n:cal10n-api:0.8.1 (2013-04-13 11:07:17.0)
dom4j:dom4j:1.6.1 (2005-11-23 20:49:05.0)
junit:junit:4.12-beta-1 (2014-07-27 18:41:00.0)
org.slf4j:slf4j-simple:1.3.1 (2007-04-15 18:08:46.0)
org.apache.felix:org.apache.felix.main:2.0.2 (2009-11-01 18:43:24.0)
org.slf4j:log4j-over-slf4j:1.7.6 (2014-02-05 21:40:12.0)
org.slf4j:jul-to-slf4j:1.7.6 (2014-02-05 21:40:24.0)
xerces:xercesImpl:2.6.2 (2005-11-22 17:28:31.0)
org.mockito:mockito-core:1.9.0 (2011-12-20 00:26:14.0)
hsqldb:hsqldb:1.8.0.7 (2006-10-02 17:34:54.0)
org.apache.mina:mina-integration-jmx:1.1.7 (2008-04-19 05:46:03.0)
javax.servlet:servlet-api:2.4 (2010-04-13 17:14:57.0)
org.easymock:easymock:3.1 (2011-11-09 23:06:04.0)
org.slf4j:slf4j-jdk14:1.7.6 (2014-02-05 21:38:00.0)
ch.qos.logback:logback-core:1.1.2 (2014-04-02 17:40:46.0)
org.apache.openejb:javaee-api:5.0-2 (2009-05-30 23:15:33.0)
cglib:cglib-nodep:2.2.2 (2011-05-10 11:55:01.0)
com.martiansoftware:jsap:2.1 (2007-01-01 16:58:03.0)
oro:oro:2.0.8 (2005-11-22 17:23:18.0)
it.unimi.dsi:fastutil:6.5.15 (2014-04-09 10:24:51.0)
commons-configuration:commons-configuration:1.8 (2012-01-27 19:42:07.0)
org.hamcrest:hamcrest-core:1.3 (2012-07-09 19:08:02.0)
javax.activation:activation:1.1 (2006-05-02 21:20:27.0)
commons-lang:commons-lang:2.6 (2011-01-16 21:21:47.0)
dbunit:dbunit:2.1 (2005-08-01 07:35:15.0)
org.slf4j:slf4j-api:1.7.7 (2014-04-04 09:12:47.0)
xml-apis:xml-apis:1.0.b2 (2005-11-22 17:28:38.0)
mockobjects:mockobjects-jdk1.4-j2ee1.3:0.09 (2006-06-28 12:00:11.0)
org.apache.commons:commons-math3:3.3 (2014-05-07 18:48:00.0)
junit-addons:junit-addons:1.4 (2005-08-01 07:42:49.0)
tomcat:naming-common:5.0.28 (2005-12-20 15:20:36.0)
org.slf4j:slf4j-ext:1.7.6 (2014-02-05 21:39:46.0)
commons-pool:commons-pool:1.4 (2009-06-16 22:46:39.0)
commons-io:commons-io:2.4 (2012-06-12 20:22:25.0)
log4j:log4j:1.2.14 (2006-12-01 05:27:21.0)
emma:emma_ant:2.1.5320 (2010-10-15 20:08:50.0)
org.objenesis:objenesis:1.2 (2009-08-26 20:49:04.0)
mysql:mysql-connector-java:5.1.9 (2009-10-01 20:59:57.0)
com.google.guava:guava:18.0 (2014-08-25 16:48:34.0)
com.icegreen:greenmail:1.3 (2008-01-04 09:17:11.0)
emma:emma:2.1.5320 (2010-10-15 20:03:58.0)
ant:ant-junit:1.6.5 (2005-11-22 17:06:42.0)
Definitely an improvement, but we are still far from Maven:
Yes, I am aware of this issue. As I said earlier, currently the resolver does not filter the exclusions properly and this is the most likely source of these superfluous artifacts. Because right now the REST API is the highest priority, I will be able to fix that only after I am done with the REST API.
I understand, but please do not close issues that have not been resolved.
@vigna Also in the meantime if you only need dependencies you can use MavenResolver
instead of GraphMavenResolver
as indicated here. However, I must warn that it works only in around 50% of the cases (can't make it better because the other 50% come from Maven errors when running mvn dependency:list
on the artifact's downloaded POM file).
@vigna I made so that only compile
, runtime
and provided
dependencies are in the final dependency set. This way it.unimi.dsi:dsiutils:2.2.2
returns 17 dependencies which is way closer to the Maven.
This should be fixed with the new improvements to the POMAnalyzer and Callable Indexer. Feel free to open the issue again if it persists.
In the output of GraphMavenResolver.resolveFullDependencySet() for it.unimi.dsi / dsiutils / 2.2.2 (compile scope) we find hundreds of dependencies (see below). The actual dependencies (at the current timestamp) are
checker-qual-3.5.0.jar commons-collections-20040616.jar commons-configuration-1.10.jar commons-io-2.8.0.jar commons-lang-2.6.jar commons-logging-1.1.1.jar commons-math3-3.6.1.jar error_prone_annotations-2.3.4.jar failureaccess-1.0.1.jar fastutil-8.4.3.jar guava-30.0-jre.jar j2objc-annotations-1.3.jar jsap-2.1.jar jsr305-3.0.2.jar listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar slf4j-api-1.7.30.jar
that is, about a dozen.