mirror of https://github.com/apache/maven.git
[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:
parent
cf03434a59
commit
278b580c8f
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue