summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorJonathan Nieder <jrn@google.com>2013-05-24 16:57:10 -0700
committerJonathan Nieder <jrn@google.com>2013-05-24 16:57:10 -0700
commita544ff72dbf62671d2530f4cfca0e8f9dd693d78 (patch)
treea1e218715829d52bf90fe5823b6a0905fb268173 /pom.xml
parentcfc15dd9dce2252baad9dc8ce0828203a205c2cf (diff)
downloadjgit-a544ff72dbf62671d2530f4cfca0e8f9dd693d78.tar.gz
jgit-a544ff72dbf62671d2530f4cfca0e8f9dd693d78.zip
Remove dependency by ArchiveCommand on archive formats
Provide static registerFormat and unregisterFormat methods to allow formats to register themselves without the ArchiveCommand code being aware of them. Register the basic "zip" and "tar" support at bundle activation time (and deregister them when unloading the bundle). For anyone using this code as an OSGi plugin it should continue to just work. The jgit program does not load org.eclipse.jgit.pgm as an OSGi bundle, so let the Archive command register the formats it uses explicitly with registerFormat. Change-Id: Id39c03ea6923d0aed8316ed7b6bd04d5ced570a7
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index ee1e45f40b..76ba5c006c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -182,6 +182,7 @@
<!-- TODO: update Maven dependency for args4j to 2.0.21 as soon as available on Maven Central -->
<args4j-version>2.0.12</args4j-version>
<commons-compress-version>1.4.1</commons-compress-version>
+ <osgi-core-version>4.3.1</osgi-core-version>
<servlet-api-version>2.5</servlet-api-version>
<jetty-version>7.6.0.v20120127</jetty-version>
<clirr-version>2.4</clirr-version>
@@ -441,6 +442,12 @@
<artifactId>jetty-servlet</artifactId>
<version>${jetty-version}</version>
</dependency>
+
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <version>${osgi-core-version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>