0f67941d83
Add instructions so as to not Import-Package optional dependencies.
81 lines
2.5 KiB
Diff
81 lines
2.5 KiB
Diff
--- httpclient/pom.xml.sav 2011-03-14 16:54:35.000000000 -0400
|
|
+++ httpclient/pom.xml 2011-07-15 16:41:41.568795119 -0400
|
|
@@ -38,7 +38,7 @@
|
|
HttpComponents Client (base module)
|
|
</description>
|
|
<url>http://hc.apache.org/httpcomponents-client</url>
|
|
- <packaging>jar</packaging>
|
|
+ <packaging>bundle</packaging>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
@@ -65,12 +65,6 @@
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
- <dependency>
|
|
- <groupId>org.mockito</groupId>
|
|
- <artifactId>mockito-core</artifactId>
|
|
- <version>${mockito.version}</version>
|
|
- <scope>test</scope>
|
|
- </dependency>
|
|
</dependencies>
|
|
|
|
<properties>
|
|
@@ -116,25 +110,19 @@
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
- <plugin>
|
|
- <groupId>com.atlassian.maven.plugins</groupId>
|
|
- <artifactId>maven-clover2-plugin</artifactId>
|
|
+ <plugin>
|
|
+ <groupId>org.apache.felix</groupId>
|
|
+ <artifactId>maven-bundle-plugin</artifactId>
|
|
+ <extensions>true</extensions>
|
|
<configuration>
|
|
- <flushPolicy>threaded</flushPolicy>
|
|
- <flushInterval>100</flushInterval>
|
|
- <targetPercentage>50%</targetPercentage>
|
|
+ <instructions>
|
|
+ <Export-Package>*</Export-Package>
|
|
+ <Private-Package></Private-Package>
|
|
+ <Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
|
|
+ </instructions>
|
|
</configuration>
|
|
- <executions>
|
|
- <execution>
|
|
- <id>site</id>
|
|
- <phase>pre-site</phase>
|
|
- <goals>
|
|
- <goal>instrument</goal>
|
|
- </goals>
|
|
- </execution>
|
|
- </executions>
|
|
- </plugin>
|
|
- </plugins>
|
|
+ </plugin>
|
|
+ </plugins>
|
|
</build>
|
|
|
|
<reporting>
|
|
@@ -161,11 +149,14 @@
|
|
</plugin>
|
|
|
|
<plugin>
|
|
- <groupId>com.atlassian.maven.plugins</groupId>
|
|
- <artifactId>maven-clover2-plugin</artifactId>
|
|
- <version>${clover.version}</version>
|
|
+ <groupId>org.apache.felix</groupId>
|
|
+ <artifactId>maven-bundle-plugin</artifactId>
|
|
<configuration>
|
|
- <jdk>1.5</jdk>
|
|
+ <instructions>
|
|
+ <Export-Package>*</Export-Package>
|
|
+ <Private-Package></Private-Package>
|
|
+ <Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
|
|
+ </instructions>
|
|
</configuration>
|
|
</plugin>
|
|
|