quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.76k stars 2.68k forks source link

Quarkus build fails on 'generate-code-tests' since 3.2.0 #35179

Closed aduursma closed 1 year ago

aduursma commented 1 year ago

Describe the bug

I have a build step in my CI/CD pipeline for creating and pushing a native image containing my application.

This step works fine with all 3.1.x Quarkus versions.

It stopped working when I upgraded to Quarkus 3.2.0 a while ago.

It doesn't work with Quarkus 3.2.1 and Quarkus 3.2.2 either.

When i revert back to Quarkus 3.1.3 the build step works just fine and creates and pushes the image as usual.

By looking at the logs the issue seems Maven related, not Quarkus, but that doesn't explain why things stop working when all I do is upgrade to the latest Quarkus version.

Hope you guys have any ideas...

Expected behavior

The native image is build and pushed succesfully with Quarkus 3.2.x as it is with Quarkus 3.1.x.

Actual behavior

Failed to execute goal io.quarkus:quarkus-maven-plugin:3.2.2.Final:generate-code-tests (default) on project intervention-service: Quarkus code generation phase has failed: Invalid command line:

Caused by: org.apache.maven.shared.utils.cli.CommandLineException: unbalanced quotes

How to Reproduce?

Run a Maven build on the command line with either of the properties below containing a character that needs escaping and the build will fail:

Run the exact same Maven build, but use characters that don't need escaping and the build succeeds.

Output of uname -a or ver

No response

Output of java -version

Java version: 17.0.4.1, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/temurin-17-jdk-amd64

GraalVM version (if different from Java)

No response

Quarkus version or git rev

Quarkus 3.2.x

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)

Additional information

MAVEN 'NATIVE' PROFILE:

<profile>
     <id>native</id>
     <activation>
         <property>
             <name>native</name>
         </property>
     </activation>
     <properties>
         <quarkus.package.type>native</quarkus.package.type>
         <quarkus.container-image.build>true</quarkus.container-image.build>
         <quarkus.native.container-build>true</quarkus.native.container-build>
         <native-image.xmx>7g</native-image.xmx>
     </properties>
 </profile>

PIPELINE BUILD OUTPUT:

