change http to https urls when downloading license files
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<version>1.17</version>
|
||||
<version>1.20</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>download-licenses</id>
|
||||
@@ -79,6 +79,22 @@
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<licenseUrlReplacements>
|
||||
<licenseUrlReplacement>
|
||||
<regexp>http://(.*)</regexp>
|
||||
<replacement>https://$1</replacement>
|
||||
</licenseUrlReplacement>
|
||||
</licenseUrlReplacements>
|
||||
<licenseContentSanitizers>
|
||||
<licenseContentSanitizer>
|
||||
<id>all-http</id>
|
||||
<urlRegexp>http(.*)</urlRegexp>
|
||||
<contentRegexp>http://(.*)</contentRegexp>
|
||||
<contentReplacement>https://$1</contentReplacement>
|
||||
</licenseContentSanitizer>
|
||||
</licenseContentSanitizers>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<version>1.17</version>
|
||||
<version>1.20</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>download-licenses</id>
|
||||
@@ -102,6 +102,22 @@
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<licenseUrlReplacements>
|
||||
<licenseUrlReplacement>
|
||||
<regexp>http://(.*)</regexp>
|
||||
<replacement>https://$1</replacement>
|
||||
</licenseUrlReplacement>
|
||||
</licenseUrlReplacements>
|
||||
<licenseContentSanitizers>
|
||||
<licenseContentSanitizer>
|
||||
<id>all-http</id>
|
||||
<urlRegexp>http(.*)</urlRegexp>
|
||||
<contentRegexp>http://(.*)</contentRegexp>
|
||||
<contentReplacement>https://$1</contentReplacement>
|
||||
</licenseContentSanitizer>
|
||||
</licenseContentSanitizers>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<version>1.17</version>
|
||||
<version>1.20</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>download-licenses</id>
|
||||
@@ -122,6 +122,22 @@
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<licenseUrlReplacements>
|
||||
<licenseUrlReplacement>
|
||||
<regexp>http://(.*)</regexp>
|
||||
<replacement>https://$1</replacement>
|
||||
</licenseUrlReplacement>
|
||||
</licenseUrlReplacements>
|
||||
<licenseContentSanitizers>
|
||||
<licenseContentSanitizer>
|
||||
<id>all-http</id>
|
||||
<urlRegexp>http(.*)</urlRegexp>
|
||||
<contentRegexp>http://(.*)</contentRegexp>
|
||||
<contentReplacement>https://$1</contentReplacement>
|
||||
</licenseContentSanitizer>
|
||||
</licenseContentSanitizers>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<version>1.17</version>
|
||||
<version>1.20</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>download-licenses</id>
|
||||
@@ -182,6 +182,22 @@
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<licenseUrlReplacements>
|
||||
<licenseUrlReplacement>
|
||||
<regexp>http://(.*)</regexp>
|
||||
<replacement>https://$1</replacement>
|
||||
</licenseUrlReplacement>
|
||||
</licenseUrlReplacements>
|
||||
<licenseContentSanitizers>
|
||||
<licenseContentSanitizer>
|
||||
<id>all-http</id>
|
||||
<urlRegexp>http(.*)</urlRegexp>
|
||||
<contentRegexp>http://(.*)</contentRegexp>
|
||||
<contentReplacement>https://$1</contentReplacement>
|
||||
</licenseContentSanitizer>
|
||||
</licenseContentSanitizers>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
|
||||
Reference in New Issue
Block a user