Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-28821

Multi maven projects error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.26.0.Final
    • quarkus
    • None
    • Hide

      See updated steps in comments!
      1. Download https://github.com/jbosstools/jbosstools-quarkus/tree/main/itests/org.jboss.tools.quarkus.integration.tests/resources/projects/maven/multi ->
      Import dao project -> see error (screenshot_0) -> import rest -> see errors in problems view -> run maven-rest project -> works 
      2. Right click on projects -> Maven update -> select both projects -> no errors in problems view -> run maven-rest project -> error (see logs)

      Show
      See updated steps in comments! 1. Download https://github.com/jbosstools/jbosstools-quarkus/tree/main/itests/org.jboss.tools.quarkus.integration.tests/resources/projects/maven/multi  -> Import dao project -> see error (screenshot_0) -> import rest -> see errors in problems view -> run maven-rest project -> works  2. Right click on projects -> Maven update -> select both projects -> no errors in problems view -> run maven-rest project -> error (see logs)
    • Workaround Exists
    • Hide

      Delete maven-dao project -> import -> build error appears, but no errors in problems view -> run maven-rest project -> works

      Show
      Delete maven-dao project -> import -> build error appears, but no errors in problems view -> run maven-rest project -> works
    • ---

      Weird behavior of multi maven projects.

      eclipse.buildId=4.26.0.20221201-1200
      java.version=17.0.5
      java.vendor=Eclipse Adoptium
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product org.eclipse.epp.package.jee.product
      Command-line arguments:  -data file:/home/olkornii/eclipse-workspace-multi-try/ -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.productorg.jboss.tools.cdi.core
      Error
      Wed Dec 14 13:52:25 CET 2022
      Errors running builder 'CDI (Contexts and Dependency Injection) Builder' on project 'maven-dao'.Java Model Exception: Error in Java Model (code 969): Jdk9CompletableFutureWrapper.class [in io.smallrye.context [in /home/olkornii/.m2/repository/io/smallrye/smallrye-context-propagation/1.2.2/smallrye-context-propagation-1.2.2.jar]] does not exist
          at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:574)
          at org.eclipse.jdt.internal.core.ClassFile.getBinaryTypeInfo(ClassFile.java:203)
          at org.eclipse.jdt.internal.core.ClassFile.buildStructure(ClassFile.java:92)
          at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:266)
          at org.eclipse.jdt.internal.core.SourceRefElement.generateInfos(SourceRefElement.java:113)
          at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:597)
          at org.eclipse.jdt.internal.core.BinaryType.getElementInfo(BinaryType.java:288)
          at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:314)
          at org.eclipse.jdt.internal.core.BinaryType.getAnnotations(BinaryType.java:184)
          at org.jboss.tools.cdi.internal.core.scanner.lib.BeanArchiveDetector.isAnnotatedBean(BeanArchiveDetector.java:255)
          at org.jboss.tools.cdi.core.CDICoreBuilder.buildJars(CDICoreBuilder.java:446)
          at org.jboss.tools.cdi.core.CDICoreBuilder.build(CDICoreBuilder.java:245)
          at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:1020)
          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
          at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:247)
          at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303)
          at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:392)
          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
          at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:395)
          at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:506)
          at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:454)
          at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:536)
          at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:161)
          at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:255)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
       

        1. logs_multi_maven.txt
          11 kB
          Oleksii Korniienko
        2. screenshot_0.png
          25 kB
          Oleksii Korniienko

              stephane.bouchet Stephane Bouchet
              rh-ee-olkornii Oleksii Korniienko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: