You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2008/07/04 06:32:10 UTC

svn commit: r673901 - in /maven/components/trunk/maven-embedder: pom.xml src/main/resources/META-INF/plexus/components.xml

Author: brett
Date: Thu Jul  3 21:32:09 2008
New Revision: 673901

URL: http://svn.apache.org/viewvc?rev=673901&view=rev
Log:
[MNG-3652] set a user agent for Maven HTTP requests

Modified:
    maven/components/trunk/maven-embedder/pom.xml
    maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml

Modified: maven/components/trunk/maven-embedder/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-embedder/pom.xml?rev=673901&r1=673900&r2=673901&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/pom.xml (original)
+++ maven/components/trunk/maven-embedder/pom.xml Thu Jul  3 21:32:09 2008
@@ -84,6 +84,12 @@
   </dependencies>
 
   <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
     <plugins>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>

Modified: maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml?rev=673901&r1=673900&r2=673901&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml (original)
+++ maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml Thu Jul  3 21:32:09 2008
@@ -42,5 +42,39 @@
         </requirement>
       </requirements>
     </component>
+
+    <component>
+      <role>org.apache.maven.wagon.Wagon</role>
+      <role-hint>http</role-hint>
+      <implementation>org.apache.maven.wagon.providers.http.LightweightHttpWagon</implementation>
+      <instantiation-strategy>per-lookup</instantiation-strategy>
+      <description>LightweightHttpWagon</description>
+      <isolated-realm>false</isolated-realm>
+      <configuration>
+        <httpHeaders>
+          <property>
+            <name>User-Agent</name>
+            <value>Apache Maven/${project.version}</value>
+          </property>
+        </httpHeaders>
+      </configuration>
+    </component>
+    <component>
+      <role>org.apache.maven.wagon.Wagon</role>
+      <role-hint>https</role-hint>
+      <implementation>org.apache.maven.wagon.providers.http.LightweightHttpsWagon</implementation>
+      <instantiation-strategy>per-lookup</instantiation-strategy>
+      <description>LIghtweightHttpsWagon</description>
+      <isolated-realm>false</isolated-realm>
+      <configuration>
+        <httpHeaders>
+          <property>
+            <name>User-Agent</name>
+            <value>Apache Maven/${project.version}</value>
+          </property>
+        </httpHeaders>
+      </configuration>
+    </component>
+
   </components>
 </component-set>