You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ch...@apache.org on 2016/01/07 11:07:59 UTC

svn commit: r1723503 - /sling/trunk/bundles/commons/metrics/pom.xml

Author: chetanm
Date: Thu Jan  7 10:07:59 2016
New Revision: 1723503

URL: http://svn.apache.org/viewvc?rev=1723503&view=rev
Log:
SLING-4080 - API to capture/measure application-level metrics

Cleanup pom
-- Make dependencies for WebConsole plugin optional and have DynamicImport package for them
-- Removed unused dependencies

Modified:
    sling/trunk/bundles/commons/metrics/pom.xml

Modified: sling/trunk/bundles/commons/metrics/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/metrics/pom.xml?rev=1723503&r1=1723502&r2=1723503&view=diff
==============================================================================
--- sling/trunk/bundles/commons/metrics/pom.xml (original)
+++ sling/trunk/bundles/commons/metrics/pom.xml Thu Jan  7 10:07:59 2016
@@ -52,6 +52,19 @@
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
         <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <Bundle-DocURL>
+              https://sling.apache.org/documentation/bundles/metrics.html
+            </Bundle-DocURL>
+            <DynamicImport-Package>
+              javax.servlet,
+              javax.servlet.http;version=2.3,
+              org.apache.commons.io.output;version=2.4.0,
+              org.apache.felix.inventory;version=1.0
+            </DynamicImport-Package>
+          </instructions>
+        </configuration>
       </plugin>
       <plugin>
         <groupId>org.apache.felix</groupId>
@@ -73,11 +86,7 @@
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>servlet-api</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.sling</groupId>
-      <artifactId>org.apache.sling.commons.osgi</artifactId>
-      <version>2.2.0</version>
+      <optional>true</optional>
     </dependency>
     <dependency>
       <groupId>org.osgi</groupId>
@@ -102,12 +111,14 @@
       <groupId>commons-io</groupId>
       <artifactId>commons-io</artifactId>
       <version>2.2</version>
+      <optional>true</optional>
     </dependency>
 
     <dependency>
       <groupId>org.hamcrest</groupId>
       <artifactId>hamcrest-all</artifactId>
       <version>1.3</version>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>junit</groupId>