[MNG-3652] set a user agent for Maven HTTP requests

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@673901 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2008-07-04 04:32:09 +00:00
parent cf03434a59
commit 278b580c8f
2 changed files with 40 additions and 0 deletions

View File

@ -84,6 +84,12 @@ under the License.
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>

View File

@ -42,5 +42,39 @@ under the License.
</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>