This website and its associated repositories, are deprecated and no longer supported by the OSGi Alliance. Please visit https://enroute.osgi.org for the latest supported version of OSGi enRoute.
This enRoute v2 archive site is kept for those who do not intend to use the latest version of OSGi enRoute. If you are new to OSGi enRoute, then please start with the latest OSGi enRoute.
We’ve copied someone else’s byte codes … This puts an obligation on you to obey their license(s).We should add a Bundle-License
header to the manifest.
The primary license is of course DOM4J. This took some effort but they use a BSD style license. The following licenses were found:
dom4j
– A BSD style licenserelaxng
– A BSD license with an exception for the org.relaxng.datatype.helpers.DatatypeLibraryLoader
pull-parser
– Indiana University LicenseThe format of the Bundle-License header is:
Bundle-License ::= '<<EXTERNAL>>' | ( license ( ',' license ) * )
license ::= name ( ';' license-attr ) *
license-attr ::= description | link
description ::= 'description' '=' string
link ::= 'link' '=' <url>
We therefore should add a license like:
Bundle-License: \
https://opensource.org/licenses/BSD-2-Clause; \
description='For DOM4J and relax NG'; \
link='', \
http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/PullParser2/LICENSE.txt; \
description='Pull Parser'; \
link='http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/PullParser2/LICENSE.txt', \
'Thai Open Software Center'; \
description='Exception for relaxng'; \
link='tosc-license.txt'
Since we refer to the local file tosc-license.txt
we need to copy this on the file system and then include it in the bundle:
-includeresource: \
@pull-parser__pull-parser-2.1.10.jar!/PullParser*_VERSION, \
@pull-parser__pull-parser-2.1.10.jar!/META-INF/services/*, \
tosc-license.txt