Hi Artifactory Users,
I'm trying to deploy to artifactory using SBT, but I am getting the
following error:
java.io.IOException: PUT operation to URL
http://<artifactory-server>:8081/artifactory/engineering-snapshots/com/gocatch/gobuild_2.10_0.13/0.1-SNAPSHOT/gobuild-0.1-SNAPSHOT.pom
failed with status code 409: Conflict
at
org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:82)
at
org.apache.ivy.util.url.BasicURLHandler.upload(BasicURLHandler.java:231)
at org.apache.ivy.util.FileUtil.copy(FileUtil.java:150)
at
org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84)
at
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
at
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:234)
at
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216)
at sbt.IvyActions$$anonfun$publish$3.apply(IvyActions.scala:258)
at sbt.IvyActions$$anonfun$publish$3.apply(IvyActions.scala:257)
at
scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
at
scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
at
scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
at sbt.IvyActions$.publish(IvyActions.scala:257)
at
sbt.IvyActions$$anonfun$publish$1$$anonfun$apply$1.apply$mcV$sp(IvyActions.scala:93)
at
sbt.IvyActions$$anonfun$publish$1$$anonfun$apply$1.apply(IvyActions.scala:93)
at
sbt.IvyActions$$anonfun$publish$1$$anonfun$apply$1.apply(IvyActions.scala:93)
at sbt.IvyActions$.withChecksums(IvyActions.scala:102)
at sbt.IvyActions$.sbt$IvyActions$$withChecksums(IvyActions.scala:97)
at sbt.IvyActions$$anonfun$publish$1.apply(IvyActions.scala:93)
at sbt.IvyActions$$anonfun$publish$1.apply(IvyActions.scala:87)
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$.publish(IvyActions.scala:87)
at sbt.Classpaths$$anonfun$publishTask$1.apply(Defaults.scala:1111)
at sbt.Classpaths$$anonfun$publishTask$1.apply(Defaults.scala:1110)
at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35)
at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34)
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:724)
[error] (*:publish) java.io.IOException: PUT operation to URL
http://nexus.gocatchapp.com:8081/artifactory/engineering-snapshots/com/gocatch/gobuild_2.10_0.13/0.1-SNAPSHOT/gobuild-0.1-SNAPSHOT.pom
failed with status code 409: Conflict
My SBT configuration is as follows:
publishTo := {
val nexus = "http://<artifactory-server>:8081/artifactory"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("Artifactory Realm" at s"$nexus/engineering-snapshots")
else
Some("Artifactory Realm" at s"$nexus/engineering-releases")
}
credentials += Credentials("Artifactory Realm", "nexus.gocatchapp.com",
"<username>", "<password>")
Any idea what could be wrong?
Cheers,
-John
--
View this message in context:
http://forums.jfrog.org/Can-t-deploy-to-artifactory-tp7579547.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users