JanusGraph / janusgraph

JanusGraph: an open-source, distributed graph database
https://janusgraph.org
Other
5.32k stars 1.17k forks source link

Maven version set throws java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer #2379

Closed porunov closed 3 years ago

porunov commented 3 years ago

On of the releasing steps is to set a correct snapshot version in all pom files (i.e. without SNAPSHOT suffix). We do that by using the next command: mvn versions:set -DremoveSnapshot=true -DgenerateBackupPoms=false. It works in v0.5 branch but doesn't work in master branch. We should find the root issue for that and fix it.

For confirmed bugs, please report:

Stack Trace

Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
    at org.apache.http.client.utils.URLEncodedUtils.urlDecode(URLEncodedUtils.java:682)
    at org.apache.http.client.utils.URLEncodedUtils.parsePathSegments(URLEncodedUtils.java:364)
    at org.apache.http.client.utils.URIBuilder.parsePath(URIBuilder.java:118)
    at org.apache.http.client.utils.URIBuilder.digestURI(URIBuilder.java:197)
    at org.apache.http.client.utils.URIBuilder.<init>(URIBuilder.java:91)
    at org.apache.http.client.utils.URIUtils.rewriteURI(URIUtils.java:206)
    at org.apache.http.client.utils.URIUtils.rewriteURIForRoute(URIUtils.java:319)
    at org.apache.http.impl.execchain.ProtocolExec.rewriteRequestURI(ProtocolExec.java:96)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:133)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:1005)
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1162)
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1140)
    at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:126)
    at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
    at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
    at org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:567)
    at org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:435)
    at org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:412)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:457)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:364)
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:644)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:262)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:499)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:401)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:229)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:207)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:255)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:106)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:182)
    at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:86)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:139)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:125)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:85)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:266)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:104)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
farodin91 commented 3 years ago

Works fine with:

Apache Maven 3.6.3 (Red Hat 3.6.3-5)
Maven home: /usr/share/maven
Java version: 11.0.9.1, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.9.11-9.fc33.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.10.6-200.fc33.x86_64", arch: "amd64", family: "unix"
porunov commented 3 years ago

I'm using Java 8 to build the project

farodin91 commented 3 years ago

Could add the full log line?

porunov commented 3 years ago

The issue was introduced in this commit: https://github.com/JanusGraph/janusgraph/commit/cbecccdf896012027db017195641bfb5be6d6062

Full log:

$ mvn versions:set -DremoveSnapshot=true -DgenerateBackupPoms=false
[INFO] Scanning for projects...
[WARNING] The project org.janusgraph:janusgraph:pom:0.6.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] JanusGraph: Distributed Graph Database                             [pom]
[INFO] JanusGraph-Driver: Gremlin-Driver Library for JanusGraph           [jar]
[INFO] JanusGraph-Core: Core Library for JanusGraph                       [jar]
[INFO] JanusGraph-Backend-testutils: Collection of Backend tests          [jar]
[INFO] JanusGraph-InMemory: InMemory Backend for JanusGraph               [jar]
[INFO] janusgraph-server                                                  [jar]
[INFO] JanusGraph-Test: Test Suite for JanusGraph                         [jar]
[INFO] JanusGraph-BerkeleyJE: Distributed Graph Database                  [jar]
[INFO] JanusGraph-Hadoop: Module                                          [jar]
[INFO] JanusGraph-CQL: Distributed Graph Database                         [jar]
[INFO] JanusGraph-HBase: Parent Module                                    [pom]
[INFO] JanusGraph-HBase: Version-independent Core                         [jar]
[INFO] JanusGraph-HBase: HBase Server Used by Maven Testing               [jar]
[INFO] JanusGraph-HBase: 1.x and 2.x Compatibility Shim                   [jar]
[INFO] JanusGraph-HBase: Universal binary                                 [jar]
[INFO] JanusGraph-Bigtable: Google Cloud Bigtable driver                  [jar]
[INFO] JanusGraph-ElasticSearch: Distributed Indexing Support             [jar]
[INFO] JanusGraph-Lucene: Indexing Support                                [jar]
[INFO] JanusGraph-Solr: Distributed Indexing Support                      [jar]
[INFO] JanusGraph-All: Complete JanusGraph Distribution                   [jar]
[INFO] JanusGraph-Dist: Tar and Zip Archives                              [pom]
[INFO] JanusGraph-Doc: Manual for JanusGraph                              [pom]
[INFO] JanusGraph-Examples: Examples for JanusGraph                       [pom]
[INFO] Example-Common: Common Graph Code for Examples                     [jar]
[INFO] Example-BerkeleyJE: BerkeleyJE Storage, Lucene Index               [pom]
[INFO] Example-Cql: Cassandra CQL Storage, Elasticsearch Index            [pom]
[INFO] Example-HBase: HBase Storage, Solr Index                           [pom]
[INFO] Example-RemoteGraph: Example with RemoteGraph                      [jar]
[INFO] Example-TinkerGraph: Example with TinkerGraph                      [jar]
Downloading from central: https://repo.maven.apache.org/maven2/org/jacoco/jacoco-maven-plugin/0.8.6/jacoco-maven-plugin-0.8.6.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for JanusGraph: Distributed Graph Database 0.6.0-SNAPSHOT:
[INFO] 
[INFO] JanusGraph: Distributed Graph Database ............. SKIPPED
[INFO] JanusGraph-Driver: Gremlin-Driver Library for JanusGraph SKIPPED
[INFO] JanusGraph-Core: Core Library for JanusGraph ....... SKIPPED
[INFO] JanusGraph-Backend-testutils: Collection of Backend tests SKIPPED
[INFO] JanusGraph-InMemory: InMemory Backend for JanusGraph SKIPPED
[INFO] janusgraph-server .................................. SKIPPED
[INFO] JanusGraph-Test: Test Suite for JanusGraph ......... SKIPPED
[INFO] JanusGraph-BerkeleyJE: Distributed Graph Database .. SKIPPED
[INFO] JanusGraph-Hadoop: Module .......................... SKIPPED
[INFO] JanusGraph-CQL: Distributed Graph Database ......... SKIPPED
[INFO] JanusGraph-HBase: Parent Module .................... SKIPPED
[INFO] JanusGraph-HBase: Version-independent Core ......... SKIPPED
[INFO] JanusGraph-HBase: HBase Server Used by Maven Testing SKIPPED
[INFO] JanusGraph-HBase: 1.x and 2.x Compatibility Shim ... SKIPPED
[INFO] JanusGraph-HBase: Universal binary ................. SKIPPED
[INFO] JanusGraph-Bigtable: Google Cloud Bigtable driver .. SKIPPED
[INFO] JanusGraph-ElasticSearch: Distributed Indexing Support SKIPPED
[INFO] JanusGraph-Lucene: Indexing Support ................ SKIPPED
[INFO] JanusGraph-Solr: Distributed Indexing Support ...... SKIPPED
[INFO] JanusGraph-All: Complete JanusGraph Distribution ... SKIPPED
[INFO] JanusGraph-Dist: Tar and Zip Archives .............. SKIPPED
[INFO] JanusGraph-Doc: Manual for JanusGraph .............. SKIPPED
[INFO] JanusGraph-Examples: Examples for JanusGraph ....... SKIPPED
[INFO] Example-Common: Common Graph Code for Examples ..... SKIPPED
[INFO] Example-BerkeleyJE: BerkeleyJE Storage, Lucene Index SKIPPED
[INFO] Example-Cql: Cassandra CQL Storage, Elasticsearch Index SKIPPED
[INFO] Example-HBase: HBase Storage, Solr Index ........... SKIPPED
[INFO] Example-RemoteGraph: Example with RemoteGraph ...... SKIPPED
[INFO] Example-TinkerGraph: Example with TinkerGraph ...... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.544 s
[INFO] Finished at: 2021-01-22T13:05:06+02:00
[INFO] ------------------------------------------------------------------------
---------------------------------------------------
constituent[0]: file:/usr/share/maven/conf/logging/
constituent[1]: file:/usr/share/maven/lib/maven-embedder-3.6.3.jar
constituent[2]: file:/usr/share/maven/lib/httpcore-4.4.13.jar
constituent[3]: file:/usr/share/maven/lib/maven-resolver-util-1.4.1.jar
constituent[4]: file:/usr/share/maven/lib/maven-resolver-transport-wagon-1.4.1.jar
constituent[5]: file:/usr/share/maven/lib/guava-27.1-jre.jar
constituent[6]: file:/usr/share/maven/lib/hawtjni-runtime-1.17.jar
constituent[7]: file:/usr/share/maven/lib/javax.inject-1.jar
constituent[8]: file:/usr/share/maven/lib/jcl-over-slf4j-1.7.29.jar
constituent[9]: file:/usr/share/maven/lib/wagon-file-3.3.4.jar
constituent[10]: file:/usr/share/maven/lib/plexus-cipher-1.7.jar
constituent[11]: file:/usr/share/maven/lib/wagon-http-3.3.4.jar
constituent[12]: file:/usr/share/maven/lib/maven-resolver-connector-basic-1.4.1.jar
constituent[13]: file:/usr/share/maven/lib/commons-cli-1.4.jar
constituent[14]: file:/usr/share/maven/lib/maven-shared-utils-3.2.1.jar
constituent[15]: file:/usr/share/maven/lib/wagon-http-shared-3.4.1.jar
constituent[16]: file:/usr/share/maven/lib/httpcomponents_httpcore.jar
constituent[17]: file:/usr/share/maven/lib/maven-model-3.6.3.jar
constituent[18]: file:/usr/share/maven/lib/commons-io-2.5.jar
constituent[19]: file:/usr/share/maven/lib/maven-resolver-api-1.4.1.jar
constituent[20]: file:/usr/share/maven/lib/maven-resolver-impl-1.4.1.jar
constituent[21]: file:/usr/share/maven/lib/maven-slf4j-provider-3.6.3.jar
constituent[22]: file:/usr/share/maven/lib/commons-lang3-3.8.1.jar
constituent[23]: file:/usr/share/maven/lib/maven-model-builder-3.6.3.jar
constituent[24]: file:/usr/share/maven/lib/org.eclipse.sisu.plexus-0.3.4.jar
constituent[25]: file:/usr/share/maven/lib/httpcomponents_httpclient.jar
constituent[26]: file:/usr/share/maven/lib/wagon-provider-api-3.3.4.jar
constituent[27]: file:/usr/share/maven/lib/maven-settings-builder-3.6.3.jar
constituent[28]: file:/usr/share/maven/lib/commons-codec-1.11.jar
constituent[29]: file:/usr/share/maven/lib/cdi-api-1.1.jar
constituent[30]: file:/usr/share/maven/lib/plexus-interpolation-1.25.jar
constituent[31]: file:/usr/share/maven/lib/jansi-native-1.8.jar
constituent[32]: file:/usr/share/maven/lib/slf4j-api-1.7.29.jar
constituent[33]: file:/usr/share/maven/lib/maven-builder-support-3.6.3.jar
constituent[34]: file:/usr/share/maven/lib/maven-core-3.6.3.jar
constituent[35]: file:/usr/share/maven/lib/plexus-utils-3.2.1.jar
constituent[36]: file:/usr/share/maven/lib/jsoup-1.12.1.jar
constituent[37]: file:/usr/share/maven/lib/org.eclipse.sisu.inject-0.3.4.jar
constituent[38]: file:/usr/share/maven/lib/jansi-1.17.1.jar
constituent[39]: file:/usr/share/maven/lib/jansi-linux.jar
constituent[40]: file:/usr/share/maven/lib/maven-settings-3.6.3.jar
constituent[41]: file:/usr/share/maven/lib/jsr250-api-1.0.jar
constituent[42]: file:/usr/share/maven/lib/guice-4.2.1-no_aop.jar
constituent[43]: file:/usr/share/maven/lib/plexus-component-annotations-2.1.0.jar
constituent[44]: file:/usr/share/maven/lib/maven-plugin-api-3.6.3.jar
constituent[45]: file:/usr/share/maven/lib/maven-compat-3.6.3.jar
constituent[46]: file:/usr/share/maven/lib/maven-resolver-provider-3.6.3.jar
constituent[47]: file:/usr/share/maven/lib/maven-repository-metadata-3.6.3.jar
constituent[48]: file:/usr/share/maven/lib/httpclient-4.5.12.jar
constituent[49]: file:/usr/share/maven/lib/maven-artifact-3.6.3.jar
constituent[50]: file:/usr/share/maven/lib/plexus-sec-dispatcher-1.4.jar
constituent[51]: file:/usr/share/maven/lib/maven-wagon_http-shared.jar
constituent[52]: file:/usr/share/maven/lib/maven-resolver-spi-1.4.1.jar
---------------------------------------------------
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
    at org.apache.http.client.utils.URLEncodedUtils.urlDecode(URLEncodedUtils.java:682)
    at org.apache.http.client.utils.URLEncodedUtils.parsePathSegments(URLEncodedUtils.java:364)
    at org.apache.http.client.utils.URIBuilder.parsePath(URIBuilder.java:118)
    at org.apache.http.client.utils.URIBuilder.digestURI(URIBuilder.java:197)
    at org.apache.http.client.utils.URIBuilder.<init>(URIBuilder.java:91)
    at org.apache.http.client.utils.URIUtils.rewriteURI(URIUtils.java:206)
    at org.apache.http.client.utils.URIUtils.rewriteURIForRoute(URIUtils.java:319)
    at org.apache.http.impl.execchain.ProtocolExec.rewriteRequestURI(ProtocolExec.java:96)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:133)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:1005)
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1162)
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1140)
    at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:126)
    at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
    at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
    at org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:567)
    at org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:435)
    at org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:412)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:457)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:364)
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:644)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:262)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:499)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:401)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:229)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:207)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:255)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:106)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:182)
    at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:86)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:139)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:125)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:85)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:266)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:104)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
farodin91 commented 3 years ago

My output is following:

[INFO] Scanning for projects...
[WARNING] The project org.janusgraph:janusgraph:pom:0.6.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] JanusGraph: Distributed Graph Database                             [pom]
[INFO] JanusGraph-Driver: Gremlin-Driver Library for JanusGraph           [jar]
[INFO] JanusGraph-Core: Core Library for JanusGraph                       [jar]
[INFO] JanusGraph-Backend-testutils: Collection of Backend tests          [jar]
[INFO] JanusGraph-InMemory: InMemory Backend for JanusGraph               [jar]
[INFO] janusgraph-server                                                  [jar]
[INFO] JanusGraph-Test: Test Suite for JanusGraph                         [jar]
[INFO] JanusGraph-BerkeleyJE: Distributed Graph Database                  [jar]
[INFO] JanusGraph-Hadoop: Module                                          [jar]
[INFO] JanusGraph-CQL: Distributed Graph Database                         [jar]
[INFO] JanusGraph-HBase: Parent Module                                    [pom]
[INFO] JanusGraph-HBase: Version-independent Core                         [jar]
[INFO] JanusGraph-HBase: HBase Server Used by Maven Testing               [jar]
[INFO] JanusGraph-HBase: 1.x and 2.x Compatibility Shim                   [jar]
[INFO] JanusGraph-HBase: Universal binary                                 [jar]
[INFO] JanusGraph-Bigtable: Google Cloud Bigtable driver                  [jar]
[INFO] JanusGraph-ElasticSearch: Distributed Indexing Support             [jar]
[INFO] JanusGraph-Lucene: Indexing Support                                [jar]
[INFO] JanusGraph-Solr: Distributed Indexing Support                      [jar]
[INFO] JanusGraph-All: Complete JanusGraph Distribution                   [jar]
[INFO] JanusGraph-Dist: Tar and Zip Archives                              [pom]
[INFO] JanusGraph-Doc: Manual for JanusGraph                              [pom]
[INFO] JanusGraph-Examples: Examples for JanusGraph                       [pom]
[INFO] Example-Common: Common Graph Code for Examples                     [jar]
[INFO] Example-BerkeleyJE: BerkeleyJE Storage, Lucene Index               [pom]
[INFO] Example-Cql: Cassandra CQL Storage, Elasticsearch Index            [pom]
[INFO] Example-HBase: HBase Storage, Solr Index                           [pom]
[INFO] Example-RemoteGraph: Example with RemoteGraph                      [jar]
[INFO] Example-TinkerGraph: Example with TinkerGraph                      [jar]
[INFO] 
[INFO] ---------------------< org.janusgraph:janusgraph >----------------------
[INFO] Building JanusGraph: Distributed Graph Database 0.6.0-SNAPSHOT    [1/29]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- versions-maven-plugin:2.8.1:set (default-cli) @ janusgraph ---
[INFO] SNAPSHOT found.  BEFORE 0.6.0-SNAPSHOT  --> AFTER: 0.6.0
[INFO] Local aggregation root: /home/jan.jansen/Git/github.com/GDATASoftwareAG/janusgraph
[INFO] Processing change of org.janusgraph:janusgraph:0.6.0-SNAPSHOT -> 0.6.0
[INFO] Processing org.janusgraph:janusgraph
[INFO]     Updating project org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-all
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-backend-testutils
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-berkeleyje
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-bigtable
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-core
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-cql
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-dist
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-doc
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-driver
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-es
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-examples
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-hadoop
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-hbase-parent
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-inmemory
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-lucene
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-server
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-solr
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-test
[INFO]     Updating parent org.janusgraph:janusgraph
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:example-berkeleyje
[INFO]     Updating parent org.janusgraph:janusgraph-examples
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:example-common
[INFO]     Updating parent org.janusgraph:janusgraph-examples
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:example-cql
[INFO]     Updating parent org.janusgraph:janusgraph-examples
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:example-hbase
[INFO]     Updating parent org.janusgraph:janusgraph-examples
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:example-remotegraph
[INFO]     Updating parent org.janusgraph:janusgraph-examples
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:example-tinkergraph
[INFO]     Updating parent org.janusgraph:janusgraph-examples
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-hbase-10
[INFO]     Updating parent org.janusgraph:janusgraph-hbase-parent
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-hbase-core
[INFO]     Updating parent org.janusgraph:janusgraph-hbase-parent
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-hbase-server
[INFO]     Updating parent org.janusgraph:janusgraph-hbase-parent
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] Processing org.janusgraph:janusgraph-hbase
[INFO]     Updating parent org.janusgraph:janusgraph-hbase-parent
[INFO]         from version 0.6.0-SNAPSHOT to 0.6.0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for JanusGraph: Distributed Graph Database 0.6.0-SNAPSHOT:
[INFO] 
[INFO] JanusGraph: Distributed Graph Database ............. SUCCESS [  1.642 s]
[INFO] JanusGraph-Driver: Gremlin-Driver Library for JanusGraph SKIPPED
[INFO] JanusGraph-Core: Core Library for JanusGraph ....... SKIPPED
[INFO] JanusGraph-Backend-testutils: Collection of Backend tests SKIPPED
[INFO] JanusGraph-InMemory: InMemory Backend for JanusGraph SKIPPED
[INFO] janusgraph-server .................................. SKIPPED
[INFO] JanusGraph-Test: Test Suite for JanusGraph ......... SKIPPED
[INFO] JanusGraph-BerkeleyJE: Distributed Graph Database .. SKIPPED
[INFO] JanusGraph-Hadoop: Module .......................... SKIPPED
[INFO] JanusGraph-CQL: Distributed Graph Database ......... SKIPPED
[INFO] JanusGraph-HBase: Parent Module .................... SKIPPED
[INFO] JanusGraph-HBase: Version-independent Core ......... SKIPPED
[INFO] JanusGraph-HBase: HBase Server Used by Maven Testing SKIPPED
[INFO] JanusGraph-HBase: 1.x and 2.x Compatibility Shim ... SKIPPED
[INFO] JanusGraph-HBase: Universal binary ................. SKIPPED
[INFO] JanusGraph-Bigtable: Google Cloud Bigtable driver .. SKIPPED
[INFO] JanusGraph-ElasticSearch: Distributed Indexing Support SKIPPED
[INFO] JanusGraph-Lucene: Indexing Support ................ SKIPPED
[INFO] JanusGraph-Solr: Distributed Indexing Support ...... SKIPPED
[INFO] JanusGraph-All: Complete JanusGraph Distribution ... SKIPPED
[INFO] JanusGraph-Dist: Tar and Zip Archives .............. SKIPPED
[INFO] JanusGraph-Doc: Manual for JanusGraph .............. SKIPPED
[INFO] JanusGraph-Examples: Examples for JanusGraph ....... SKIPPED
[INFO] Example-Common: Common Graph Code for Examples ..... SKIPPED
[INFO] Example-BerkeleyJE: BerkeleyJE Storage, Lucene Index SKIPPED
[INFO] Example-Cql: Cassandra CQL Storage, Elasticsearch Index SKIPPED
[INFO] Example-HBase: HBase Storage, Solr Index ........... SKIPPED
[INFO] Example-RemoteGraph: Example with RemoteGraph ...... SKIPPED
[INFO] Example-TinkerGraph: Example with TinkerGraph ...... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.127 s
[INFO] Finished at: 2021-01-22T12:06:36+01:00
[INFO] ------------------------------------------------------------------------