2023-08-02T08:26:35.7537477Z [INFO] --- quarkus:3.2.2.Final:generate-code-tests (default) @ intervention-service ---
2023-08-02T08:26:35.7538645Z [DEBUG] Loading mojo io.quarkus:quarkus-maven-plugin:3.2.2.Final:generate-code-tests from plugin realm ClassRealm[extension>io.quarkus:quarkus-maven-plugin:3.2.2.Final, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@5cb0d902]
2023-08-02T08:26:35.7574176Z [DEBUG] Configuring mojo execution 'io.quarkus:quarkus-maven-plugin:3.2.2.Final:generate-code-tests:default' with basic configurator -->
2023-08-02T08:26:35.7584818Z [DEBUG]   (f) buildDir = /agent/_work/2/s/target
2023-08-02T08:26:35.7585605Z [DEBUG]   (f) finalName = intervention-service-1.12.2-SNAPSHOT
2023-08-02T08:26:35.7585979Z [DEBUG]   (f) ignoredEntries = []
2023-08-02T08:26:35.7587756Z [DEBUG]   (f) mode = NORMAL
2023-08-02T08:26:35.7588486Z [DEBUG]   (f) mojoExecution = io.quarkus:quarkus-maven-plugin:3.2.2.Final:generate-code-tests {execution: default}
2023-08-02T08:26:35.7589312Z [DEBUG]   (f) project = MavenProject: com.dhl.parcel.itv:intervention-service:1.12.2-SNAPSHOT @ /agent/_work/2/s/pom.xml
2023-08-02T08:26:35.7591446Z [DEBUG]   (f) properties = {}
2023-08-02T08:26:35.7591890Z [DEBUG]   (f) repoSession = org.eclipse.aether.DefaultRepositorySystemSession@78b29e00
2023-08-02T08:26:35.7594277Z [DEBUG]   (f) repos = [central (https://repo1.maven.org/maven2, default, releases+snapshots), interventions-maven-changes-templates (https://maven.pkg.github.com/dhlparcel/interventions-maven-changes-templates, default, releases+snapshots), interventions-maven-parent (https://maven.pkg.github.com/dhlparcel/interventions-maven-parent, default, releases+snapshots), interventions-services-parent (https://maven.pkg.github.com/dhlparcel/interventions-services-parent, default, releases+snapshots), confluent (https://packages.confluent.io/maven/, default, releases)]
2023-08-02T08:26:35.7595478Z [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@507f47f9
2023-08-02T08:26:35.7595842Z [DEBUG]   (f) skipSourceGeneration = false
2023-08-02T08:26:35.7596266Z [DEBUG] -- end configuration --
2023-08-02T08:26:35.7600333Z [DEBUG] Bootstrapping Quarkus application in mode TEST
2023-08-02T08:26:35.8465522Z [DEBUG] Created adapter factory; available factories [file-lock, noop, semaphore-local, rwlock-local]; available name mappers [file-gav, file-hgav, discriminating, static, gav, file-static]
2023-08-02T08:26:35.8504985Z [INFO] ------------------------------------------------------------------------
2023-08-02T08:26:35.8505912Z [INFO] BUILD FAILURE
2023-08-02T08:26:35.8506465Z [INFO] ------------------------------------------------------------------------
2023-08-02T08:26:35.8506844Z [INFO] Total time:  12.390 s
2023-08-02T08:26:35.8507853Z [INFO] Finished at: 2023-08-02T10:26:35+02:00
2023-08-02T08:26:35.8508432Z [INFO] ------------------------------------------------------------------------
2023-08-02T08:26:35.8651881Z [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.2.2.Final:generate-code-tests (default) on project intervention-service: Quarkus code generation phase has failed: Invalid command line: -Dmaven.repo.local=/agent/_work/2/.m2/repository -f /agent/_work/2/s/pom.xml -B -U -X -s /agent/_work/_temp/interventions-maven-settings.xml -Drevision=SNAPSHOT -DskipTests -Ddocker.skip.run=true -Dquarkus.container-image.push=true -Dquarkus.container-image.username=*** -Dquarkus.container-image.password=*** -Pnative install: unbalanced quotes in -Dmaven.repo.local=/agent/_work/2/.m2/repository -f /agent/_work/2/s/pom.xml -B -U -X -s /agent/_work/_temp/interventions-maven-settings.xml -Drevision=SNAPSHOT -DskipTests -Ddocker.skip.run=true -Dquarkus.container-image.push=true -Dquarkus.container-image.username=*** -Dquarkus.container-image.password=*** -Pnative install -> [Help 1]
2023-08-02T08:26:35.8654649Z org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.quarkus:quarkus-maven-plugin:3.2.2.Final:generate-code-tests (default) on project intervention-service: Quarkus code generation phase has failed
2023-08-02T08:26:35.8655416Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
2023-08-02T08:26:35.8655998Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
2023-08-02T08:26:35.8656964Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
2023-08-02T08:26:35.8657515Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
2023-08-02T08:26:35.8658052Z     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
2023-08-02T08:26:35.8658551Z     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
2023-08-02T08:26:35.8659137Z     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
2023-08-02T08:26:35.8659660Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
2023-08-02T08:26:35.8660208Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
2023-08-02T08:26:35.8660849Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
2023-08-02T08:26:35.8661525Z     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
2023-08-02T08:26:35.8662137Z     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
2023-08-02T08:26:35.8662659Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
2023-08-02T08:26:35.8663143Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
2023-08-02T08:26:35.8663623Z     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
2023-08-02T08:26:35.8664104Z     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
2023-08-02T08:26:35.8664555Z     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
2023-08-02T08:26:35.8665017Z     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
2023-08-02T08:26:35.8665438Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
2023-08-02T08:26:35.8665975Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
2023-08-02T08:26:35.8666578Z     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
2023-08-02T08:26:35.8667304Z     at java.lang.reflect.Method.invoke (Method.java:568)
2023-08-02T08:26:35.8667830Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
2023-08-02T08:26:35.8668411Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
2023-08-02T08:26:35.8668981Z     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
2023-08-02T08:26:35.8669498Z     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
2023-08-02T08:26:35.8669992Z Caused by: org.apache.maven.plugin.MojoExecutionException: Quarkus code generation phase has failed
2023-08-02T08:26:35.8670497Z     at io.quarkus.maven.GenerateCodeMojo.generateCode (GenerateCodeMojo.java:94)
2023-08-02T08:26:35.8671168Z     at io.quarkus.maven.GenerateCodeTestsMojo.doExecute (GenerateCodeTestsMojo.java:13)
2023-08-02T08:26:35.8671688Z     at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:165)
2023-08-02T08:26:35.8672232Z     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
2023-08-02T08:26:35.8672788Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
2023-08-02T08:26:35.8673344Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
2023-08-02T08:26:35.8673899Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
2023-08-02T08:26:35.8674447Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
2023-08-02T08:26:35.8674970Z     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
2023-08-02T08:26:35.8675500Z     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
2023-08-02T08:26:35.8676271Z     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
2023-08-02T08:26:35.8676822Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
2023-08-02T08:26:35.8677378Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
2023-08-02T08:26:35.8677947Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
2023-08-02T08:26:35.8678643Z     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
2023-08-02T08:26:35.8679292Z     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
2023-08-02T08:26:35.8679845Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
2023-08-02T08:26:35.8680313Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
2023-08-02T08:26:35.8680807Z     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
2023-08-02T08:26:35.8681249Z     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
2023-08-02T08:26:35.8681702Z     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
2023-08-02T08:26:35.8682143Z     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
2023-08-02T08:26:35.8682592Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
2023-08-02T08:26:35.8683076Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
2023-08-02T08:26:35.8683654Z     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
2023-08-02T08:26:35.8684198Z     at java.lang.reflect.Method.invoke (Method.java:568)
2023-08-02T08:26:35.8684680Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
2023-08-02T08:26:35.8685189Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
2023-08-02T08:26:35.8685751Z     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
2023-08-02T08:26:35.8686446Z     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
2023-08-02T08:26:35.8688322Z Caused by: java.lang.IllegalArgumentException: Invalid command line: -Dmaven.repo.local=/agent/_work/2/.m2/repository -f /agent/_work/2/s/pom.xml -B -U -X -s /agent/_work/_temp/interventions-maven-settings.xml -Drevision=SNAPSHOT -DskipTests -Ddocker.skip.run=true -Dquarkus.container-image.push=true -Dquarkus.container-image.username=*** -Dquarkus.container-image.password=*** -Pnative install
2023-08-02T08:26:35.8689295Z     at io.quarkus.bootstrap.resolver.maven.options.BootstrapMavenOptions.parse (BootstrapMavenOptions.java:60)
2023-08-02T08:26:35.8689925Z     at io.quarkus.bootstrap.resolver.maven.options.BootstrapMavenOptions.newInstance (BootstrapMavenOptions.java:121)
2023-08-02T08:26:35.8690551Z     at io.quarkus.bootstrap.resolver.maven.options.BootstrapMavenOptions.newInstance (BootstrapMavenOptions.java:117)
2023-08-02T08:26:35.8691160Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getCliOptions (BootstrapMavenContext.java:221)
2023-08-02T08:26:35.8691800Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getProperty (BootstrapMavenContext.java:247)
2023-08-02T08:26:35.8692405Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getUserSettings (BootstrapMavenContext.java:226)
2023-08-02T08:26:35.8693031Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getEffectiveSettings (BootstrapMavenContext.java:314)
2023-08-02T08:26:35.8693867Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.newRepositorySystemSession (BootstrapMavenContext.java:438)
2023-08-02T08:26:35.8694526Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getRepositorySystemSession (BootstrapMavenContext.java:289)
2023-08-02T08:26:35.8695319Z     at io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver.<init> (MavenArtifactResolver.java:115)
2023-08-02T08:26:35.8695842Z     at io.quarkus.maven.components.QuarkusWorkspaceProvider.createArtifactResolver (QuarkusWorkspaceProvider.java:115)
2023-08-02T08:26:35.8696527Z     at io.quarkus.maven.QuarkusBootstrapProvider$QuarkusMavenAppBootstrap.artifactResolver (QuarkusBootstrapProvider.java:181)
2023-08-02T08:26:35.8697150Z     at io.quarkus.maven.QuarkusBootstrapProvider$QuarkusMavenAppBootstrap.doBootstrap (QuarkusBootstrapProvider.java:202)
2023-08-02T08:26:35.8697828Z     at io.quarkus.maven.QuarkusBootstrapProvider$QuarkusMavenAppBootstrap.bootstrapApplication (QuarkusBootstrapProvider.java:346)
2023-08-02T08:26:35.8698498Z     at io.quarkus.maven.QuarkusBootstrapProvider.bootstrapApplication (QuarkusBootstrapProvider.java:128)
2023-08-02T08:26:35.8699098Z     at io.quarkus.maven.QuarkusBootstrapMojo.bootstrapApplication (QuarkusBootstrapMojo.java:290)
2023-08-02T08:26:35.8699687Z     at io.quarkus.maven.GenerateCodeMojo.generateCode (GenerateCodeMojo.java:79)
2023-08-02T08:26:35.8700253Z     at io.quarkus.maven.GenerateCodeTestsMojo.doExecute (GenerateCodeTestsMojo.java:13)
2023-08-02T08:26:35.8700810Z     at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:165)
2023-08-02T08:26:35.8701428Z     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
2023-08-02T08:26:35.8702001Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
2023-08-02T08:26:35.8702540Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
2023-08-02T08:26:35.8703068Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
2023-08-02T08:26:35.8703616Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
2023-08-02T08:26:35.8704166Z     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
2023-08-02T08:26:35.8704717Z     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
2023-08-02T08:26:35.8705281Z     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
2023-08-02T08:26:35.8706051Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
2023-08-02T08:26:35.8706656Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
2023-08-02T08:26:35.8707242Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
2023-08-02T08:26:35.8707908Z     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
2023-08-02T08:26:35.8708511Z     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
2023-08-02T08:26:35.8709044Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
2023-08-02T08:26:35.8709511Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
2023-08-02T08:26:35.8709967Z     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
2023-08-02T08:26:35.8710424Z     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
2023-08-02T08:26:35.8710867Z     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
2023-08-02T08:26:35.8711313Z     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
2023-08-02T08:26:35.8711745Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
2023-08-02T08:26:35.8712221Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
2023-08-02T08:26:35.8712805Z     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
2023-08-02T08:26:35.8713420Z     at java.lang.reflect.Method.invoke (Method.java:568)
2023-08-02T08:26:35.8713892Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
2023-08-02T08:26:35.8714523Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
2023-08-02T08:26:35.8715032Z     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
2023-08-02T08:26:35.8715537Z     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
2023-08-02T08:26:35.8717287Z Caused by: org.apache.maven.shared.utils.cli.CommandLineException: unbalanced quotes in -Dmaven.repo.local=/agent/_work/2/.m2/repository -f /agent/_work/2/s/pom.xml -B -U -X -s /agent/_work/_temp/interventions-maven-settings.xml -Drevision=SNAPSHOT -DskipTests -Ddocker.skip.run=true -Dquarkus.container-image.push=true -Dquarkus.container-image.username=*** -Dquarkus.container-image.password=*** -Pnative install
2023-08-02T08:26:35.8718205Z     at org.apache.maven.shared.utils.cli.CommandLineUtils.translateCommandline (CommandLineUtils.java:580)
2023-08-02T08:26:35.8718787Z     at io.quarkus.bootstrap.resolver.maven.options.BootstrapMavenOptions.parse (BootstrapMavenOptions.java:58)
2023-08-02T08:26:35.8719385Z     at io.quarkus.bootstrap.resolver.maven.options.BootstrapMavenOptions.newInstance (BootstrapMavenOptions.java:121)
2023-08-02T08:26:35.8719991Z     at io.quarkus.bootstrap.resolver.maven.options.BootstrapMavenOptions.newInstance (BootstrapMavenOptions.java:117)
2023-08-02T08:26:35.8720585Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getCliOptions (BootstrapMavenContext.java:221)
2023-08-02T08:26:35.8721174Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getProperty (BootstrapMavenContext.java:247)
2023-08-02T08:26:35.8721766Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getUserSettings (BootstrapMavenContext.java:226)
2023-08-02T08:26:35.8722370Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getEffectiveSettings (BootstrapMavenContext.java:314)
2023-08-02T08:26:35.8722996Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.newRepositorySystemSession (BootstrapMavenContext.java:438)
2023-08-02T08:26:35.8723641Z     at io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext.getRepositorySystemSession (BootstrapMavenContext.java:289)
2023-08-02T08:26:35.8724389Z     at io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver.<init> (MavenArtifactResolver.java:115)
2023-08-02T08:26:35.8724978Z     at io.quarkus.maven.components.QuarkusWorkspaceProvider.createArtifactResolver (QuarkusWorkspaceProvider.java:115)
2023-08-02T08:26:35.8725603Z     at io.quarkus.maven.QuarkusBootstrapProvider$QuarkusMavenAppBootstrap.artifactResolver (QuarkusBootstrapProvider.java:181)
2023-08-02T08:26:35.8726228Z     at io.quarkus.maven.QuarkusBootstrapProvider$QuarkusMavenAppBootstrap.doBootstrap (QuarkusBootstrapProvider.java:202)
2023-08-02T08:26:35.8726875Z     at io.quarkus.maven.QuarkusBootstrapProvider$QuarkusMavenAppBootstrap.bootstrapApplication (QuarkusBootstrapProvider.java:346)
2023-08-02T08:26:35.8727505Z     at io.quarkus.maven.QuarkusBootstrapProvider.bootstrapApplication (QuarkusBootstrapProvider.java:128)
2023-08-02T08:26:35.8728064Z     at io.quarkus.maven.QuarkusBootstrapMojo.bootstrapApplication (QuarkusBootstrapMojo.java:290)
2023-08-02T08:26:35.8728583Z     at io.quarkus.maven.GenerateCodeMojo.generateCode (GenerateCodeMojo.java:79)
2023-08-02T08:26:35.8729032Z     at io.quarkus.maven.GenerateCodeTestsMojo.doExecute (GenerateCodeTestsMojo.java:13)
2023-08-02T08:26:35.8729437Z     at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:165)
2023-08-02T08:26:35.8729862Z     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
2023-08-02T08:26:35.8730301Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
2023-08-02T08:26:35.8730722Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
2023-08-02T08:26:35.8731234Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
2023-08-02T08:26:35.8731915Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
2023-08-02T08:26:35.8732400Z     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
2023-08-02T08:26:35.8732823Z     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
2023-08-02T08:26:35.8733285Z     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
2023-08-02T08:26:35.8733953Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
2023-08-02T08:26:35.8734507Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
2023-08-02T08:26:35.8735073Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
2023-08-02T08:26:35.8735687Z     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
2023-08-02T08:26:35.8736287Z     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
2023-08-02T08:26:35.8736792Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
2023-08-02T08:26:35.8737261Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
2023-08-02T08:26:35.8737740Z     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
2023-08-02T08:26:35.8738206Z     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
2023-08-02T08:26:35.8738674Z     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
2023-08-02T08:26:35.8739109Z     at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
2023-08-02T08:26:35.8739511Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
2023-08-02T08:26:35.8739976Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
2023-08-02T08:26:35.8740375Z     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
2023-08-02T08:26:35.8740659Z     at java.lang.reflect.Method.invoke (Method.java:568)
2023-08-02T08:26:35.8741140Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
2023-08-02T08:26:35.8741436Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
2023-08-02T08:26:35.8741735Z     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
2023-08-02T08:26:35.8742028Z     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
2023-08-02T08:26:35.8742232Z [ERROR] 
2023-08-02T08:26:35.8742357Z [ERROR] 
2023-08-02T08:26:35.8742571Z [ERROR] For more information about the errors and possible solutions, please read the following articles:
2023-08-02T08:26:35.8742837Z [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
2023-08-02T08:26:35.8743573Z [DEBUG] Shutting down adapter factory; available factories [file-lock, rwlock-local, semaphore-local, noop]; available name mappers [discriminating, file-gav, file-hgav, file-static, gav, static]
2023-08-02T08:26:35.8743939Z [DEBUG] Shutting down 'file-lock' factory
2023-08-02T08:26:35.8744196Z [DEBUG] Shutting down 'rwlock-local' factory
2023-08-02T08:26:35.8744462Z [DEBUG] Shutting down 'semaphore-local' factory
2023-08-02T08:26:35.8744704Z [DEBUG] Shutting down 'noop' factory
2023-08-02T08:26:35.9448305Z The process '/agent/_work/2/s/maven/apache-maven-3.9.3/bin/mvn' failed with exit code 1
quarkus-bot[bot] commented 1 year ago

/cc @ebullient (cli), @maxandersen (cli)

aduursma commented 1 year ago

Hi Guys,

I understand it is summer holiday season.

Just wondering about any update on the issue...

aduursma commented 1 year ago

Tried with 3.2.4, but the issue is still there.

aduursma commented 1 year ago

Tried with 3.3.0, but the issue is still there.

aduursma commented 1 year ago

@geoand

Any updates on this issue?

geoand commented 1 year ago

Not that I know of

gsmet commented 1 year ago

Do you have any special characters in your username or password that could trigger that?

Because I don't see any quotes in:

-Dmaven.repo.local=/agent/_work/2/.m2/repository -f /agent/_work/2/s/pom.xml -B -U -X -s /agent/_work/_temp/interventions-maven-settings.xml -Drevision=SNAPSHOT -DskipTests -Ddocker.skip.run=true -Dquarkus.container-image.push=true -Dquarkus.container-image.username= -Dquarkus.container-image.password= -Pnative install

Not saying it shouldn't be fixed in Quarkus by escaping things more properly but that would help us to understand the issue.

aduursma commented 1 year ago

I'm pretty sure that's the issue.

There are one or more special characters in either the username or password.

Unfortunately, the credentials are injected into our pipeline, so I can't view the contents myself.

I tried adding quotes like so:

"-Dquarkus.container-image.username=***" "-Dquarkus.container-image.password=***"
-D"quarkus.container-image.username=***" -D"quarkus.container-image.password=***"
-Dquarkus.container-image.username="***" -Dquarkus.container-image.password="***"

It didn't work.

aduursma commented 1 year ago

Tried with 3.4.0, but the issue is still there.

aduursma commented 1 year ago

Tried with 3.4.1, but the issue is still there.

geoand commented 1 year ago

Thanks for the update

aduursma commented 1 year ago

After 3 months of being unable to upgrade, and getting no feedback whatsoever, I finally took a step back and lowered our security constraints by using a password without any "special" characters in it, so the Quarkus Maven plugin can handle it.

By lowering security I was able to upgrade to Quarkus 3.4.1.