1.固定定义的Header
Bundle-SymbolicName: org.springframework.aop
Bundle-Name: Spring AOP
Bundle-Vendor: SpringSource
Bundle-ManifestVersion: 2
2.默认添加
Ignored-Existing-Headers:
Bnd-LastModified,
DynamicImport-Package,(ORM,OXM)
Import-Package,
Export-Package,
Tool
3.Import-Template中
除了
org.aopalliance.*;version="[1.0.0, 2.0.0)",
org.apache.commons.logging.*;version="[1.1.1, 2.0.0)"
外,其他的根据本JAR以来适当添加均添加:;resolution:=optional,
org.xml.sax.*;version="0";resolution:=optional,
org.w3c.dom.*;version="0";resolution:=optional,
javax.xml.*;version="0";resolution:=optional,
com.sun.net.*;version="0";resolution:=optional,
javax.naming.*;version="0";resolution:=optional,
org.springframework.instrument.*;version="0";resolution:=optional,
org.omg.CORBA.*;version="0";resolution:=optional,
javax.rmi.*;version="0";resolution:=optional,
javax.management.*;version="0";resolution:=optional,
javax.sql.*;version="0";resolution:=optional,
javax.activation.*;version="0";resolution:=optional,
javax.xml.bind.*;version="0";resolution:=optional,
javax.imageio.*;version="0";resolution:=optional,
javax.jws.*;version="0";resolution:=optional,
javax.servlet.*;version="[2.4.0, 4.0.0)";resolution:=optional,
junit.framework.*;version="[3.8.2, 5.0.0)";resolution:=optional,
org.junit.*;version="[4.5.0, 5.0.0)";resolution:=optional,
Web,Servlet:
javax.el.*;version="[1.0.0, 3.0.0)";resolution:=optional,
javax.servlet;version="[2.4.0, 4.0.0)",
javax.servlet.http;version="[2.4.0, 4.0.0)",
javax.servlet.jsp.*;version="[2.0.0, 3.0.0)";resolution:=optional,
javax.servlet.jsp.jstl.*;version="[1.1.0, 2.0.0)";resolution:=optional,
javax.servlet.annotation;version="[3.0.0, 4.0.0)";resolution:=optional,
4.Import-Package
javax.persistence;version="[1.0.0, 3.0.0)";resolution:=optional,
org.springframework.orm.jpa.support;version="${spring.osgi.range.nq}";resolution:=optional,
com.ibm.websphere.management;version="0";resolution:=optional,
JDBC:
com.ibm.websphere.rsadapter;version="0";resolution:=optional,
com.ibm.ws.rsadapter.jdbc;version="0";resolution:=optional,
oracle.jdbc;version="0";resolution:=optional,
oracle.sql;version="0";resolution:=optional,
org.h2;version="[1.8.0, 2.0.0)";resolution:=optional,
org.hsqldb;version="[1.0.0, 2.0.0)";resolution:=optional,
org.jboss.resource.adapter.jdbc;version="0";resolution:=optional,
weblogic.jdbc.extensions;version="0";resolution:=optional
Transaction:
com.ibm.websphere.uow;version="0";resolution:=optional,
com.ibm.wsspi.uow;version="0";resolution:=optional,
oracle.j2ee.transaction;version="0";resolution:=optional,
org.jboss.resource.work;version="0";resolution:=optional,
weblogic.transaction;version="0";resolution:=optional,