Failure to find org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0.RC1 - apache-karaf

I was getting following error while running Apache Karaf through Pax-Exam
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.1.5:features-add-to-repository (features-add-to-repository) on project my-project: Error populating repository: Can't resolve artifact org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1.0.0.RC1,2): Failure to find org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1.0.0.RC1,2) in http://x.x.x.x/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.ops4j.pax.cdi -DartifactId=pax-cdi-features -Dversion=[1.0.0.RC1,2) -Dclassifier=features -Dpackaging=xml -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.ops4j.pax.cdi -DartifactId=pax-cdi-features -Dversion=[1.0.0.RC1,2) -Dclassifier=features -Dpackaging=xml -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
so i tried to get it manually with below maven command
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get
-DrepoUrl=https://oss.sonatype.org/content/repositories/ops4j-snapshots#id=ops4j.sonatype.snapshots.deploy#snapshots#noreleases
-Dartifact=org.ops4j.pax.cdi:pax-cdi-features:1.0.0
but its still giving following error and unable to download it
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get (default-cli) on project standalone-pom: Couldn't download artifact
: Failure to find org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0 in http://x.x.x.x/nexus/content/groups/public was cached in the local repository, res
olution will not be reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.ops4j.pax.cdi -DartifactId=pax-cdi-features -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.ops4j.pax.cdi -DartifactId=pax-cdi-features -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[ur
l] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] nexus (http://x.x.x.x/nexus/content/groups/public, releases=true, snapshots=true),
[ERROR] temp (https://oss.sonatype.org/content/repositories/ops4j-snapshots#id=ops4j.sonatype.snapshots.deploy#snapshots#noreleases, releases=true, snaps
hots=true)
Update1:
I found while downloading manually its asking about maven-downloader-plugin but i couldnt find this plugin
←[1;31mERROR←[m] ←[1;31m Path to dependency: ←[m
←[1;31mERROR←[m] ←[1;31m 1) org.apache.maven.plugins:maven-downloader-plugin:jar:1.0←[m
←[1;31mERROR←[m] ←[1;31m 2) org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0.RC2←[m
←[1;31mERROR←[m] ←[1;31m←[m
←[1;31mERROR←[m] ←[1;31m----------←[m
←[1;31mERROR←[m] ←[1;31m1 required artifact is missing.←[m
←[1;31mERROR←[m] ←[1;31m←[m
←[1;31mERROR←[m] ←[1;31mfor artifact: ←[m
←[1;31mERROR←[m] ←[1;31m org.apache.maven.plugins:maven-downloader-plugin:jar:1.0←[m

Related

Don't know where a SBT dependency comes from

I have a SBT project with many dependencies.
It complains it cannot download a dependency.
I have not listed explicitly. It could be a transitive dependency.
The commands dependencyList or dependencyTree doesn't list it, whereas the update task fails. I'm quite used to use these tasks for guessing things.
> update
[info] Updating
[info] Resolved dependencies
[warn]
[warn] Note: Unresolved dependencies path:
[error] stack trace is suppressed; run last servision / update for the full output
[error] (servision / update) sbt.librarymanagement.ResolveException: Error downloading javax.media:jai_codec:1.1.3
[error] Not found
[error] Not found
[error] not found: /home/.ivy2/localjavax.media/jai_codec/1.1.3/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.pom
[error] not found: https://ec.europa.eu/cefdigital/artifact/content/groups/public/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.pom
[error] download error: Caught javax.net.ssl.SSLHandshakeException (No subject alternative DNS name matching nexus.osgeo.org found.) while downloading https://nexus.osgeo.org/repository/Geoserver-releases/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.pom
[error] not found: http://maven.geo-solutions.it/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.pom
[error] not found: http://jbig2-imageio.googlecode.com/svn/maven-repository/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.pom
[error] not found: http://www.billylieurance.net/maven2/javax/media/jai_codec/1.1.3/jai_codec-1.1.3.pom
[error] No fallback URL found
I've tried to list the dependency with a from clause, but it doesn't work either.
The whatDependsOn command doesn't recognize the dependency.
n> whatDependsOn javax.media jai_core
[error] Expected whitespace character
[error] Expected 'commons-pool'
[error] Expected 'commons-beanutils'
[error] Expected 'xml-apis'
[error] Expected 'oro'
[error] Expected 'org.postgresql'
[error] Expected 'org.checkerframework'
[error] Expected 'commons-digester'
[error] Expected 'commons-codec'
[error] Expected 'commons-betwixt'
[error] Expected 'commons-collections'
[error] Expected 'commons-logging'
[error] Expected 'ddlutils'
[error] Expected 'commons-dbcp'
[error] Expected 'net.postgis'
[error] Expected 'commons-lang'
[error] Expected 'org.slf4j'
[error] Expected 'io.circe'
[error] Expected 'org.typelevel'
[error] Expected 'com.chuusai'
[error] Expected 'todovision'
[error] Expected 'jakarta-regexp'
[error] Expected 'javax.servlet'
[error] Expected 'javax.activation'
[error] Expected 'javax.xml.bind'
[error] Expected 'javax.measure'
[error] whatDependsOn javax.media jai_core
This worksaround doesn't work either (I've placed previously the offending .jar in lib/):
projectDependencies += "javax.media" % "jai_core" % "1.1.3" from s"file://${baseDirectory.value}/lib/jai_core-1.1.3.jar"
This one does work:
projectDependencies += "javax.media" % "jai_codec" % "1.1.3" from "https://mywebserver.com/jai_codec-1.1.3.jar"
but it makes me upload the .jar to a web server.
I think this is a bug in SBT or Coursier.

Error 405 PUT | How to publish to nexus through sbt?

I'm testing the locally deployed Nexus using a Demo Project. I've created this repo: com.example on Nexus using create Repository. The URL of the repository on local Nexus is: http://localhost:8081/repository/com.example/.
The configuration in build.sbt goes like:
name := "data-models"
version := "0.1"
scalaVersion := "2.12.7"
organization := "com.example"
val snapshotsName = "Repository Snapshots"
val snapshotsUrl = new java.net.URL("http://localhost:8081/repository/com.example/")
val snapshotsPattern = "[organisation]/[module]/[revision]-SNAPSHOT/[artifact]-[revision](-[timestamp]).[ext]"
val snapshots = Resolver.url(snapshotsName, snapshotsUrl)(Patterns(snapshotsPattern))
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishTo := Some("Sonatype Nexus Repository Manager" at "http://localhost:8081/repository/com.example/")
The Credentials conf goes like:
realm=Sonatype Nexus Repository Manager
host=localhost:8081
user=admin
password=qwerty123#345ty
Then I try to run sbt publish.
I get this error:
[info] Loading project definition from /home/yash/IdeaProjects/data-models/project
[info] Loading settings for project data-models from build.sbt ...
[info] Set current project to data-models (in build file:/home/yash/IdeaProjects/data-models/)
[info] Packaging /home/yash/IdeaProjects/data-models/target/scala-2.12/data-models_2.12-0.1-sources.jar ...
[info] Updating ...
[info] Done packaging.
[info] Done updating.
[info] Wrote /home/yash/IdeaProjects/data-models/target/scala-2.12/data-models_2.12-0.1.pom
[info] Packaging /home/yash/IdeaProjects/data-models/target/scala-2.12/data-models_2.12-0.1.jar ...
[info] Done packaging.
[error] java.io.IOException: PUT operation to URL http://localhost:8081/com/example/data-models_2.12/0.1/data-models_2.12-0.1.pom failed with status code 405: HTTP method PUT is not supported by this URL
[error] at org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:82)
[error] at sbt.internal.librarymanagement.ivyint.GigahorseUrlHandler.upload(GigahorseUrlHandler.scala:191)
[error] at org.apache.ivy.util.url.URLHandlerDispatcher.upload(URLHandlerDispatcher.java:82)
[error] at org.apache.ivy.util.FileUtil.copy(FileUtil.java:150)
[error] at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84)
[error] at sbt.internal.librarymanagement.ConvertResolver$LocalIfFileRepo.put(ConvertResolver.scala:366)
[error] at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
[error] at sbt.internal.librarymanagement.ConvertResolver$ChecksumFriendlyURLResolver.put(ConvertResolver.scala:118)
[error] at sbt.internal.librarymanagement.ConvertResolver$ChecksumFriendlyURLResolver.put$(ConvertResolver.scala:105)
[error] at sbt.internal.librarymanagement.ConvertResolver$$anonfun$defaultConvert$lzycompute$1$PluginCapableResolver$1.put(ConvertResolver.scala:165)
[error] at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$5(IvyActions.scala:497)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$5$adapted(IvyActions.scala:496)
[error] at scala.collection.TraversableLike$WithFilter.$anonfun$foreach$1(TraversableLike.scala:788)
[error] at scala.collection.Iterator.foreach(Iterator.scala:937)
[error] at scala.collection.Iterator.foreach$(Iterator.scala:937)
[error] at scala.collection.AbstractIterator.foreach(Iterator.scala:1425)
[error] at scala.collection.IterableLike.foreach(IterableLike.scala:70)
[error] at scala.collection.IterableLike.foreach$(IterableLike.scala:69)
[error] at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
[error] at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:787)
[error] at sbt.internal.librarymanagement.IvyActions$.publish(IvyActions.scala:496)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$3(IvyActions.scala:144)
[error] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error] at sbt.internal.librarymanagement.IvyActions$.withChecksums(IvyActions.scala:157)
[error] at sbt.internal.librarymanagement.IvyActions$.withChecksums(IvyActions.scala:151)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$1(IvyActions.scala:144)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$1$adapted(IvyActions.scala:134)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:239)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error] at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error] at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:95)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:60)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:238)
[error] at sbt.internal.librarymanagement.IvyActions$.publish(IvyActions.scala:134)
[error] at sbt.Classpaths$.$anonfun$publishTask$4(Defaults.scala:2411)
[error] at sbt.Classpaths$.$anonfun$publishTask$4$adapted(Defaults.scala:2411)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:40)
[error] at sbt.std.Transform$$anon$4.work(System.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:269)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:278)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:269)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (publish) java.io.IOException: PUT operation to URL http://localhost:8081/com/example/data-models_2.12/0.1/data-models_2.12-0.1.pom failed with status code 405: HTTP method PUT is not supported by this URL
I'm not able to understand what's wrong. Is it the correct way to do it?
What is the correct way?
Thanks in Advance.
Attaching a Screenshot of the Nexus repo.
I think I found the issue, actually I think it requires a SNAPSHOT type repo and a -snapshot keyword in the binary bundle which we want to deploy.
As soon as I configured it like:
name := "data-models"
version := "1.0.0-SNAPSHOT"
scalaVersion := "2.11.7"
organization := "com.example"
val snapshotsName = "Repository Snapshots"
val snapshotsUrl = new java.net.URL("http://localhost:8081/repository/example-snapshot/")
val snapshotsPattern = "[organisation]/[module]/[revision]-SNAPSHOT/[artifact]-[revision](-[timestamp]).[ext]"
val snapshots = Resolver.url(snapshotsName, snapshotsUrl)(Patterns(snapshotsPattern))
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
//credentials += Credentials("Sonatype Nexus Repository Manager", "localhost", "admin", "qwerty123#")
publishTo := Some("Sonatype Nexus Repository Manager" at "http://localhost:8081/repository/example-snapshot/")
It started to deploy.

Prevent SBT from starting interactive mode

I like to enter commands while the previous command is still running. When the command completes, my shell will immediately execute the next.
This is no longer possible with modern incarnations of SBT. If you enter anything while SBT is running, it will assume you want to execute what you've entered in SBT's interactive mode.
This is very annoying.
$ sbt test
...
[info]
[info] Passed: Total 348, Failed 0, Errors 0, Passed 348
[success] Total time: 17 s, completed 18/01/2018 4:19:49 PM
> git status
[error] Expected ID character
[error] Not a valid command: git (similar: exit, plugin, set)
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: git (similar: ivySbt, target)
[error] git status
[error] ^
>
Can I reconfigure SBT so that the process always terminates after the batch has completed and does not switch to interactive mode?

Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved - BW6 maven plugin build issue

I am using BWCE Studio (2.1.0), BW6 maven plugin (1.1.0). When I try to build a BWCE application from Jenkins using the BW6 maven plugin, I get following error:
Jenkins Console Output:::
Started by user admin
Building in workspace C:\Program Files (x86)\Jenkins\workspace\bwce-app-build
C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
C:\Program Files\Git\bin\git.exe config remote.origin.url _https://github.com/RajibBiswasTibco/BWCEJenkins.git # timeout=10
Fetching upstream changes from _https://github.com/RajibBiswasTibco/BWCEJenkins.git
C:\Program Files\Git\bin\git.exe --version # timeout=10
C:\Program Files\Git\bin\git.exe fetch --tags --progress _https://github.com/RajibBiswasTibco/BWCEJenkins.git +refs/heads/:refs/remotes/origin/
C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision 8d093265f7e348f79e506c905be3702abe41ec33 (refs/remotes/origin/master)
C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
C:\Program Files\Git\bin\git.exe checkout -f 8d093265f7e348f79e506c905be3702abe41ec33
C:\Program Files\Git\bin\git.exe rev-list 8d093265f7e348f79e506c905be3702abe41ec33 # timeout=10
Parsing POMs
Established TCP socket on 53491
[bwce-test-app.application.parent] $ java -cp "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-agent-1.8.1.jar;C:\sw\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;C:\sw\apache-maven-3.3.9/conf/logging" jenkins.maven3.agent.Maven33Main C:\sw\apache-maven-3.3.9 "C:\Program Files (x86)\Jenkins\war\WEB-INF\lib\remoting-2.62.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-interceptor-1.8.1.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.8.1.jar" 53491
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application.parent\pom.xml clean package
[INFO] Scanning for projects...
[WARNING] The POM for com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 is missing, no dependency information available
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced #
[ERROR] Unknown packaging: bwmodule # com.tibco.bw:bwce-test-app:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app\pom.xml, line 12, column 14
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced #
[ERROR] Unknown packaging: bwear # com.tibco.bw:bwce-test-app.application:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application\pom.xml, line 12, column 14
#
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project com.tibco.bw:bwce-test-app:1.0.0-SNAPSHOT (C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: bwmodule # com.tibco.bw:bwce-test-app:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app\pom.xml, line 12, column 14
[ERROR]
[ERROR] The project com.tibco.bw:bwce-test-app.application:1.0.0-SNAPSHOT (C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin com.tibco.plugins:bw6-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failure to find com.tibco.plugins:bw6-maven-plugin:jar:1.1.0 in _https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: bwear # com.tibco.bw:bwce-test-app.application:[unknown-version], C:\Program Files (x86)\Jenkins\workspace\bwce-app-build\bwce-test-app.application\pom.xml, line 12, column 14
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] _http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] _http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
channel stopped
Finished: FAILURE
The problem is that the maven local repositoty is different betweeen jenkins and maven.
You have 2 option:
You will update the configuration option(setting.xml) for maven in jenkins.
or
You copy this path C:\Users\$USER_NAME\.m2\repository\com\tibco\plugins\bw6-maven-plugin in the local repository for jenkins.

java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.listeningDecorator

I am seeing the below exception when creating a Cassandra Cluster object using java client.
val cluster = Cluster.builder().
withProtocolVersion(ProtocolVersion.V3).
addContactPoint("127.0.0.1").
build()
The exceptions says com.google.common.util.concurrent.MoreExecutors.listeningDecorator method not found. But the library(guava) is added to the classPath.
[error] Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.listeningDecorator(Ljava/util/concurrent/ExecutorService;)Lcom/google/common/util/concurrent/ListeningExecutorService;
[error] at com.datastax.driver.core.Cluster.makeExecutor(Cluster.java:1100)
[error] at com.datastax.driver.core.Cluster.access$700(Cluster.java:62)
[error] at com.datastax.driver.core.Cluster$Manager.<init>(Cluster.java:1160)
[error] at com.datastax.driver.core.Cluster$Manager.<init>(Cluster.java:1110)
[error] at com.datastax.driver.core.Cluster.<init>(Cluster.java:118)
[error] at com.datastax.driver.core.Cluster.<init>(Cluster.java:105)
[error] at com.datastax.driver.core.Cluster.buildFrom(Cluster.java:174)
[error] at com.datastax.driver.core.Cluster$Builder.build(Cluster.java:1075)
show fullClasspath - contains guava
Attributed(/home/kiranraj/.ivy2/cache/com.google.guava/guava/bundles/guava-16.0.1.jar)
Update guava to the lastest version.
You can also check if is conflicting with any other JAR.

Resources