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 07:02:30 UTC

svn commit: r673905 - in /maven/components/branches/maven-2.0.x: apache-maven/pom.xml maven-core/pom.xml maven-core/src/main/resources/META-INF/plexus/components.xml

Author: brett
Date: Thu Jul  3 22:02:29 2008
New Revision: 673905

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

Modified:
    maven/components/branches/maven-2.0.x/apache-maven/pom.xml
    maven/components/branches/maven-2.0.x/maven-core/pom.xml
    maven/components/branches/maven-2.0.x/maven-core/src/main/resources/META-INF/plexus/components.xml

Modified: maven/components/branches/maven-2.0.x/apache-maven/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/apache-maven/pom.xml?rev=673905&r1=673904&r2=673905&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.x/apache-maven/pom.xml (original)
+++ maven/components/branches/maven-2.0.x/apache-maven/pom.xml Thu Jul  3 22:02:29 2008
@@ -33,6 +33,7 @@
     <plugins>
       <plugin>
         <artifactId>maven-shade-plugin</artifactId>
+        <version>1.2-SNAPSHOT</version>
         <executions>
           <execution>
             <phase>package</phase>

Modified: maven/components/branches/maven-2.0.x/maven-core/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/pom.xml?rev=673905&r1=673904&r2=673905&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core/pom.xml (original)
+++ maven/components/branches/maven-2.0.x/maven-core/pom.xml Thu Jul  3 22:02:29 2008
@@ -184,6 +184,15 @@
     </plugins>
   </reporting>
 
+  <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
+  </build>
+
   <profiles>
     <profile>
       <id>include-site</id>

Modified: maven/components/branches/maven-2.0.x/maven-core/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/main/resources/META-INF/plexus/components.xml?rev=673905&r1=673904&r2=673905&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core/src/main/resources/META-INF/plexus/components.xml (original)
+++ maven/components/branches/maven-2.0.x/maven-core/src/main/resources/META-INF/plexus/components.xml Thu Jul  3 22:02:29 2008
@@ -583,5 +583,38 @@
         </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>