Download public suffix list from Mozilla maintained <https://publicsuffix.org/>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2014-09-08 13:37:43 +00:00
parent cffb877b1e
commit 067a2454e1
1 changed files with 37 additions and 0 deletions

View File

@ -96,6 +96,25 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.2.0</version>
<executions>
<execution>
<id>download-public-suffix-list</id>
<phase>generate-sources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://publicsuffix.org/list/effective_tld_names.dat</url>
<outputDirectory>${project.build.outputDirectory}/mozilla</outputDirectory>
<outputFileName>public-suffix-list.txt</outputFileName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
@ -161,4 +180,22 @@
</plugins>
</reporting>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<configuration>
<overwrite>true</overwrite>
<skipCache>true</skipCache>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>