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

Could not build astor because of use of http in newer maven #327

Open
JakkuSakura opened this issue Jul 28, 2021 · 3 comments
Open

Could not build astor because of use of http in newer maven #327

JakkuSakura opened this issue Jul 28, 2021 · 3 comments

Comments

@JakkuSakura
Copy link
Contributor

mvn install -DskipTests=true

[ERROR] Failed to execute goal on project astor: Could not resolve dependencies for project org.inria.sacha.automaticRepair:astor:jar:1.1.0: Failed to collect dependencies at com.gzoltar:gzoltar:jar:0.1.1: Failed to read artifact descriptor for com.gzoltar:gzoltar:jar:0.1.1: Could not transfer artifact com.gzoltar:gzoltar:pom:0.1.1 from/to maven-default-http-blocker (https://0.0.0.0/): Blocked mirror for repositories: [inria (https://spoon.gforge.inria.fr/repositories/releases/, default, releases+snapshots), gforge.inria.fr-snapshot (https://spoon.gforge.inria.fr/repositories/snapshots/, default, releases+snapshots), gforge.inria.fr-release (https://sachaproject.gforge.inria.fr/repositories/releases/, default, releases+snapshots), EvoSuite (https://www.evosuite.org/m2, default, releases+snapshots), sachaproject.gforge.inria.fr-release (https://sachaproject.gforge.inria.fr/repositories/releases/, default, releases+snapshots), maven.inria.fr-snapshot (https://maven.inria.fr/artifactory/spoon-public-snapshot/, default, releases+snapshots)] -> [Help 1]
@martinezmatias
Copy link
Collaborator

Hi @qiujiangkun

Thanks for reporting the issue.
To overcome it, I would recommend to manually install the gzoltar dependency using mvn install:install-file
The jar to be installed is located here
Regards
Matias

@andre15silva
Copy link
Collaborator

This is due to Maven blocking external HTTP insecure URLs (...) by default since 3.8.1. See https://maven.apache.org/docs/3.8.1/release-notes.html

You can also overcome this issue by disabling this (see https://stackoverflow.com/questions/67001968/how-to-disable-maven-blocking-external-http-repositores).

@martinezmatias
Copy link
Collaborator

Hi @andre15silva

Thanks a lot for pointing those links!

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

3 participants