Split packages in Import

asked 2016-08-10 20:44:27 -0700

KushalKumar gravatar image

updated 2016-08-10 20:58:42 -0700

Hi,

I have been working on a MD-SAL plugin which imports certain dependencies. I am facing this split package warning , which eventually causes error, and I am looking forward for a solution to this.

[WARNING] Bundle org.opendaylight.ncrpcadaptor:ncrpcadaptor-impl:bundle:1.0.0-SNAPSHOT : Split package, multiple jars provide the same package:org/springframework/aop/support Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning Package found in [Jar:spring-aop, Jar:org.springframework.aop]

Class path [Jar:., Jar:ncrpcadaptor-api, Jar:junit, Jar:hamcrest-core, Jar:mockito-all, Jar:json-simple, Jar:kie-api, Jar:slf4j-api, Jar:kie-internal, Jar:mvel2, Jar:drools-core, Jar:commons-codec, Jar:drools-compiler, Jar:antlr-runtime, Jar:ecj, Jar:xstream, Jar:xmlpull, Jar:xpp3_min, Jar:protobuf-java, Jar:drools-decisiontables, Jar:drools-templates, Jar:poi-ooxml, Jar:poi-ooxml-schemas, Jar:xmlbeans, Jar:stax-api, Jar:dom4j, Jar:xml-apis, Jar:poi, Jar:org.osgi.core, Jar:drools-osgi-integration, Jar:kie-spring, Jar:jbpm-flow, Jar:joda-time, Jar:spring-tx, Jar:spring-core, Jar:spring-beans, Jar:spring-context, Jar:spring-aop, Jar:aopalliance, Jar:spring-expression, Jar:spring-osgi-core, Jar:spring-osgi-io, Jar:org.springframework.aop, Jar:com.springsource.org.aopalliance, Jar:sal-netconf-connector, Jar:netconf-config-dispatcher, Jar:sal-common-util, Jar:sal-common-api, Jar:sal-connector-api, Jar:sal-core-api, Jar:yang-data-api, Jar:yang-model-api, Jar:ietf-netconf-monitoring, Jar:ietf-netconf-notifications, Jar:ietf-netconf, Jar:netconf-client, Jar:netconf-api, Jar:ietf-netconf-monitoring-extension, Jar:netconf-netty-util, Jar:netconf-mapping-api, Jar:netty-handler, Jar:sshd-core, Jar:nagasena, Jar:nagasena-rta, Jar:netconf-util, Jar:protocol-framework, Jar:netty-buffer, Jar:netty-codec, Jar:netty-common, Jar:netconf-notifications-api, Jar:netty-config-api, Jar:netty-transport, Jar:netty-threadgroup-config, Jar:sal-binding-api, Jar:binding-generator-impl, Jar:javassist, Jar:binding-generator-util, Jar:binding-model-api, Jar:binding-generator-api, Jar:binding-generator-spi, Jar:binding-type-provider, Jar:commons-lang3, Jar:org.eclipse.xtend.lib, Jar:org.eclipse.xtext.xbase.lib, Jar:org.eclipse.xtend.lib.macro, Jar:threadpool-config-api, Jar:sal-broker-impl, Jar:disruptor, Jar:sal-common-impl, Jar:sal-core-spi, Jar:sal-inmemory-datastore, Jar:yang-data-impl, Jar:yang-data-util, Jar:yang-model-util, Jar:antlr4-runtime, Jar:yang-parser-impl, Jar:yang-parser-api, Jar:ietf-inet-types, Jar:model-inventory, Jar:ietf-inet-types, Jar:ietf-type-util, Jar:ietf-yang-types, Jar:yang-ext, Jar:ietf-topology, Jar:ietf-yang-types, Jar:yang-binding, Jar:yang-common, Jar:guava, Jar:concepts, Jar:object-cache-api, Jar:config-api, Jar:jsr305, Jar:sal-binding-config, Jar:sal-dom-config, Jar:sal-binding-broker-impl, Jar:sal-binding-util, Jar:mdsal-binding-generator-impl, Jar:mdsal-binding-generator-util, Jar:mdsal-binding-dom-codec, Jar:mdsal-binding-generator-api, Jar:yang-binding, Jar:util, Jar:java-concurrent-hash-trie-map]

[WARNING] Bundle org.opendaylight.ncrpcadaptor:ncrpcadaptor-impl:bundle:1.0.0-SNAPSHOT : Split package, multiple jars provide the same package:org/springframework/aop/aspectj/autoproxy Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning Package found in [Jar:spring-aop, Jar:org.springframework.aop]

Class path [Jar:., Jar:ncrpcadaptor-api, Jar:junit, Jar:hamcrest-core, Jar:mockito-all, Jar:json-simple, Jar:kie- api, Jar:slf4j-api, Jar:kie-internal, Jar:mvel2, Jar:drools-core, Jar:commons-codec, Jar:drools-compiler, Jar:antlr-runtime, Jar:ecj, Jar:xstream, Jar:xmlpull, Jar:xpp3_min, Jar:protobuf-java, Jar:drools-decisiontables, Jar:drools-templates, Jar:poi-ooxml, Jar:poi-ooxml-schemas, Jar:xmlbeans, Jar:stax-api, Jar:dom4j, Jar:xml-apis, Jar:poi, Jar:org.osgi.core, Jar:drools-osgi-integration, Jar:kie-spring, Jar:jbpm-flow, Jar:joda-time, Jar:spring-tx, Jar:spring-core, Jar:spring-beans, Jar:spring-context, Jar:spring-aop, Jar:aopalliance, Jar:spring-expression, Jar:spring-osgi-core, Jar:spring-osgi-io, Jar:org.springframework.aop, Jar:com.springsource.org.aopalliance, Jar:sal-netconf-connector, Jar:netconf-config-dispatcher, Jar:sal-common-util, Jar:sal-common-api, Jar ... (more)

edit retag flag offensive close merge delete