dragon66 / icafe

Java library for reading, writing, converting and manipulating images and metadata
Eclipse Public License 1.0
204 stars 58 forks source link

Build error #104

Closed anowak-ct closed 1 month ago

anowak-ct commented 3 years ago

After cloning the repo I am getting the following error, when I try to build it.

Steps to reproduce:

$ mvn -version
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: C:\Program Files\maven
Java version: 11.0.11, vendor: Amazon.com Inc., runtime: C:\Program Files\Java\jdk11.0.11_9
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

$ git clone https://github.com/dragon66/icafe.git
$ cd icafe/
$ mvn install -DskipTests

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.github.dragon66:icafe:jar:1.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 41, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 56, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ---------------------< com.github.dragon66:icafe >----------------------
[INFO] Building ICAFE Java image library 1.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml (905 B at 2.5 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.003 s
[INFO] Finished at: 2021-07-04T23:29:43-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project icafe: Could not resolve dependencies for project com.github.dragon66:icafe:jar:1.1-SNAPSHOT: Failed to collect dependencies at javax.media:ja
i_imageio:jar:1.1: Failed to read artifact descriptor for javax.media:jai_imageio:jar:1.1: Could not transfer artifact javax.media:jai_imageio:pom:1.1 from/to maven-default-http-blocke
r (http://0.0.0.0/): Blocked mirror for repositories: [jai-imageio (http://maven.geotoolkit.org, default, releases+snapshots)] -> [Help 1]
[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/DependencyResolutionException
dragon66 commented 3 years ago

@anowak-ct You can add the imageio jar file from the Lib folder to your classpath.