fdk-java
fdk-java copied to clipboard
mvn clean install fails
Hello; using JDK 9 and Maven 3.5.0 I've:
- cloned the repository
- run
mvn -U clean installon it
It fails trying to download the com.github.kenglxn.qrgen:javase:jar:2.3.0 dependency:
[INFO] ------------------------------------------------------------------------
[INFO] Building qr-code 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://localhost:8081/repository/maven-public/com/github/kenglxn/qrgen/javase/2.3.0/javase-2.3.0.pom
[WARNING] The POM for com.github.kenglxn.qrgen:javase:jar:2.3.0 is missing, no dependency information available
Downloading: http://localhost:8081/repository/maven-public/com/github/kenglxn/qrgen/javase/2.3.0/javase-2.3.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] fdk ................................................ SUCCESS [ 2.043 s]
[INFO] api ................................................ SUCCESS [ 8.005 s]
[INFO] runtime ............................................ SUCCESS [ 36.625 s]
[INFO] testing ............................................ SUCCESS [ 15.660 s]
[INFO] string-reverse ..................................... SUCCESS [ 1.574 s]
[INFO] regex-query ........................................ SUCCESS [ 0.247 s]
[INFO] qr-code ............................................ FAILURE [ 1.085 s]
[INFO] async-thumbnails ................................... SKIPPED
[INFO] fdk-examples ....................................... SKIPPED
[INFO] integration-tests .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2017-10-19T09:35:39-07:00
[INFO] Final Memory: 42M/669M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project qr-code: Could not resolve dependencies for project com.fnproject.fn.examples:qr-code:jar:1.0.0-SNAPSHOT: Could not find artifact com.github.kenglxn.qrgen:javase:jar:2.3.0 in nexus (http://localhost:8081/repository/maven-public/) -> [Help 1]
(My Nexus instance running on localhost works fine (i.e. is not the source of the problem), and indeed search.maven.org shows no listing for com.github.kenglxn.qrgen:javase:jar:2.3.0, but does show some other qrgen artifacts. Perhaps one of those is the dependency that should have been included?)
I think the reason this works for us is because of having bintray repos enabled in our settings.xml files like this:
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
We should move that repo definition into the pom.
master build still fails. Ensuring that https://repo.spring.io/libs-milestone-local/ is present as a proxied Maven repository in my local Nexus installation gets past this problem.
You should not add that to the pom, but rather deploy the releases to Maven Central. Now you are working against company repository managers that (understandably) restrict access to approved repositories only. See also https://github.com/fnproject/fn/issues/1409