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

Fresh clone and build fails? #131

Open
brainstorm opened this issue May 11, 2021 · 1 comment
Open

Fresh clone and build fails? #131

brainstorm opened this issue May 11, 2021 · 1 comment

Comments

@brainstorm
Copy link

% git clone --recursive http://github.com/nativelibs4java/JNAerator.git
Cloning into 'JNAerator'...
warning: redirecting to https://github.com/nativelibs4java/JNAerator.git/
remote: Enumerating objects: 10497, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 10497 (delta 6), reused 0 (delta 0), pack-reused 10484
Receiving objects: 100% (10497/10497), 14.51 MiB | 1.45 MiB/s, done.
Resolving deltas: 100% (4877/4877), done.

% mvn clean install
[INFO] Scanning for projects...
Downloading from maven-default-http-blocker: http://0.0.0.0/com/nativelibs4java/nativelibs4java-parent/1.10-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com.nativelibs4java:nativelibs4java-parent:1.10-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/com/nativelibs4java/nativelibs4java-parent/1.10-SNAPSHOT/maven-metadata.xml
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.nativelibs4java:jnaerator-parent:0.13-SNAPSHOT: Could not transfer artifact com.nativelibs4java:nativelibs4java-parent:pom:1.10-SNAPSHOT from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [sonatype (http://oss.sonatype.org/content/groups/public, default, releases+snapshots)] and 'parent.relativePath' points at wrong local POM @ line 11, column 10
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.nativelibs4java:jnaerator-parent:0.13-SNAPSHOT (/Users/rvalls/dev/personal/JNAerator/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.nativelibs4java:jnaerator-parent:0.13-SNAPSHOT: Could not transfer artifact com.nativelibs4java:nativelibs4java-parent:pom:1.10-SNAPSHOT from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [sonatype (http://oss.sonatype.org/content/groups/public, default, releases+snapshots)] and 'parent.relativePath' points at wrong local POM @ line 11, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
@elimbaum
Copy link

This is caused by recent versions of maven blocking HTTP:

maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories

See this stack overflow post and the 3.8.1 release notes.

I managed to get past this error by changing the http URLs in pom.xml to https. However, some other HTTP errors appeared...

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