Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-84203

xmvn and maven:3.9 module

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • CentOS Stream 9
    • xmvn
    • None
    • No
    • None
    • rhel-base-utils-core
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      On CBS I was trying to build a new version for antlr4.
      This fails with the following error:

      Executing: xmvn --batch-mode --offline -Dmaven.test.skip=true -Dsource=1.8 package org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:builddep
      ['xmvn', '--batch-mode', '--offline', '-Dmaven.test.skip=true', '-Dsource=1.8', 'package', 'org.fedoraproject.xmvn:xmvn-mojo:install', 'org.fedoraproject.xmvn:xmvn-mojo:builddep']
      Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/PlexusContainer
      	at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
      	at java.base/java.lang.Class.getMethodsRecursive(Class.java:3307)
      	at java.base/java.lang.Class.getMethod0(Class.java:3293)
      	at java.base/java.lang.Class.getMethod(Class.java:2106)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.getEnhancedMainMethod(Launcher.java:152)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:234)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:201)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:361)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:314)
      Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.PlexusContainer
      	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:225)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:210)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:205)
      	... 10 more
      RPM build errors: 

      More info on https://cbs.centos.org/koji/taskinfo?taskID=4526731

      What is the impact of this issue to you?

      Build fails every time.

      Please provide the package NVR for which the bug is seen:

      xmvn

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Build antlr4-project-4.9.3-1.3.el9.src.rpmĀ 
      2. Push it to CBS with modules enabled / mock build with maven:3.9 module enabled.
      3. It fails

      Expected results

      xmvn should work with maven:3.9 modules.

      Actual results

      Build fails. Without the maven:3.9 module enabled, the build works as expected.

              mizdebsk@redhat.com Mikolaj Izdebski
              jean-louis_dupond Jean-Louis Dupond (Inactive)
              Mikolaj Izdebski Mikolaj Izdebski
              RHEL SST CS base utils QE Bot RHEL SST CS base utils QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: