JMH JDK Microbenchmarks refer to Oracle internal infras?

Eric Caspole eric.caspole at oracle.com
Mon Apr 8 14:41:48 UTC 2019


Hi Felix,
Thanks for pointing this out, that repo is not used in the build and I 
will fix the pom in the repo later today.

In the mean time you can remove it:

$ hg diff
diff -r a644f3612e8d pom.xml
--- a/pom.xml   Tue Mar 26 15:56:51 2019 -0400
+++ b/pom.xml   Mon Apr 08 10:38:29 2019 -0400
@@ -291,13 +291,6 @@
          </dependency>
      </dependencies>

-    <repositories>
-        <repository>
-            <id>Stockholm Repository</id>
- 
<url>http://maven.se.oracle.com/nexus/content/groups/public</url>
-        </repository>
-    </repositories>
-

Regards,
Eric


On 4/8/19 05:52, xiaofeng Young wrote:
> Hi,
>     not sure if this alias is suitable. I'm trying to build and run JDK micro-benchmarks with following guides
> Wiki: http://openjdk.java.net/projects/code-tools/jmh-jdk-microbenchmarks/
> Repo: http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/a644f3612e8d/README.md
> 
> After cloning the repo, a simple build with "mvn clean install" fails. It refers an oracle infra, http://maven.se.oracle.com/nexus/content/groups/public.
> http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/a644f3612e8d/pom.xml
> 
>      <repositories><http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/a644f3612e8d/pom.xml#l294>
>          <repository><http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/a644f3612e8d/pom.xml#l295>
>              <id>Stockholm Repository</id><http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/a644f3612e8d/pom.xml#l296>
>              <url>http://maven.se.oracle.com/nexus/content/groups/public</url><http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/a644f3612e8d/pom.xml#l297>
>          </repository><http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/a644f3612e8d/pom.xml#l298>
>      </repositories><http://hg.openjdk.java.net/code-tools/jmh-jdk-microbenchmarks/file/a644f3612e8d/pom.xml#l299>
> 
> 
> Is it an internal one? How can I fix or workaround?
> 
> See the mvn failure:
> 
> [INFO] OpenJDK Microbenchmark Corpus (JDK 8) .............. FAILURE [  0.259 s]
> [INFO] OpenJDK Microbenchmark Corpus (Uber-Package) 1.0-SNAPSHOT SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.019 s
> [INFO] Finished at: 2019-04-08T17:26:12+08:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project micros-jdk8: Could not resolve dependencies for project org.openjdk:micros-jdk8:jar:1.0-SNAPSHOT: Failed to collect dependencies at org.openjdk:micros-util:jar:1.0-SNAPSHOT: Failed to read artifact descriptor for org.openjdk:micros-util:jar:1.0-SNAPSHOT: Could not transfer artifact org.openjdk:micros-util:pom:1.0-SNAPSHOT from/to Stockholm Repository (http://maven.se.oracle.com/nexus/content/groups/public): maven.se.oracle.com: Unknown host maven.se.oracle.com -> [Help 1]
> 
> Thank you very much!
> Felix Yang
> 


More information about the code-tools-dev mailing list