ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Suereth <joshua.suer...@gmail.com>
Subject Re: [Ivy] Wrong resolution of maven artifacts and maven profiles/properties
Date Mon, 28 Apr 2014 11:19:24 GMT
Just two notes:

1. It could be sbt has misconfigured Ivy.
2.  I've seen this issue more than once, usually involving parent poms and
failed dependency override semantics.   We have a tool, sbt-pom-reader,
which also struggles when trying to convert pom.xml's with complex
parent-pom relationships into ivy.xml files.

Any ideas welcome.  I can get you more of an ivy log dump if needed.


On Mon, Apr 28, 2014 at 5:52 AM, fabien.retif <fabien.retif@zoho.com> wrote:

>
> Dear,
>
> I am a user of the play framework which uses SBT and Ivy.
>
> I have got troubles with maven dependencies when I use the Geotoolkit
> librairy (http://www.geotoolkit.org/).
>
> name := "play-bug-report"
>
>
> version := "1.0-SNAPSHOT"
>
> libraryDependencies ++= Seq(
>
>   javaJdbc,
>   javaEbean,
>   cache,
>   "org.geotoolkit.pending" % "geotk-processing-core" % "4.0-M0"
> )
>
> play.Project.playJavaSettings
>
> resolvers += (
>
>     "Geotoolkit.org Repository" at "http://maven.geotoolkit.org"
> )
>
>
> In this bug report, I use version 0.13.0 of SBT and 2.3.0 RC1 or RC2  of
> Ivy.
>
> After reporting my problem to the SBT team, we think that Ivy is involved.
> (https://groups.google.com/forum/#!topic/sbt-dev/mO4n7FR2icQ).
>
> Attached you will find a simplified scheme of the pom definition of Geotk
> and below the exception stack.
>
> $ ../softs/play-2.2.2/play run
> [info] Loading project definition from /home/fabien/work/littocms/play-bug-report/project
> [info] Set current project to play-bug-report (in build file:/home/fabien/work/littocms/play-bug-report/)
> [info] Updating {file:/home/fabien/work/littocms/play-bug-report/}play-bug-report...
> [info] Resolving org.opengis#geoapi-pending;${geoapi.version} ...
> [warn]  module not found: org.opengis#geoapi-pending;${geoapi.version}
> [warn] ==== local: tried
> [warn]   /home/fabien/work/littocms/softs/play-2.2.2/repository/local/org.opengis/geoapi-pending/${geoapi.version}/ivys/ivy.xml
> [warn] ==== Maven2 Local: tried
> [warn]   file:/home/fabien/.m2/repository/org/opengis/geoapi-pending/${geoapi.version}/geoapi-pending-${geoapi.version}.pom
> [warn] ==== public: tried
> [warn]   http://repo1.maven.org/maven2/org/opengis/geoapi-pending/${geoapi.version}/geoapi-pending-${geoapi.version}.pom
<http://repo1.maven.org/maven2/org/opengis/geoapi-pending/$%7Bgeoapi.version%7D/geoapi-pending-$%7Bgeoapi.version%7D.pom>
> [warn] ==== Typesafe Releases Repository: tried
> [warn]   http://repo.typesafe.com/typesafe/releases/org/opengis/geoapi-pending/${geoapi.version}/geoapi-pending-${geoapi.version}.pom
<http://repo.typesafe.com/typesafe/releases/org/opengis/geoapi-pending/$%7Bgeoapi.version%7D/geoapi-pending-$%7Bgeoapi.version%7D.pom>
> [warn] ==== Geotoolkit.org Repository: tried
> [warn]   http://maven.geotoolkit.org/org/opengis/geoapi-pending/${geoapi.version}/geoapi-pending-${geoapi.version}.pom
<http://maven.geotoolkit.org/org/opengis/geoapi-pending/$%7Bgeoapi.version%7D/geoapi-pending-$%7Bgeoapi.version%7D.pom>
> [info] Resolving org.fusesource.jansi#jansi;1.4 ...
> [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
> [warn]  ::          UNRESOLVED DEPENDENCIES         ::
> [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
> [warn]  :: org.opengis#geoapi-pending;${geoapi.version}: not found
> [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
> sbt.ResolveException: unresolved dependency: org.opengis#geoapi-pending;${geoapi.version}:
not found
>
>     at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:213)
>
>     at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:122)
>
>     at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:121)
>
>     at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:116)
>
>     at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:116)
>
>     at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:104)
>
>     at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:51)
>
>     at sbt.IvySbt$$anon$3.call(Ivy.scala:60)
>
>     at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98)
>
>     at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81)
>
>     at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
>
>     at xsbt.boot.Using$.withResource(Using.scala:11)
>
>     at xsbt.boot.Using$.apply(Using.scala:10)
>
>     at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:62)
>
>     at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:52)
>
>     at xsbt.boot.Locks$.apply0(Locks.scala:31)
>
>     at xsbt.boot.Locks$.apply(Locks.scala:28)
>
>     at sbt.IvySbt.withDefaultLogger(Ivy.scala:60)
>
>     at sbt.IvySbt.withIvy(Ivy.scala:101)
>
>     at sbt.IvySbt.withIvy(Ivy.scala:97)
>
>     at sbt.IvySbt$Module.withModule(Ivy.scala:116)
>
>     at sbt.IvyActions$.update(IvyActions.scala:121)
>
>     at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1144)
>
>     at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1142)
>
>     at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$73.apply(Defaults.scala:1165)
>
>     at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$73.apply(Defaults.scala:1163)
>
>     at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:35)
>
>     at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1167)
>
>     at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1162)
>
>     at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:45)
>
>     at sbt.Classpaths$.cachedUpdate(Defaults.scala:1170)
>
>     at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1135)
>
>     at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1113)
>
>     at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
>
>     at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
>
>     at sbt.std.Transform$$anon$4.work(System.scala:64)
>
>     at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
>
>     at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
>
>     at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
>
>     at sbt.Execute.work(Execute.scala:244)
>
>     at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
>
>     at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
>
>     at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
>
>     at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
>
>     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>
>     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
>     at java.lang.Thread.run(Thread.java:744)
> [error] (*:update) sbt.ResolveException: unresolved dependency: org.opengis#geoapi-pending;${geoapi.version}:
not found
> [error] Total time: 27 s, completed 11 avr. 2014 15:02:33
>
> Please tell me if you need more information.
>
> Best regards,
>
> Fabien
> _.-~-._.-~-._.-~-._.-~-._.-~-._
> PhD. Fabien Rétif
> Géosciences Montpellier
> UMR 5243 - CC 60
> Universite Montpellier II
> Bat 22 - Bureau 468
> Place Eugène Bataillon
> 34095 Montpellier Cedex 5
> France
> Tel : +33 (0)4.67.14.35.85
> _.-~-._.-~-._.-~-._.-~-._.-~-._
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message