nativelibs4java / JNAerator

JNAerator: native bindings generator for JNA / BridJ / Node.js
http://jnaerator.googlecode.com
504 stars 108 forks source link

Fresh clone and build fails? #131

Open brainstorm opened 3 years ago

brainstorm commented 3 years ago
% 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 commented 3 years ago

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...