Could you tell me your maven version?

We have check each of these changes one by one.

porunov commented 3 years ago

$ mvn --version Apache Maven 3.6.3 (Red Hat 3.6.3-5) Maven home: /usr/share/maven Java version: 1.8.0_241, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-oracle-8-241/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.9.16-200.fc33.x86_64", arch: "amd64", family: "unix"

porunov commented 3 years ago

Probably it is the issue with Fedora 33 and Maven itself. I will check that. https://bugzilla.redhat.com/show_bug.cgi?id=1885300

porunov commented 3 years ago

It is still strange that I can build project successfully using v0.5 branch but not master branch. I also found that bumping jacoco plugin back to 0.8.5 resolve the issue for me in the posted commit but it isn't enough for the latest master commit.

farodin91 commented 3 years ago

I'm also using fedora 33. I'm not able to use Java 8 as runner for maven since fedora 33.

farodin91 commented 3 years ago

but it isn't enough for the latest master commit.

Any idea why?

porunov commented 3 years ago

Any idea why?

Not yet. I'm searching the root cause of it.

One more related commit: https://github.com/JanusGraph/janusgraph/commit/a5fc414faec2b042a20780c2a1acc49ef33b4833

porunov commented 3 years ago

Another related commit: https://github.com/JanusGraph/janusgraph/commit/ac4cfa751b2e078117a998daa16d90eebcbe8f2d

porunov commented 3 years ago

Next related commit: https://github.com/JanusGraph/janusgraph/commit/8f900d35c1c4616d4773daadc2d0fc38e735bbae

porunov commented 3 years ago

The last related commit: https://github.com/JanusGraph/janusgraph/commit/b0a24d3fb28eba61fda59a3920392ce6154c64ef

porunov commented 3 years ago

So, the summary as for now. Reverting the next commits:

And reverting jacoco from 0.8.6 to 0.8.5 (which was updated in this commit https://github.com/JanusGraph/janusgraph/commit/cbecccdf896012027db017195641bfb5be6d6062) solves the issue for Fedora 33 (Java 8).

Most likely it is an issue in Fedora 33 and not in the project (as posted here: https://bugzilla.redhat.com/show_bug.cgi?id=1885300).

That said, we need to check if the project release build works in other OSes with Java 8 before confirming that.

I will investigate it this weekend more

farodin91 commented 3 years ago

It sounds like you cannot download maven plugins anymore.

li-boxuan commented 3 years ago

What is the impact of this error? Does it only affect local build? Does it affect runtime as well?

porunov commented 3 years ago

What is the impact of this error? Does it only affect local build? Does it affect runtime as well?

It looks like this issue affects building process on Fedora 33 only (with Java 8). I tried to build it on Fedora 32 with Java 8 and it works without any problem. It looks like there is a bug which is filed with Fedora 33: https://bugzilla.redhat.com/show_bug.cgi?id=1885300

I'm not sure if we should keep this issue open or not because this issue is fully depend on Fedora 33 bug.

porunov commented 3 years ago

Because this issue is related to Fedora 33 bug and not to JanusGraph itself, I'm closing this issue. Unless we see such problems with other OSes, we can reopen this issue.