How to Install rsyslog v8.15 on Amazon Linux AMI - amazon-ec2

Im trying to upgrade rsyslog 5.8.10 on Amazon Linux AMI 2015.09 to v8.15.
Here is my steps:
vi /etc/yum.repos.d/rsyslog.repo
[rsyslog_v8]
name=Adiscon CentOS-$releasever - local packages for $basearch
baseurl=http://rpms.adiscon.com/v8-stable/epel-7/$basearch
enabled=0
gpgcheck=0
gpgkey=http://rpms.adiscon.com/RPM-GPG-KEY-Adiscon
protect=1
sudo yum install rsyslog --enablerepo=rsyslog_v8 --setopt=rsyslog_v8.priority=1
My Error output:
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
rsyslog_v8/x86_64 | 2.5 kB 00:00
zabbix | 951 B 00:00
5 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package rsyslog.x86_64 0:5.8.10-9.26.amzn1 will be updated
---> Package rsyslog.x86_64 0:8.15.0-1.el7 will be an update
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_38)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_201)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_183)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libgt for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-id128.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: liblogging-stdlog.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libjson-c.so.2()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libgthttp.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libgtbase.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libestr.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Running transaction check
---> Package json-c.x86_64 0:0.11-6.8.amzn1 will be installed
---> Package libestr.x86_64 0:0.1.10-1.el7 will be installed
---> Package libgt.x86_64 0:0.3.11-1.el7 will be installed
---> Package liblogging.x86_64 0:1.0.5-1.el7 will be installed
---> Package rsyslog.x86_64 0:8.15.0-1.el7 will be an update
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_38)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_201)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_183)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-id128.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-journal.so.0()(64bit)
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-id128.so.0()(64bit)
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_201)(64bit)
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_38)(64bit)
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_183)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Here is my step i have found working:
vi /etc/yum.repos.d/rsyslog.repo
[v8-stable]
name=Adiscon CentOS-6 - local packages for \$basearch
baseurl=http://rpms.adiscon.com/v8-stable/epel-6/\$basearch
enabled=0
gpgcheck=0
gpgkey=http://rpms.adiscon.com/RPM-GPG-KEY-Adiscon
protect=1

To be able to install rsyslog 8 on Amazon linux instance, You need to enable the repo by setting 'enable=1'. The following are the steps that worked with me:
create a file 'rsyslog.repo' in /etc/yum.repos.d/
Put the following in the newly created file:
[v8-stable]
name=Adiscon CentOS-6 - local packages for \$basearch
baseurl=http://rpms.adiscon.com/v8-stable/epel-6/\$basearch
enabled=1
gpgcheck=0
gpgkey=http://rpms.adiscon.com/RPM-GPG-KEY-Adiscon
protect=1
Type the following command if you are upgrading rsyslog
yum upgrade rsyslog --disablerepo=amzn-main
and the following command if you are installing rsyslog
yum install rsyslog --disablerepo=amzn-main

Related

Banned Dependencies in Jboss Wildfly

I'm working on migrating a legacy application from Jboss 6 to Wildfly 18. When I try to package up my application via maven I get the error:
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
Found Banned Dependency: javax.inject:javax.inject:jar:1
Found Banned Dependency: javax.activation:activation:jar:1.1
Found Banned Dependency: stax:stax-api:jar:1.0.1
Found Banned Dependency: org.slf4j:slf4j-log4j12:jar:1.7.25
Found Banned Dependency: com.sun.mail:javax.mail:jar:1.5.6
Found Banned Dependency: com.google.inject:guice:jar:4.2.3
Use 'mvn dependency:tree' to locate the source of the banned dependencies.
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
Failed while enforcing releasability. See above detailed error message.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.775 s
[INFO] Finished at: 2020-10-22T12:50:47-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M2:enforce (ban-bad-dependencies) on project Common: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
Upon looking into this, my project does indeed have some dependencies on artifacts that are listed as 'Banned' by the maven-enforcer plugin in the wildfly pom. Some of the dependencies I have been able to work around, but there are others like Guice that would be very difficult to remove. I know I could override the enforcer settings in my own poms, but I don't want to do that without some idea of why they were blacklisted in the first place.
Dose anyone know where I can find documentation explaining why certain artifacts are blocked by wildfly? Has anyone tried using Guice with wildfly successfully?
Update:
the parent for my pom:
<parent>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-parent</artifactId>
<version>18.0.1.Final</version>
</parent>

stack install curl fails

I am trying to install curl via stack using stack install curl-1.3.8 -v, and I am stuck with the following error:
2019-10-06 19:01:22.673216: [info] curl> Configuring curl-1.3.8...
2019-10-06 19:01:22.910469: [warn] curl> setup: Missing dependency on a foreign library:
2019-10-06 19:01:22.910594: [warn] curl> * Missing (or bad) C library: curl
2019-10-06 19:01:22.910679: [warn] curl> This problem can usually be solved by installing the system package that
2019-10-06 19:01:22.910776: [warn] curl> provides this library (you may need the "-dev" version). If the library is
2019-10-06 19:01:22.910892: [warn] curl> already installed but in a non-standard location then you can use the flags
2019-10-06 19:01:22.910970: [warn] curl> --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
2019-10-06 19:01:22.911056: [warn] curl> library file does exist, it may contain errors that are caught by the C
2019-10-06 19:01:22.911192: [warn] curl> compiler at the preprocessing stage. In this case you can re-run configure
2019-10-06 19:01:22.911261: [warn] curl> with the verbosity flag -v3 to see the error messages.
2019-10-06 19:01:22.911335: [warn] curl>
2019-10-06 19:01:22.918187: [error]
-- While building package curl-1.3.8 using:
/tmp/stack13678/curl-1.3.8/.stack-work/dist/x86_64-linux/Cabal-
2.2.0.1/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-2.2.0.1
configure --user --package-db=clear --package-db=global --package-db=/home
/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b /8.4.3
/pkgdb --libdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b
/8.4.3/lib --bindir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b
/8.4.3/bin --datadir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b /8.4.3
/share --libexecdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b/8.4.3
/libexec --sysconfdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b
/8.4.3/etc --docdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b /8.4.3
/doc/curl-1.3.8 --htmldir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b/8.4.3
/doc/curl-1.3.8 --haddockdir=/home/mkultra/.stack/snapshots/x86_64-
linux/275af25936ba6904cf7ea80d2b338c41bfce558acfce69b4ef46c0a85fc0b78b/8.4.3
/doc/curl-1.3.8 --dependency=base=base-4.11.1.0
--dependency=bytestring=bytestring-0.10.8.2
--dependency=containers=containers-0.5.11.0 -fnew-base --exact-configuration
--ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
Any idea how can I fix it?
Stack version: 2.1.3
Description: Ubuntu 19.04
As the error message you got says, "This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version)". In your case, you need a libcurl-dev package. Depending on your preferred TLS library, run one of sudo apt-get install libcurl4-openssl-dev, sudo apt-get install libcurl4-nss-dev, or sudo apt-get install libcurl4-gnutls-dev.

How to resolve dependency issues in ivy with infinispan dependency?

I have problems resolving dependencies of an infinispan library (infinispan-jcache). If I run ant ivy-retrieve then I got following message:
ivy-retrieve:
[ivy:cleancache] :: Apache Ivy 2.5.0-rc1 - 20180412005306 :: http://ant.apache.org/ivy/ ::
[ivy:cleancache] :: loading settings :: url = jar:file:/home/andreas/.ant/lib/ivy-2.5.0-rc1.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: example#ivy;working#ubuntu-dev
[ivy:retrieve] confs: [default]
[ivy:retrieve] :: resolution report :: resolve 1473ms :: artifacts dl 0ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 1 | 0 | 0 | 0 || 0 | 0 |
---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: org.infinispan#infinispan-jcache;9.4.8.Final: org.infinispan#infinispan-jcache-parent;9.4.8.Final->org.infinispan#infinispan-parent;9.4.8.Final->org.infinispan#infinispan-build-configuration-parent;9.4.8.Final
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
BUILD FAILED
/home/andreas/git/ivy-test/build.xml:5: impossible to resolve dependencies:
resolve failed - see output for details
Total time: 2 seconds
If I enable verbose output the problematic dependency seems to be infinispan-build-configuration-parent-9.4.8.Final.jar which simply doesn't exists in the central maven repo
[ivy:retrieve] CLIENT ERROR: Not Found url=https://repo1.maven.org/maven2/org/infinispan/infinispan-build-configuration-parent/9.4.8.Final/infinispan-build-configuration-parent-9.4.8.Final.jar
build.xml
<?xml version="1.0" encoding="utf-8"?>
<project name="ivy" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="ivy-retrieve" description="retrieve dependencies locally">
<ivy:retrieve pattern="lib/[artifact]-[revision](-[classifier]).[ext]"/>
</target>
</project>
ivy.xml
<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra">
<info organisation="example" module="ivy"/>
<dependencies>
<dependency org="org.infinispan" name="infinispan-jcache" rev="9.4.8.Final" />
</dependencies>
</ivy-module>
Does anyone have a nice solution on how to download the infinispan version as ivy dependency? The referenced folder on maven central only has a pom-file in it. Do I maybe have to configure ivy or just use a different repository?
That jar doesn't exist because build-configuration has packaging pom. I have tried this locally and Ivy's dependency resolver erroneously throws a org.apache.ivy.plugins.circular.CircularDependencyException because it fails to understand the hierarchy...
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-bom;9.4.13.Final {} with public (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-bom;9.4.13.Final {} with main (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-parent;9.4.13.Final {} with public (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-parent;9.4.13.Final {} with main (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-commons;9.4.13.Final {*=[*]} with public (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
[ivy:retrieve] problem occurred while resolving dependency: org.infinispan#infinispan-commons;9.4.13.Final {*=[*]} with main (org.apache.ivy.plugins.circular.CircularDependencyException: org.infinispan#infinispan-parent;9.4.13.Final->org.infinispan#infinispan-build-configuration-parent;9.4.13.Final)
This looks like https://issues.apache.org/jira/browse/IVY-1588
If you use the latest ivy.jar built from master, it works: https://builds.apache.org/view/All/job/Ivy/lastSuccessfulBuild/artifact/build/artifact/jars/

Go Glide Error "The system cannot find the path specified"

I am trying to manage my Go project with glide.
I executed glide update, but got The system cannot find the path specified error as below.
C:\path\to\myproject\src>glide update
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching google.golang.org/appengine.
[INFO] --> Fetching cloud.google.com/go.
[INFO] --> Fetching golang.org/x/net.
[INFO] --> Fetching github.com/gin-gonic/gin.
[INFO] --> Fetching google.golang.org/api.
[INFO] --> Fetching golang.org/x/oauth2.
[INFO] --> Detected semantic version. Setting version for github.com/gin-gonic/gin to v1.1.4.
[INFO] --> Detected semantic version. Setting version for google.golang.org/appengine to v1.0.0.
[INFO] --> Detected semantic version. Setting version for cloud.google.com/go to v0.7.0.
[INFO] Resolving imports
[INFO] Found Godeps.json file in C:\Users\myhome\.glide\cache\src\https-github.com-gin-gonic-gin
[INFO] --> Parsing Godeps metadata...
[INFO] --> Fetching github.com/manucorporat/sse.
[INFO] --> Setting version for github.com/manucorporat/sse to ee05b128a739a0fb76c7ebd3ae4810c1de808d6d.
[INFO] --> Fetching github.com/mattn/go-isatty.
[INFO] --> Setting version for golang.org/x/net to f315505cf3349909cdf013ea56690da34e96a451.
[INFO] --> Fetching github.com/golang/protobuf.
[INFO] --> Setting version for github.com/golang/protobuf to 2402d76f3d41f928c7902a765dfc872356dd3aad.
[INFO] --> Fetching github.com/googleapis/gax-go.
[INFO] --> Fetching gopkg.in/go-playground/validator.v8.
[INFO] --> Setting version for gopkg.in/go-playground/validator.v8 to c193cecd124b5cc722d7ee5538e945bdb3348435.
[INFO] --> Fetching gopkg.in/yaml.v2.
[INFO] --> Fetching golang.org/x/sys.
[INFO] --> Fetching google.golang.org/grpc.
[INFO] --> Fetching google.golang.org/genproto.
[ERROR] Error scanning github.com\golang\protobuf\ptypes\any: open C:\Users\myhome\.glide\cache\src\https-github.com-golang-protobuf\ptypes\any: The system cannot find the path specified.
[ERROR] Failed to retrieve a list of dependencies: Error resolving imports
Actually there is not C:\Users\myhome\.glide\cache\src\https-github.com-golang-protobuf\ptypes directory, but I can not understand why this directory is missed.
My glide.yaml is as follows.
package: .
import:
- package: cloud.google.com/go
version: ^0.7.0
subpackages:
- bigquery
- civil
- package: github.com/gin-gonic/gin
version: ^1.1.4
- package: golang.org/x/net
subpackages:
- context
- package: golang.org/x/oauth2
subpackages:
- google
- package: google.golang.org/api
subpackages:
- iterator
- package: google.golang.org/appengine
version: ^1.0.0
subpackages:
- datastore
- log
- memcache
- remote_api
How can I fix?
I found the github.com/golang/protobuf version 2402d76f3d41f928c7902a765dfc872356dd3aad which github.com/gin-gonic/gin wants does not has ptype. I added below lines to glide.yaml.
- package: github.com/golang/protobuf
version: b50ceb1fa9818fa4d78b016c2d4ae025593a7ce3
b50ceb1fa9818fa4d78b016c2d4ae025593a7ce3 is the current newest commit.
The error has gone. But I am not sure this is the straightforward way because I still have the warning below.
[WARN] Conflict: github.com/golang/protobuf rev is currently b50ceb1fa9818fa4d78b016c2d4ae025593a7ce3, but github.com/gin-gonic/gin wants 2402d76f3d41f928c7902a765dfc872356dd3aad
If another way is desirable, please advise me.

Bundle dependency could not be resolved due to missing constraint on import package, How to add jar dependency in a an osgi bundle using maven?

I am new to maven.
I am trying to import a jar dependency (com.jcraft.jsch) in my opendaylight controller project. The code compiles successfully. But when the controller is run, it throws the following errors.
!ENTRY org.opendaylight.controller.samples.ssr 4 0 2013-10-11 10:25:14.624
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.opendaylight.controller.samples.ssr_0.4.0.SNAPSHOT [36]" could not be resolved. Reason: Missing Constraint: Import-Package: com.jcraft.jsch; version="0.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
2013-10-11 10:25:14.627 IST [org.opendaylight.controller.logging.bridge.internal.LogListenerImpl#190c63b2] ERROR o.o.c.logging.bridge.OSGI2SLF4J - Bundle:org.opendaylight.controller.samples.ssr Message:FrameworkEvent ERROR Exception:org.osgi.framework.BundleException: The bundle "org.opendaylight.controller.samples.ssr_0.4.0.SNAPSHOT [36]" could not be resolved. Reason: Missing Constraint: Import-Package: com.jcraft.jsch; version="0.0.0"
I have imported that package. The package org.opendaylight.controller.samples.ssr is added by me in it. Basically, I have modified one of the packages in samples.
The problem is I am trying to import one jar dependency com.jcraft.jsch in one of the classes in this package. But there is a problem with importing this jar.
I have been slogging after this issue for last couple of weeks. Any suggestions or solutions please. Thanks in advance.
I was facing the same issue in OpenDaylight. Here's a solution that I figured out after some trial and error (Let me know if you find any step to be unnecessary):
The Maven dependency in your case would have, Group Id as com.jcraft, Artifact Id as jsch, Version as 0.1.31 (say) and Imported Package ias com.jcraft.jsch. Also, your OpenDaylight module is org.opendaylight.controller.samples.ssr.
In the file distribution/opendaylight/opendaylight-osgi-launcher.launch and distribution/opendaylight/opendaylight-osgi-launcher-local.launch, add your dependency and the module to the following tags:
...
<stringAttribute key="target_bundles" value="com.jcraft.jsch#default:default,ch.qos.logback.classic#default:default, ch.qos.logback.core#default:default ..."/>
.
.
<stringAttribute key="workspace_bundles" value="org.opendaylight.controller.samples.ssr#default:default,org.opendaylight.controller.arphandler#default:default, ..."/>
...
In file distribution/opendaylight/opendaylight.target, add a unit entry as,
...
<unit id="com.google.gson" version="2.1.0"/>
<unit id="com.jcraft.jsch" version="0.1.31"/>
...
In distribution/p2site/pom.xml, add the artifact entry as,
...
<artifact>
<id>com.google.code.gson:gson:2.1</id>
<transitive>false</transitive>
<override>false</override>
</artifact>
<artifact>
<id>com.jcraft:jsch:0.1.31</id>
<transitive>false</transitive>
<override>false</override>
</artifact>
...
In commons/opendaylight/pom.xml, add the dependency entry as,
...
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.31</version>
</dependency>
...
Do a complete OpenDaylight maven build and run. It should work fine. In case, this dependency has further chained dependencies you might get the error again. Import those dependencies the same way.

Resources