You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2015/02/05 12:35:52 UTC
[1/2] jena git commit: Explanation about
Repository: jena
Updated Branches:
refs/heads/master 636b67ec9 -> ef2071f92
Explanation about <scope>
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/caeb5cb1
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/caeb5cb1
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/caeb5cb1
Branch: refs/heads/master
Commit: caeb5cb1780f926d1c6cb9d67c6321e08f5d3754
Parents: c49fae8
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Tue Feb 3 12:14:20 2015 +0000
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Tue Feb 3 12:14:20 2015 +0000
----------------------------------------------------------------------
jena-osgi/pom.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/caeb5cb1/jena-osgi/pom.xml
----------------------------------------------------------------------
diff --git a/jena-osgi/pom.xml b/jena-osgi/pom.xml
index 00da820..1637732 100644
--- a/jena-osgi/pom.xml
+++ b/jena-osgi/pom.xml
@@ -37,6 +37,48 @@
<relativePath>../jena-parent</relativePath>
</parent>
+
+ <!--
+ Most of the job is done by maven-bundle-plugin (see below).
+ It inspects the embedded/shadowed class files from jena-* to
+ generate the correct Import/Export-Package statements.
+
+
+ SCOPES:
+
+ <scope>provided</scope> are explicitly picked up
+ by maven-bundle-plugin below to be shadowed within the bundle. These
+ are the non-OSGi bundles we want to package, e.g. Jena
+ and any dependencies that are not easily available as
+ bundles..
+
+ Those without <scope> (e.g. compile) below are already
+ OSGi bundles and will become runtime dependencies of
+ the jena-osgi bundle when used through Maven. Their
+ transitive dependencies (e.g. jsonld-java depends on
+ jackson-core) are not explicitly listed here.
+
+ Note that many OSGi users don't use Maven
+ and would have to find those dependencies
+ themselves. See ../jena-osgi-test/ for
+ example.
+
+
+ To avoid duplicates of non-bundle and bundle dependencies,
+ e.g. httpcore vs. httpcore-osgi, there are several
+ <excludes> below - as not everyone
+ follows the <scope>provided</scope> pattern.
+
+ Use mvn dependency:tree to inspect what dependencies are
+ exposed in the end, and unzip -t target/*.jar to inspect
+ what becomes bundled in the bundle.
+
+ Explore META-INF/MANFEST.MF in the jar to see what
+ Import and Export the maven-bundle-plugin has figured out,
+ usually the details figured out through code
+ introspections are correct - if verbose.
+
+ -->
<dependencies>
<dependency>
<groupId>org.apache.jena</groupId>
[2/2] jena git commit: Documentation about how used for the
OSGi bundle. Merge commit 'refs/pull/26/head' of github.com:apache/jena This
closes #26
Posted by an...@apache.org.
Documentation about how <scope> used for the OSGi bundle.
Merge commit 'refs/pull/26/head' of github.com:apache/jena
This closes #26
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/ef2071f9
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/ef2071f9
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/ef2071f9
Branch: refs/heads/master
Commit: ef2071f92e569853119ec449c789020c7b5f13ea
Parents: 636b67e caeb5cb
Author: Andy Seaborne <an...@apache.org>
Authored: Thu Feb 5 11:34:07 2015 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Thu Feb 5 11:34:07 2015 +0000
----------------------------------------------------------------------
jena-osgi/pom.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
----------------------------------------------------------------------