Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TerminalOutput.pathToMaven throws StringIndexOutOfBoundsException #929

Open
ppalaga opened this issue Apr 12, 2024 · 5 comments
Open

TerminalOutput.pathToMaven throws StringIndexOutOfBoundsException #929

ppalaga opened this issue Apr 12, 2024 · 5 comments

Comments

@ppalaga
Copy link
Contributor

ppalaga commented Apr 12, 2024

Steps to reproduce:

git clone git@github.com:quarkiverse/quarkus-langchain4j.git
cd quarkus-langchain4j
git reset --hard 177efc97b49823ad747a87766ea1e1d0c2b71ef6

mvnd --stop
mvnd -v 
Apache Maven Daemon (mvnd) 1.0-m8 linux-amd64 native client (0f4bdb6df5e74453d8d558d292789da4e66a7933)Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jansi.linux.LinuxNativePty
Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Maven home: /home/ppalaga/.sdkman/candidates/mvnd/1.0-m8-m39/mvn
Java version: 17.0.9, vendor: Eclipse Adoptium, runtime: /home/ppalaga/.sdkman/candidates/java/17.0.9-tem
Default locale: en_IE, platform encoding: UTF-8
OS name: "linux", version: "6.4.11-200.fc38.x86_64", arch: "amd64", family: "unix"

rm -Rf /tmp/empty-local-maven-repo
mvnd clean install -DskipTests -Dquarkus.build.skip -Dmaven.repo.local=/tmp/empty-local-maven-repo
...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 17
        at java.base@17.0.6/java.lang.StringLatin1.charAt(StringLatin1.java:48)
        at java.base@17.0.6/java.lang.String.charAt(String.java:1513)
        at org.mvndaemon.mvnd.common.logging.TerminalOutput.pathToMaven(TerminalOutput.java:724)
        at org.mvndaemon.mvnd.common.logging.TerminalOutput.formatTransfers(TerminalOutput.java:697)
        at org.mvndaemon.mvnd.common.logging.TerminalOutput.addProjectLine(TerminalOutput.java:810)
        at org.mvndaemon.mvnd.common.logging.TerminalOutput.update(TerminalOutput.java:615)
        at org.mvndaemon.mvnd.common.logging.TerminalOutput.accept(TerminalOutput.java:217)
        at org.mvndaemon.mvnd.client.DefaultClient.execute(DefaultClient.java:366)
        at org.mvndaemon.mvnd.client.DefaultClient.main(DefaultClient.java:161)

The daemon log contains the following lines that cause the issue in the client:

