2011-03-29 12:08:37 +00:00
|
|
|
From 1e435abf209089692a3ba2dca86be757e892c10b Mon Sep 17 00:00:00 2001
|
|
|
|
From: Stanislav Ochotnicky <sochotnicky@redhat.com>
|
|
|
|
Date: Tue, 29 Mar 2011 14:02:03 +0200
|
|
|
|
Subject: [PATCH] Cleanup pom
|
|
|
|
|
|
|
|
---
|
|
|
|
httpclient/pom.xml | 45 +++++++++++------------------
|
|
|
|
httpmime/pom.xml | 7 ++++-
|
|
|
|
pom.xml | 79 +--------------------------------------------------
|
|
|
|
3 files changed, 25 insertions(+), 106 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/httpclient/pom.xml b/httpclient/pom.xml
|
|
|
|
index 4ce1cab..e0ac937 100644
|
|
|
|
--- a/httpclient/pom.xml
|
|
|
|
+++ b/httpclient/pom.xml
|
|
|
|
@@ -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,18 @@
|
|
|
|
</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>
|
|
|
|
+ </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 +148,13 @@
|
|
|
|
</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>
|
|
|
|
+ </instructions>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
diff --git a/httpmime/pom.xml b/httpmime/pom.xml
|
|
|
|
index 8853cc2..6922f99 100644
|
|
|
|
--- a/httpmime/pom.xml
|
|
|
|
+++ b/httpmime/pom.xml
|
|
|
|
@@ -38,7 +38,7 @@
|
|
|
|
HttpComponents HttpClient - MIME coded entities
|
|
|
|
</description>
|
|
|
|
<url>http://hc.apache.org/httpcomponents-client</url>
|
|
|
|
- <packaging>jar</packaging>
|
|
|
|
+ <packaging>bundle</packaging>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
@@ -112,6 +112,11 @@
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.felix</groupId>
|
|
|
|
+ <artifactId>maven-bundle-plugin</artifactId>
|
|
|
|
+ <extensions>true</extensions>
|
|
|
|
+ </plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
diff --git a/pom.xml b/pom.xml
|
|
|
|
index e3ba289..8ab6b70 100644
|
|
|
|
--- a/pom.xml
|
|
|
|
+++ b/pom.xml
|
|
|
|
@@ -82,28 +82,11 @@
|
2011-02-25 18:29:58 +00:00
|
|
|
<modules>
|
|
|
|
<module>httpclient</module>
|
|
|
|
<module>httpmime</module>
|
|
|
|
- <module>httpclient-cache</module>
|
|
|
|
- <module>httpclient-osgi</module>
|
|
|
|
</modules>
|
|
|
|
|
2011-02-17 20:09:45 +00:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
- <artifactId>maven-notice-plugin</artifactId>
|
|
|
|
- <groupId>org.apache.httpcomponents</groupId>
|
2010-12-23 10:06:05 +00:00
|
|
|
- <executions>
|
|
|
|
- <execution>
|
2011-02-17 20:09:45 +00:00
|
|
|
- <id>attach-notice-license</id>
|
2010-12-23 10:06:05 +00:00
|
|
|
- <goals>
|
2011-02-17 20:09:45 +00:00
|
|
|
- <goal>generate</goal>
|
2010-12-23 10:06:05 +00:00
|
|
|
- </goals>
|
|
|
|
- </execution>
|
|
|
|
- </executions>
|
2011-02-17 20:09:45 +00:00
|
|
|
- <configuration>
|
|
|
|
- <projectTitle>Apache HttpComponents</projectTitle>
|
|
|
|
- </configuration>
|
|
|
|
- </plugin>
|
|
|
|
- <plugin>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
2011-03-29 12:08:37 +00:00
|
|
|
@@ -190,49 +173,6 @@
|
2011-02-17 20:09:45 +00:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
- <groupId>com.agilejava.docbkx</groupId>
|
|
|
|
- <artifactId>docbkx-maven-plugin</artifactId>
|
2010-12-23 10:06:05 +00:00
|
|
|
- <dependencies>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.docbook</groupId>
|
|
|
|
- <artifactId>docbook-xml</artifactId>
|
|
|
|
- <version>4.4</version>
|
|
|
|
- <scope>runtime</scope>
|
|
|
|
- </dependency>
|
|
|
|
- </dependencies>
|
|
|
|
- <configuration>
|
|
|
|
- <includes>index.xml</includes>
|
|
|
|
- <chunkedOutput>true</chunkedOutput>
|
|
|
|
- <xincludeSupported>true</xincludeSupported>
|
|
|
|
- <foCustomization>src/docbkx/resources/xsl/fopdf.xsl</foCustomization>
|
|
|
|
- <htmlCustomization>src/docbkx/resources/xsl/html_chunk.xsl</htmlCustomization>
|
|
|
|
- <htmlStylesheet>css/hc-tutorial.css</htmlStylesheet>
|
|
|
|
- <entities>
|
|
|
|
- <entity>
|
|
|
|
- <name>version</name>
|
2011-02-17 20:09:45 +00:00
|
|
|
- <value>${project.version}</value>
|
2010-12-23 10:06:05 +00:00
|
|
|
- </entity>
|
|
|
|
- </entities>
|
|
|
|
- <postProcess>
|
|
|
|
- <copy todir="target/site/tutorial">
|
|
|
|
- <fileset dir="target/docbkx">
|
|
|
|
- <include name="**/*.html" />
|
|
|
|
- <include name="**/*.pdf" />
|
|
|
|
- </fileset>
|
|
|
|
- </copy>
|
|
|
|
- <copy todir="target/site/tutorial/html">
|
|
|
|
- <fileset dir="src/docbkx/resources">
|
|
|
|
- <include name="**/*.css" />
|
|
|
|
- <include name="**/*.png" />
|
|
|
|
- <include name="**/*.gif" />
|
|
|
|
- <include name="**/*.jpg" />
|
|
|
|
- </fileset>
|
|
|
|
- </copy>
|
|
|
|
- <move file="target/site/tutorial/pdf/index.pdf" tofile="target/site/tutorial/pdf/httpclient-tutorial.pdf" failonerror="false" />
|
|
|
|
- </postProcess>
|
|
|
|
- </configuration>
|
|
|
|
- </plugin>
|
2011-02-17 20:09:45 +00:00
|
|
|
- <plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2011-03-29 12:08:37 +00:00
|
|
|
@@ -253,14 +193,7 @@
|
2011-02-17 20:09:45 +00:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
|
- <artifactId>clirr-maven-plugin</artifactId>
|
|
|
|
- <configuration>
|
|
|
|
- <comparisonVersion>${comparisonVersion}</comparisonVersion>
|
|
|
|
- </configuration>
|
|
|
|
- </plugin>
|
|
|
|
- </plugins>
|
|
|
|
+ </plugins>
|
2010-12-23 10:06:05 +00:00
|
|
|
</build>
|
2011-02-17 20:09:45 +00:00
|
|
|
|
|
|
|
<reporting>
|
2011-03-29 12:08:37 +00:00
|
|
|
@@ -281,15 +214,7 @@
|
2011-02-17 20:09:45 +00:00
|
|
|
</reportSets>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
|
- <artifactId>clirr-maven-plugin</artifactId>
|
|
|
|
- <configuration>
|
|
|
|
- <comparisonVersion>${comparisonVersion}</comparisonVersion>
|
|
|
|
- </configuration>
|
|
|
|
- </plugin>
|
|
|
|
-
|
|
|
|
- </plugins>
|
|
|
|
+ </plugins>
|
|
|
|
</reporting>
|
|
|
|
|
|
|
|
</project>
|
2011-03-29 12:08:37 +00:00
|
|
|
--
|
|
|
|
1.7.4
|
|
|
|
|