scylladb / scylla-jmx

Scylla JMX proxy
GNU Affero General Public License v3.0
28 stars 51 forks source link

com.scylladb.jmx:scylla-apiclient:jar:1.0 was not found in https://repo.maven.apache.org/maven2 #215

Closed cvybhu closed 1 year ago

cvybhu commented 1 year ago

I'm trying to build scylla-jmx inside a newly cloned Scylla repository. Running mvn package fails with the following error:

[jc@potwor1 jmx]$ pwd
/home/jc/dtesting/scylladb/tools/jmx
[jc@potwor1 jmx]$ mvn package
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< com.scylladb.jmx:scylla-jmx >---------------------
[INFO] Building Scylla JMX 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.scylladb.jmx:scylla-apiclient:jar:1.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.097 s
[INFO] Finished at: 2023-05-25T17:43:12+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project scylla-jmx: Could not resolve dependencies for project com.scylladb.jmx:scylla-jmx:jar:1.0: com.scylladb.jmx:scylla-apiclient:jar:1.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [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
[jc@potwor1 jmx]$ 

Here's a Dockerfile which reproduces the problem (base image is the latest dbuild toolchain with all the dependencies):

FROM docker.io/scylladb/scylla-toolchain:fedora-37-20230424
RUN git clone https://github.com/scylladb/scylladb --recurse-submodules
WORKDIR scylladb/tools/jmx
RUN mvn package
cvybhu commented 1 year ago

There's also a warning:

[WARNING] The POM for com.scylladb.jmx:scylla-apiclient:jar:1.0 is missing, no dependency information available
cvybhu commented 1 year ago

Ah nevermind I assumed that scylla-jmx-parent in the README means the parent directory that holds the JMX :facepalm:

Running mvn --file scylla-jmx-parent/pom.xml package in the scylladb/tools/jmx directory works.