15:23:09.559 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-jackson/3.8.2/quarkus-jackson-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:23:09.559 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[�[1;34mINFO�[m] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-jackson/3.8.2/quarkus-jackson-3.8.2'}

Normally the artifact URL has an extension, such as .pom or .jar. There is no such in https://repo.maven.apache.org/maven2/io/quarkus/quarkus-jackson/3.8.2/quarkus-jackson-3.8.2 above.
I have no idea where it is coming from.

In any case, we should make the TerminalOutput.pathToMaven() method more robust so that it does not fail on this kind of input.

@ppalaga
Copy link
Contributor Author

ppalaga commented Apr 12, 2024

When I make TerminalOutput.pathToMaven() more robust, I see many such extension-less URLs

$ grep "\-3.8.2'" daemon-167cc94d.log 
15:43:45.779 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-junit5-internal/3.8.2/quarkus-junit5-internal-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:43:45.780 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-junit5-internal/3.8.2/quarkus-junit5-internal-3.8.2'}
15:43:45.878 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-junit5-internal/3.8.2/quarkus-junit5-internal-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-junit5-internal::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:43:51.300 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-vertx-http-dev-ui-tests/3.8.2/quarkus-vertx-http-dev-ui-tests-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:43:51.300 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-vertx-http-dev-ui-tests/3.8.2/quarkus-vertx-http-dev-ui-tests-3.8.2'}
15:43:51.392 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-vertx-http-dev-ui-tests/3.8.2/quarkus-vertx-http-dev-ui-tests-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-vertx-http-dev-ui-tests::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:43:53.943 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-smallrye-fault-tolerance/3.8.2/quarkus-smallrye-fault-tolerance-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:43:53.943 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-smallrye-fault-tolerance/3.8.2/quarkus-smallrye-fault-tolerance-3.8.2'}
15:43:54.035 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-smallrye-fault-tolerance/3.8.2/quarkus-smallrye-fault-tolerance-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-smallrye-fault-tolerance::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:43:54.425 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-junit5/3.8.2/quarkus-junit5-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:43:54.425 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-junit5/3.8.2/quarkus-junit5-3.8.2'}
15:43:54.518 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-junit5/3.8.2/quarkus-junit5-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-junit5::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:06.374 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-devtools-testing/3.8.2/quarkus-devtools-testing-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:06.374 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-devtools-testing/3.8.2/quarkus-devtools-testing-3.8.2'}
15:44:06.466 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-devtools-testing/3.8.2/quarkus-devtools-testing-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-devtools-testing::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:06.925 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-junit5-mockito/3.8.2/quarkus-junit5-mockito-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:06.925 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-junit5-mockito/3.8.2/quarkus-junit5-mockito-3.8.2'}
15:44:07.017 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-junit5-mockito/3.8.2/quarkus-junit5-mockito-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-junit5-mockito::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:37.573 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-arc/3.8.2/quarkus-arc-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:37.573 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-arc/3.8.2/quarkus-arc-3.8.2'}
15:44:37.574 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-jackson/3.8.2/quarkus-jackson-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:37.575 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-jackson/3.8.2/quarkus-jackson-3.8.2'}
15:44:37.575 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-qute/3.8.2/quarkus-qute-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:37.575 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-vertx/3.8.2/quarkus-vertx-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:37.575 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-qute/3.8.2/quarkus-qute-3.8.2'}
15:44:37.575 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-vertx/3.8.2/quarkus-vertx-3.8.2'}
15:44:37.578 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-smallrye-context-propagation/3.8.2/quarkus-smallrye-context-propagation-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:37.578 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-smallrye-context-propagation/3.8.2/quarkus-smallrye-context-propagation-3.8.2'}
15:44:37.665 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-arc/3.8.2/quarkus-arc-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-arc::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:37.668 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-jackson/3.8.2/quarkus-jackson-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-jackson::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:37.668 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-vertx/3.8.2/quarkus-vertx-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-vertx::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:37.668 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-qute/3.8.2/quarkus-qute-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-qute::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:37.671 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-smallrye-context-propagation/3.8.2/quarkus-smallrye-context-propagation-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-smallrye-context-propagation::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:38.864 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-rest-client-reactive-jackson/3.8.2/quarkus-rest-client-reactive-jackson-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:38.864 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-rest-client-reactive-jackson/3.8.2/quarkus-rest-client-reactive-jackson-3.8.2'}
15:44:38.930 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-arc-deployment/3.8.2/quarkus-arc-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:38.930 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-arc-deployment/3.8.2/quarkus-arc-deployment-3.8.2'}
15:44:38.952 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-jackson-deployment/3.8.2/quarkus-jackson-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:38.952 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-jackson-deployment/3.8.2/quarkus-jackson-deployment-3.8.2'}
15:44:38.955 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-rest-client-reactive-jackson/3.8.2/quarkus-rest-client-reactive-jackson-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-rest-client-reactive-jackson::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:38.956 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-qute-deployment/3.8.2/quarkus-qute-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:38.956 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-qute-deployment/3.8.2/quarkus-qute-deployment-3.8.2'}
15:44:39.021 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-arc-deployment/3.8.2/quarkus-arc-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-arc-deployment::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.022 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-vertx-deployment/3.8.2/quarkus-vertx-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:39.022 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-vertx-deployment/3.8.2/quarkus-vertx-deployment-3.8.2'}
15:44:39.043 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-jackson-deployment/3.8.2/quarkus-jackson-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-jackson-deployment::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.048 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-qute-deployment/3.8.2/quarkus-qute-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-qute-deployment::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.048 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-rest-client-reactive-jackson-deployment/3.8.2/quarkus-rest-client-reactive-jackson-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:39.048 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-rest-client-reactive-jackson-deployment/3.8.2/quarkus-rest-client-reactive-jackson-deployment-3.8.2'}
15:44:39.116 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-vertx-deployment/3.8.2/quarkus-vertx-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-vertx-deployment::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.119 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-devservices-deployment/3.8.2/quarkus-devservices-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:39.119 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-devservices-deployment/3.8.2/quarkus-devservices-deployment-3.8.2'}
15:44:39.140 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-rest-client-reactive-jackson-deployment/3.8.2/quarkus-rest-client-reactive-jackson-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-rest-client-reactive-jackson-deployment::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.210 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-devservices-deployment/3.8.2/quarkus-devservices-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-devservices-deployment::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.397 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-redis-client/3.8.2/quarkus-redis-client-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:39.397 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-redis-client/3.8.2/quarkus-redis-client-3.8.2'}
15:44:39.422 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-agroal/3.8.2/quarkus-agroal-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:39.422 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-agroal/3.8.2/quarkus-agroal-3.8.2'}
15:44:39.489 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-redis-client/3.8.2/quarkus-redis-client-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-redis-client::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.492 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-jdbc-postgresql/3.8.2/quarkus-jdbc-postgresql-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:39.492 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-jdbc-postgresql/3.8.2/quarkus-jdbc-postgresql-3.8.2'}
15:44:39.514 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-agroal/3.8.2/quarkus-agroal-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-agroal::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.584 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-jdbc-postgresql/3.8.2/quarkus-jdbc-postgresql-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-jdbc-postgresql::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.859 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-redis-client-deployment/3.8.2/quarkus-redis-client-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:39.859 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-redis-client-deployment/3.8.2/quarkus-redis-client-deployment-3.8.2'}
15:44:39.951 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-redis-client-deployment/3.8.2/quarkus-redis-client-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-redis-client-deployment::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:39.953 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-agroal-deployment/3.8.2/quarkus-agroal-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:39.953 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-agroal-deployment/3.8.2/quarkus-agroal-deployment-3.8.2'}
15:44:40.046 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-agroal-deployment/3.8.2/quarkus-agroal-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-agroal-deployment::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:40.048 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-jdbc-postgresql-deployment/3.8.2/quarkus-jdbc-postgresql-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:40.048 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-jdbc-postgresql-deployment/3.8.2/quarkus-jdbc-postgresql-deployment-3.8.2'}
15:44:40.140 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-jdbc-postgresql-deployment/3.8.2/quarkus-jdbc-postgresql-deployment-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-jdbc-postgresql-deployment::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:40.195 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-vertx-http/3.8.2/quarkus-vertx-http-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:40.195 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-vertx-http/3.8.2/quarkus-vertx-http-3.8.2'}
15:44:40.286 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-vertx-http/3.8.2/quarkus-vertx-http-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-vertx-http::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:50.430 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-resteasy-reactive/3.8.2/quarkus-resteasy-reactive-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:50.430 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-resteasy-reactive/3.8.2/quarkus-resteasy-reactive-3.8.2'}
15:44:50.522 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-resteasy-reactive/3.8.2/quarkus-resteasy-reactive-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-resteasy-reactive::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:50.523 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-hibernate-orm-panache/3.8.2/quarkus-hibernate-orm-panache-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:50.523 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-hibernate-orm-panache/3.8.2/quarkus-hibernate-orm-panache-3.8.2'}
15:44:50.607 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-hibernate-orm/3.8.2/quarkus-hibernate-orm-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:50.607 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-hibernate-orm/3.8.2/quarkus-hibernate-orm-3.8.2'}
15:44:50.614 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-hibernate-orm-panache/3.8.2/quarkus-hibernate-orm-panache-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-hibernate-orm-panache::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:50.699 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-hibernate-orm/3.8.2/quarkus-hibernate-orm-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-hibernate-orm::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:53.120 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-resteasy-reactive-jackson/3.8.2/quarkus-resteasy-reactive-jackson-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:53.120 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-resteasy-reactive-jackson/3.8.2/quarkus-resteasy-reactive-jackson-3.8.2'}
15:44:53.211 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-resteasy-reactive-jackson/3.8.2/quarkus-resteasy-reactive-jackson-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-resteasy-reactive-jackson::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:53.212 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-micrometer/3.8.2/quarkus-micrometer-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:53.212 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-micrometer/3.8.2/quarkus-micrometer-3.8.2'}
15:44:53.304 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-micrometer/3.8.2/quarkus-micrometer-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-micrometer::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:53.305 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-mailer/3.8.2/quarkus-mailer-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:53.305 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-mailer/3.8.2/quarkus-mailer-3.8.2'}
15:44:53.397 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-mailer/3.8.2/quarkus-mailer-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-mailer::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:53.667 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-opentelemetry/3.8.2/quarkus-opentelemetry-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:53.667 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-opentelemetry/3.8.2/quarkus-opentelemetry-3.8.2'}
15:44:53.758 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-opentelemetry/3.8.2/quarkus-opentelemetry-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-opentelemetry::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:55.353 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-micrometer-registry-prometheus/3.8.2/quarkus-micrometer-registry-prometheus-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:55.353 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-micrometer-registry-prometheus/3.8.2/quarkus-micrometer-registry-prometheus-3.8.2'}
15:44:55.445 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-micrometer-registry-prometheus/3.8.2/quarkus-micrometer-registry-prometheus-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-micrometer-registry-prometheus::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:55.733 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-picocli/3.8.2/quarkus-picocli-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:55.733 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-picocli/3.8.2/quarkus-picocli-3.8.2'}
15:44:55.825 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-picocli/3.8.2/quarkus-picocli-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-picocli::3.8.2 in central (https://repo.maven.apache.org/maven2)'}
15:44:56.385 I Dispatch message: TransferInitiated{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-websockets/3.8.2/quarkus-websockets-3.8.2', contentLength=-1, transferredBytes=0, exception='null'}
15:44:56.385 I Dispatch message: ProjectLogMessage{projectId='quarkus-langchain4j-parent', message='[INFO] Downloading from central: https://repo.maven.apache.org/maven2/io/quarkus/quarkus-websockets/3.8.2/quarkus-websockets-3.8.2'}
15:44:56.477 I Dispatch message: TransferFailed{projectId=quarkus-langchain4j-parent, requestType=0, repositoryId='central', repositoryUrl='https://repo.maven.apache.org/maven2/', resourceName='io/quarkus/quarkus-websockets/3.8.2/quarkus-websockets-3.8.2', contentLength=-1, transferredBytes=0, exception='org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact io.quarkus:quarkus-websockets::3.8.2 in central (https://repo.maven.apache.org/maven2)'}

@gastaldi or @aloubyansky any idea which plugin or part of Maven could be requesting to resolve those?

@ppalaga
Copy link
Contributor Author

ppalaga commented Apr 12, 2024

daemon-167cc94d.log
Attaching the whole log after applying the linked patch in case somebody would like to investigate.

@cstamas
Copy link
Member

cstamas commented Apr 12, 2024

Stunts like these ("reverse engineering URL into artifact" IIUC) should be avoided. Please do not do this 😄 Would logging just bare file name not be enough?

Ref
https://github.com/apache/maven-mvnd/blob/master/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java#L715

@gastaldi
Copy link
Member

It looks like it's missing the packaging in the URL, which should default to jar if not specified in the model.

@ppalaga
Copy link
Contributor Author

ppalaga commented Apr 12, 2024

Would logging just bare file name not be enough?

The full URL is much longer. The g:a:v makes the text UI much better readable.

It looks like it's missing the packaging in the URL, which should default to jar if not specified in the model.

Fixing the rendering in the console would be easy. Omitting the packaging is wrong at its source (wherever it comes from) because there are download failures logged for each of these incomplete URLs.
I wonder whether it is the sundr-maven-plugin that is called from quarkus-langchain4j-parent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants