Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-432

github action ci.yml mvn command contains repeating test phase

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.0.45.Final
    • None
    • None

      with the command "mvn clean install test", the test goal is run twice and may cause problems like the following:

      Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jboss-invocation-jakarta: Compilation failure
      Error:  /home/runner/work/jboss-invocation/jboss-invocation/jakarta/target/generated-sources/transformed/org/jboss/invocation/InvocationMessages.java:[35,1] javax.annotation.processing.FilerException: Attempt to recreate a file for type org.jboss.invocation.InvocationMessages_$bundle
      Error:    	at jdk.compiler/com.sun.tools.javac.processing.JavacFiler.checkNameAndExistence(JavacFiler.java:724)
      Error:    	at jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createSourceOrClassFile(JavacFiler.java:489)
      Error:    	at jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createSourceFile(JavacFiler.java:426)
      Error:    	at org.jboss.jdeparser.JFiler$1.openStream(JFiler.java:52)
      Error:    	at org.jboss.jdeparser.JFiler.openWriter(JFiler.java:119)
      Error:    	at org.jboss.jdeparser.ImplJSources.writeSources(ImplJSources.java:71)
      Error:    	at org.jboss.logging.processor.generator.model.ClassModel.generateAndWrite(ClassModel.java:128)
      Error:    	at org.jboss.logging.processor.apt.ImplementationClassGenerator.processTypeElement(ImplementationClassGenerator.java:60)
      Error:    	at org.jboss.logging.processor.apt.LoggingToolsProcessor.doProcess(LoggingToolsProcessor.java:213)
      Error:    	at org.jboss.logging.processor.apt.LoggingToolsProcessor.process(LoggingToolsProcessor.java:167)
      Error:    	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:985)
      Error:    	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:901)
      Error:    	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1227)
      Error:    	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1340)
      Error:    	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1254)
      Error:    	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:936)
      Error:    	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)
      Error:    	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:147)
      Error:    	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
      Error:    	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
      Error:    	at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126)
      Error:    	at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:174)
      Error:    	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1134)
      Error:    	at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:187)
      Error:    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
      Error:    	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:370)
      Error:    	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:351)
      Error:    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
      Error:    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:171)
      Error:    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:163)
      Error:    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
      Error:    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
      Error:    	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
      Error:    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      Error:    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:294)
      Error:    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
      Error:    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
      Error:    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:960)
      Error:    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:293)
      Error:    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:196)
      Error:    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      Error:    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      Error:    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      Error:    	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      Error:    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
      Error:    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
      Error:    	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
      Error:    	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
      
      

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: