[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Package uses conflict: Import-Package

I am trying to convert a legacy project to OSGi.
I am getting conflicts and I am having trouble resolving them.
I read http://njbartlett.name/2011/02/09/uses-constraints.html
but it isn't helping.  Digging down one level on the packages
I only see a few packages with more than one export listed (see below),
and the exports show the identical version and source - I don't
understand why they would even be listed twice.  Can anyone help?
It seems there must be a better way to do this.
 
osgi> diag 7
initial@reference:file:../../../.m2/repository/com/foobar/xx/xx-server/3.0.
0-RC1-SNAPSHOT/xx-server-3.0.0-RC1-SNAPSHOT.jar/ [7]
  Package uses conflict: Import-Package: com.foobar.common.dao;
version="[3.2.0,4.0.0)"
  Package uses conflict: Import-Package: com.foobar.xx;
version="[3.0.0,4.0.0)"
  Package uses conflict: Import-Package: com.foobar.xx.business;
version="[3.0.0,4.0.0)"
  Package uses conflict: Import-Package:
com.foobar.xx.business.xm.accumulate; version="[3.0.0,4.0.0)"
  Package uses conflict: Import-Package: com.foobar.xx.currency;
version="[3.0.0,4.0.0)"
  Package uses conflict: Import-Package: com.foobar.xx.store;
version="[3.0.0,4.0.0)"
  Package uses conflict: Import-Package: com.foobar.xx.types.enterprise;
version="[3.0.0,4.0.0)"
  Package uses conflict: Import-Package: com.foobar.xx.types.query;
version="[3.0.0,4.0.0)"

...

osgi> packages javax.sql
javax.sql; version="0.0.0"<org.eclipse.osgi_3.7.2.v20120110-1415 [0]>
  com.foobar.common.foobar-common_3.2.34.SNAPSHOT [1] imports
  com.foobar.xx.common_3.0.0.RC1-SNAPSHOT [6] imports
  com.mysql.jdbc_5.1.14 [12] imports
javax.sql; version="0.0.0"<org.eclipse.osgi_3.7.2.v20120110-1415 [0]>
  com.foobar.common.foobar-common_3.2.34.SNAPSHOT [1] imports
  com.foobar.xx.common_3.0.0.RC1-SNAPSHOT [6] imports
  com.mysql.jdbc_5.1.14 [12] imports

osgi> packages javax.swing
javax.swing; version="0.0.0"<org.eclipse.osgi_3.7.2.v20120110-1415 [0]>
  com.foobar.common.foobar-common_3.2.34.SNAPSHOT [1] imports
  com.springsource.org.antlr.stringtemplate_3.2.0 [15] imports
  com.springsource.org.apache.log4j_1.2.15 [22] imports
javax.swing; version="0.0.0"<org.eclipse.osgi_3.7.2.v20120110-1415 [0]>
  com.foobar.common.foobar-common_3.2.34.SNAPSHOT [1] imports
  com.springsource.org.antlr.stringtemplate_3.2.0 [15] imports
  com.springsource.org.apache.log4j_1.2.15 [22] imports

osgi> packages javax.swing.tree
javax.swing.tree; version="0.0.0"<org.eclipse.osgi_3.7.2.v20120110-1415
[0]>
  com.foobar.common.foobar-common_3.2.34.SNAPSHOT [1] imports
  com.foobar.xx.common_3.0.0.RC1-SNAPSHOT [6] imports
  com.springsource.org.antlr.stringtemplate_3.2.0 [15] imports
  com.springsource.org.apache.log4j_1.2.15 [22] imports
javax.swing.tree; version="0.0.0"<org.eclipse.osgi_3.7.2.v20120110-1415
[0]>
  com.foobar.common.foobar-common_3.2.34.SNAPSHOT [1] imports
  com.foobar.xx.common_3.0.0.RC1-SNAPSHOT [6] imports
  com.springsource.org.antlr.stringtemplate_3.2.0 [15] imports
  com.springsource.org.apache.log4j_1.2.15 [22] imports

osgi> packages javax.xml.bind
javax.xml.bind; version="0.0.0"<org.eclipse.osgi_3.7.2.v20120110-1415 [0]>
  com.foobar.common.foobar-common_3.2.34.SNAPSHOT [1] imports
  com.foobar.xx.common_3.0.0.RC1-SNAPSHOT [6] imports
  org.springframework.web_3.1.0.RELEASE [35] imports
javax.xml.bind; version="0.0.0"<org.eclipse.osgi_3.7.2.v20120110-1415 [0]>
  com.foobar.common.foobar-common_3.2.34.SNAPSHOT [1] imports
  com.foobar.xx.common_3.0.0.RC1-SNAPSHOT [6] imports
  org.springframework.web_3.1.0.RELEASE [35] imports

Thanks,
Dan