-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Http 429 - "Too many requests" during maven build #595
Comments
Same problem. Accessing the url manually works. It also shows a lot of duplicated urls, so I think caching the response should fix this. |
There is a class Do you have an issue in single or multiple modules Maven project? |
@slawekjaranowski For my case it's a multi-module Maven project. Some additional information: We also use the <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<executions>
<execution>
<id>aggregate-add-third-party</id>
<goals>
<goal>aggregate-add-third-party</goal>
</goals>
</execution>
<execution>
<id>aggregate-download-licenses</id>
<configuration>
<licenseUrlReplacements>
<licenseUrlReplacement>
<regexp>\Qhttps://glassfish.java.net/public/CDDL+GPL_1_1.html\E</regexp>
<replacement>https://oss.oracle.com/licenses/CDDL+GPL-1.1</replacement>
</licenseUrlReplacement>
<licenseUrlReplacement>
<regexp>\Qhttps://glassfish.dev.java.net/nonav/public/CDDL+GPL.html\E</regexp>
<replacement>https://oss.oracle.com/licenses/CDDL+GPL-1.1</replacement>
</licenseUrlReplacement>
<licenseUrlReplacement>
<regexp>\Qhttps://openjdk.java.net/legal/gplv2+ce.html\E</regexp>
<replacement>https://github.com/openjdk/jfx/blob/master/LICENSE</replacement>
</licenseUrlReplacement>
<licenseUrlReplacement>
<regexp>\Qhttps://glassfish.dev.java.net/public/CDDLv1.0.html\E</regexp>
<replacement>https://javaee.github.io/LICENSE</replacement>
</licenseUrlReplacement>
<licenseUrlReplacement>
<regexp>\Qhttp://opensource.org/licenses/mit-license\E</regexp>
<replacement>https://opensource.org/license/mit</replacement>
</licenseUrlReplacement>
</licenseUrlReplacements>
</configuration>
<goals>
<goal>aggregate-download-licenses</goal>
</goals>
</execution>
</executions>
</plugin> |
@slawekjaranowski In my case it is also a multi-module-project |
I have tried to run the command mvn org.codehaus.mojo:license-maven-plugin:2.4.0:aggregate-download-licenses here. The result is same:
|
I run it in debug, looks like the cache works as expected. But the mojo does strange steps:
|
I have tried here with one of our single module project. Every query to gnu.org gets the error. From the first one, like somehow the tool was detected by their server. It's not an IP blocking, I can query the same url at the same time using wget or my browser.
Also, maven infos:
|
Hello there,
I am using your plugin in my build process. Lately I discovered that some licenses fail to download with a "429 - Too Many Requests" as shown in the image below.
The rejection ultimately is decided by the server, but maybe there is a problem with the rate of requests to these servers? If so, maybe this rejection could be avoided by reducing the rate of download requests?
Best regards
Christian
The text was updated successfully, but these errors were encountered: