Skip to content
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

Getting error "Received status code 403 from server: Forbidden" with v2022-07-28T23-23-00 #53

Closed
itsthamarai opened this issue Jul 2, 2024 · 11 comments

Comments

@itsthamarai
Copy link

Hi - We are using this version "v2022-07-28T23-23-00" in our project, we are getting the error "Could not GET 'https://mvnrepository.com/artifact/de.gesellix/gradle-debian-plugin/org/apache/maven/maven-archiver/3.8.5/maven-archiver-3.8.5.pom'. Received status code 403 from server: Forbidden" for the last couple of days.

@gesellix
Copy link
Owner

gesellix commented Jul 2, 2024

Hey, can you share more details about your project configuration? The download path looks suprising to me, because the maven-archiver pom should not be a subdirectory of the gradle-debian-plugin.
I suppose your repository configuration might point to mvnrepository.com instead of something like https://repo1.maven.org/maven2/.

@itsthamarai
Copy link
Author

Sure. This is what we have in build.gradle.

buildscript {
repositories {
maven {
url "https://mvnrepository.com/artifact/de.gesellix/gradle-debian-plugin"
}
mavenCentral()
}
dependencies {
classpath("de.gesellix:gradle-debian-plugin:2022-07-28T23-23-00")
}
}
I hope this helps.

@gesellix
Copy link
Owner

gesellix commented Jul 3, 2024

So, the url should be changed. Please check the description at the plugin portal: https://plugins.gradle.org/plugin/de.gesellix.debian

For modern versions of Gradle your config should be replaced by:

plugins {
  id("de.gesellix.debian") version "2022-07-28T23-23-00"
}

@gesellix
Copy link
Owner

gesellix commented Jul 6, 2024

@itsthamarai did that help?

@itsthamarai
Copy link
Author

No, it is still the same issue. Getting "Could not find org.apache.maven:maven-archiver:3.8.5.' error.

@gesellix
Copy link
Owner

gesellix commented Jul 8, 2024

Can you run the build including --info --stacktrace and post the complete error here? Please remove any sensitive details and credentials if they appear in the error message.
Also, please check again that both settings.gradle and build.gradle don't reference any hard coded url with https://mvnrepository.com/.

@itsthamarai
Copy link
Author

A problem occurred configuring root project ' '.

Could not resolve all files for configuration ':classpath'.
Could not find org.apache.maven:maven-archiver:3.8.5.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/3.8.5/maven-archiver-3.8.5.pom
- {INTERNAL REPO}
- https://plugins.gradle.org/m2/org/apache/maven/maven-archiver/3.8.5/maven-archiver-3.8.5.pom
Required by:
project : > de.gesellix.debian:de.gesellix.debian.gradle.plugin:2022-07-28T23-23-00 > de.gesellix:gradle-debian-plugin:2022-07-28T23-23-00
Could not find org.apache.maven:maven-archiver:3.8.5.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/3.8.5/maven-archiver-3.8.5.pom
- {INTERNAL REPO}
- https://plugins.gradle.org/m2/org/apache/maven/maven-archiver/3.8.5/maven-archiver-3.8.5.pom
Required by:
project : > de.gesellix.debian:de.gesellix.debian.gradle.plugin:2022-07-28T23-23-00 > de.gesellix:gradle-debian-plugin:2022-07-28T23-23-00 > org.vafer:jdeb:1.10

Possible solution:

@gesellix
Copy link
Owner

gesellix commented Jul 9, 2024

Thanks, I finally found the reason and I'm going to release a fix this week.

@gesellix
Copy link
Owner

An updated plugin with the dependency fix is now available:

plugins {
  id("de.gesellix.debian") version "2024-07-13T09-15-00"
}

@gesellix
Copy link
Owner

Thanks a lot for your patience! If anything still doesn't work, please leave a note here or create another issue.

@itsthamarai
Copy link
Author

Thank you!! It works great now..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants