IVY Unresolved dependencies GWT 2.7.0 - gwt

I'm trying to resolve the following dependencies using IVY 2.5.0-rc1 where gwt.version=[2.7.0, 2.8.0, 2.8.2] and I'm pointing to https://jcenter.bintray.com/ as a repository
<dependency org="com.google.gwt" name="gwt-user" rev="${gwt.version}"
conf="gwt-compile, compile->master"/>
<dependency org="com.google.gwt" name="gwt-dev" rev="${gwt.version}"
conf="compile, gwt-compile->master" />
<dependency org="com.google.gwt" name="gwt-servlet" rev="${gwt.version}"
conf="compile, gwt-compile, war-libs->master" />
This results in the following output
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: com.google.gwt#gwt-user;2.7.0: com.google.gwt#gwt;2.7.0->org.sonatype.oss#oss-parent;4
[ivy:resolve] :: com.google.gwt#gwt-dev;2.7.0: com.google.gwt#gwt;2.7.0->org.sonatype.oss#oss-parent;4
[ivy:resolve] :: com.google.gwt#gwt-servlet;2.7.0: com.google.gwt#gwt;2.7.0->org.sonatype.oss#oss-parent;4
The org.sonatype.oss#oss-parent;4 appears to exist in the repository https://jcenter.bintray.com/org/sonatype/oss/oss-parent/
I've tried using excludes for oss-parent both at the dependency and dependencies level without success. I've also tried setting the transitive=false attribute on the gwt dependency elements.
The only relevant post I could find was this, which has no response.
I also saw the following deprecation warning regarding oss-parent
Sonatype OSS Parent poms - oss-parents
DEPRECATION WARNING:
This project is no longer active or supported. We suggest to manage parent POM files for your own organization as needed. The POM files from this project no longer work with latest Maven and/or Java versions.
For deployments to the Central Repository and the needed setup, please refer to http://central.sonatype.org

This is due to the following bug in ivy 2.5.0-rc1: https://issues.apache.org/jira/browse/IVY-1588
The best workaround I've found until they push out a release with the fix they implemented is to downgrade to ivy 2.4

Related

Could not retrieve Sbt 0.13.15 while importing project

I am usig Intellij IDEA 2017.1.5 with Scala plugin installed. I created my first Scala project with SBT. I get following error while importing SBT project:
:: problems summary :: :::: WARNINGS problem while downloading module
descriptor:
https://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivy-2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4.pom:
Read timed out (19336ms)
module not found:
org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4
==== local: tried
C:\Users\Kacper\.ivy2\local\org.scala-sbt.ivy\ivy\2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4\ivys\ivy.xml
-- artifact org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4!ivy.jar:
C:\Users\Kacper\.ivy2\local\org.scala-sbt.ivy\ivy\2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4\jars\ivy.jar
==== Maven Central: tried
https://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivy-2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4.pom
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt.ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivys/ivy.xml
==== sbt-ivy-snapshots: tried
https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt.ivy/ivy/2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4/ivys/ivy.xml
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
::
org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4:
not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS unresolved
dependency:
org.scala-sbt.ivy#ivy;2.3.0-sbt-48dd0744422128446aee9ac31aa356ee203cc9f4:
not found Error during sbt execution: Error retrieving required
libraries (see C:\Users\Kacper\.sbt\boot\update.log for complete log)
Error: Could not retrieve sbt 0.13.14 Java HotSpot(TM) 64-Bit Server
VM warning: ignoring option MaxPermSize=384M; support was removed in
8.0
I get the same error while getting sbt 0.13.15 and 0.13.14.

Upgraded to sbt 0.13.9; now I cannot launch sbt

I upgraded sbt from version 0.13.8 to 0.13.9. We have Nexus proxying many repositories. Now, when I issue 'sbt' command - I get unresolved dependencies
scala-library
scala-compilre
scala-reflect
all due to sha1 different from the computed. Is there a way to bypass sha1 validation?
FYI. setting checksums in update := Nil in build.sbt does not solve the problem. I even tried putting
<property name="ivy.checksums" value=""/> in ~/.ivy/ivysettings.xml still fails.
here is the console output:
D:\Temp\test>sbt -v update
Getting org.scala-sbt sbt 0.13.9 ...
:: problems summary ::
:::: WARNINGS
problem while downloading module descriptor: http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-library/2.10.5/scala-library-2.10.5.pom: invalid sha1: expected=c39e31e37ce77d8d5fb8e8c640222275815d36f2 computed=4e8b721680f2defb491fe90447302658d464d5c
0 (351ms)
module not found: org.scala-lang#scala-library;2.10.5
==== local: tried
C:\Users\ak\.ivy2\local\org.scala-lang\scala-library\2.10.5\ivys\ivy.xml
-- artifact org.scala-lang#scala-library;2.10.5!scala-library.jar:
C:\Users\ak\.ivy2\local\org.scala-lang\scala-library\2.10.5\jars\scala-library.jar
==== my-ivy-proxy-releases: tried
http://nexusserver:8081/nexus/content/groups/ivy-releases/org.scala-lang/scala-library/2.10.5/ivys/ivy.xml
==== my-maven-proxy-releases: tried
http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-library/2.10.5/scala-library-2.10.5.pom
problem while downloading module descriptor: http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-compiler/2.10.5/scala-compiler-2.10.5.pom: invalid sha1: expected=9a85822af1f9ea46b49dfdfa99eafc0bd819abaf computed=c3e0b6cf2f45a5a7cb052ef9e00f8fdac55e7
1b7 (69ms)
module not found: org.scala-lang#scala-compiler;2.10.5
==== local: tried
C:\Users\ak\.ivy2\local\org.scala-lang\scala-compiler\2.10.5\ivys\ivy.xml
-- artifact org.scala-lang#scala-compiler;2.10.5!scala-compiler.jar:
C:\Users\ak\.ivy2\local\org.scala-lang\scala-compiler\2.10.5\jars\scala-compiler.jar
==== my-ivy-proxy-releases: tried
http://nexusserver:8081/nexus/content/groups/ivy-releases/org.scala-lang/scala-compiler/2.10.5/ivys/ivy.xml
==== my-maven-proxy-releases: tried
http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-compiler/2.10.5/scala-compiler-2.10.5.pom
problem while downloading module descriptor: http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-reflect/2.10.5/scala-reflect-2.10.5.pom: invalid sha1: expected=3a6fa11041ac0c8b4d5fcf9d4f1372ba8c0b7216 computed=30f1f646114a79eeefb254ead190f045c460564
9 (67ms)
module not found: org.scala-lang#scala-reflect;2.10.5
==== local: tried
C:\Users\ak\.ivy2\local\org.scala-lang\scala-reflect\2.10.5\ivys\ivy.xml
-- artifact org.scala-lang#scala-reflect;2.10.5!scala-reflect.jar:
C:\Users\ak\.ivy2\local\org.scala-lang\scala-reflect\2.10.5\jars\scala-reflect.jar
==== my-ivy-proxy-releases: tried
http://nexusserver:8081/nexus/content/groups/ivy-releases/org.scala-lang/scala-reflect/2.10.5/ivys/ivy.xml
==== my-maven-proxy-releases: tried
http://nexusserver:8081/nexus/content/groups/mvn-repositories/org/scala-lang/scala-reflect/2.10.5/scala-reflect-2.10.5.pom
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-lang#scala-library;2.10.5: not found
:: org.scala-lang#scala-compiler;2.10.5: not found
:: org.scala-lang#scala-reflect;2.10.5: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-lang#scala-library;2.10.5: not found
unresolved dependency: org.scala-lang#scala-compiler;2.10.5: not found
unresolved dependency: org.scala-lang#scala-reflect;2.10.5: not found
Error during sbt execution: Error retrieving required libraries
(see C:\Users\ak\.sbt\boot\update.log for complete log)
Error: Could not retrieve sbt 0.13.9
It turned out to be an ordering issue with our Nexus proxy repositories. oss.sonatype.org maven repo was causing an issue when it was placed ahead of the Maven Central repo. Removing oss.sonatype.org maven repository solved the problem.

New sbt "feature" configuration not found in X / unresolved (transitive) dependencies

A rather recent new "feature" in sbt, perhaps 0.13.7 or 0.13.8, is a very annoying behaviour that transitive dependencies are not found any longer.
For example. I have a project A that depends on library B version 1.25.1 that depends on library C version 1.13.1. Only library dependency B is defined in A, naturally, because I don't want to define the whole tree of dozens of sub-libraries. Ok, this builds.
Now I update the dependency in A to become library B version 1.25.2 which in turn depends on library C version 1.13.2. Now sbt complains with the rather useless message "configuration not found in library-C;1.13.2: 'master'. It was required from library-B;1.25.2 compile", followed by an "unresolved dependency" exception. Sbt doesn't even bother to download library C version 1.13.2 from Maven Central or in fact find it already published locally. The only way to "solve" this is to add a depenency on library C version 1.13.2 to project A, which is precisely what I don't want to do.
Here is an example print out:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: de.sciss#scalacolliderugens-core_2.11;1.13.2: configuration not found in de.sciss#scalacolliderugens-core_2.11;1.13.2: 'master'. It was required from de.sciss#scalacolliderswing-core_2.11;1.25.2 compile
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] de.sciss:scalacolliderugens-core_2.11:1.13.2
[warn] +- de.sciss:scalacolliderugens-plugins_2.11:1.13.2
[warn] +- de.sciss:scalacolliderswing-core_2.11:1.25.2 (/home/hhrutz/Documents/devel/SoundProcesses/build.sbt#L167)
[warn] +- de.sciss:soundprocesses-compiler_2.11:2.20.0-SNAPSHOT
I suppose this is an annoying bug in sbt, or is there some deeper reasoning behind the failure to resolve transitive dependencies that I fail to understand?
The problem even came back a while after I had added library C explicitly. As often, the final solution was this:
$ rm -r ~/.ivy2/cache/
$ rm -r ~/.ivy2/local/
And then download the Internet again.

In pentaho ,during Configuring a Tomcat Server in Eclipse i cant build dev-rebuild file in ant

I am working on ubuntu OS,I have started working on pentaho-BI using eclipse..
Just started with this step by step configuration as mentioned in this link:pentaho startup
I have checked out bi-project
but i found problem while Configuring a Tomcat Server in Eclipse using Sysdeo Eclipse Tomcat Launcher...3rd step of given link:Configuring a Tomcat Server in Eclipse using Sysdeo Eclipse Tomcat Launcher..
some IVY get resolved but then error in building and build failed...:(
the output is as shown below:
---------------------------------------------------------------------
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] module not found: pentaho#pentaho-open-admin-console-package;2.0.0-SNAPSHOT
[ivy:resolve] ==== local: tried
[ivy:resolve] /home/hardik/.ivy2/local/pentaho/pentaho-open-admin-console-package/2.0.0-SNAPSHOT/ivys/ivy.xml
[ivy:resolve] -- artifact pentaho#pentaho-open-admin-console-package;2.0.0-
SNAPSHOT!pentaho-open-admin-console-package.jar:
[ivy:resolve] /home/hardik/.ivy2/local/pentaho/pentaho-open-admin-console-package/2.0.0-SNAPSHOT/jars/pentaho-open-admin-console-package-2.0.0-SNAPSHOT.jar
[ivy:resolve] ==== shared-ivy: tried
[ivy:resolve] ttp://repo.pentaho.org/artifactory/repo/pentaho/pentaho-open-admin-console-package/2.0.0-SNAPSHOT/pentaho-open-admin-console-package-2.0.0-SNAPSHOT.ivy.xml
[ivy:resolve] ==== shared-mvn: tried
[ivy:resolve] ttp://repo.pentaho.org/artifactory/repo/pentaho/pentaho-open-admin-console-package/2.0.0-SNAPSHOT/pentaho-open-admin-console-package-2.0.0-SNAPSHOT.pom
[ivy:resolve] -- artifact pentaho#pentaho-open-admin-console-package;2.0.0-SNAPSHOT!pentaho-open-admin-console-package.jar:
[ivy:resolve] ttp://repo.pentaho.org/artifactory/repo/pentaho/pentaho-open-admin-console-package/2.0.0-SNAPSHOT/pentaho-open-admin-console-package-2.0.0-SNAPSHOT.jar
[ivy:resolve] ==== public: tried
[ivy:resolve] ttp://repo1.maven.org/maven2/pentaho/pentaho-open-admin-console-package/2.0.0-SNAPSHOT/pentaho-open-admin-console-package-2.0.0-SNAPSHOT.pom
[ivy:resolve] -- artifact pentaho#pentaho-open-admin-console-package;2.0.0-SNAPSHOT!pentaho-open-admin-console-package.jar:
[ivy:resolve] ttp://repo1.maven.org/maven2/pentaho/pentaho-open-admin-console-package/2.0.0-SNAPSHOT/pentaho-open-admin-console-package-2.0.0-SNAPSHOT.jar
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: pentaho#pentaho-open-admin-console-package;2.0.0-SNAPSHOT: not found
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
BUILD FAILED
/home/hardik/workspace/bi-platform-v2/branches/2.0/bi-platform-build/dev_build.xml:84: The following error occurred while executing this line:
/home/hardik/workspace/bi-platform-v2/branches/2.0/bi-platform-assembly/common.xml:194: impossible to resolve dependencies:
resolve failed - see output for details
Total time: 27 seconds
As i cant put more than 2 links, i have removed h from all http, its not a mistake..
Doesn't look like version 2.0-SNAPSHOT is available from the repository. See:
http://repo.pentaho.org/artifactory/repo/pentaho/pentaho-open-admin-console-package/
I'd suggest editing the project's ivy.xml file and revising the revision. Perhaps use "2.0.0.stable" instead?

SBT won't resolve fakehttpserver dependency because of bad commons pom file

I'm trying to use this fake http server project in a sbt 0.11.0 based project. Unfortunately one of it's dependencies is giving the following error:
[error] public: bad organisation found in http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom: expected='org.apache.commons' found='commons-io'
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.commons#commons-io;1.3.2: java.text.ParseException: inconsistent module descriptor file found in 'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom': bad organisation: expected='org.apache.commons' found='commons-io';
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/home/project_location/}default-db401d/*:update: sbt.ResolveException: unresolved dependency: org.apache.commons#commons-io;1.3.2: java.text.ParseException: inconsistent module descriptor file found in 'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom': bad organisation: expected='org.apache.commons' found='commons-io';
From what I can tell this can be worked around by asking that ivy not check the consistency of the pom files (Maven has this setting off by default). I can't work out how to turn this off in sbt though. I tried
ivyValidate := false
but this has no effect.
Am I on the right track with this setting and is it possible to turn this setting off?
You could try to exclude this dependency and include it manually :
"se.dannej" % "fakehttpserver" % "0.1.0" exclude("org.apache.commons", "commons-io")
"commons-io" % "commons-io" % "another version"
or even download the commons-io jar and push it in your lib directory.