Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-1785

Source+Dependency analysis on <JDK11 java application fails compilation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTA 7.0.2
    • MTA 6.2.1
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • No
    • Customer Facing

      Description of problem:

      When running source+dependency analysis on an application built with a JDK of version <11, we run the risk of compilation failure. This is due to the fact that the addon is running `mvn install` to pull down the dependencies which inherently attempts to compile the app.

      Version-Release number of selected component (if applicable):

      6.2.1 

      How reproducible:

      100% 

      Steps to Reproduce:
      1. Run source+dep analysis on application built with older java version

      Actual results:

       Analysis task fails with errors about `mvn install` failing to compile.

      Expected results:

       Analysis task pod uses a different method to pull down the dependencies of the application.

      Additional info:

       

      In the new analyzer, we have a different method of downloading dependencies that doesn't require compilation here: https://github.com/konveyor/analyzer-lsp/blob/main/provider/internal/java/provider.go#L409

            shawnhurley Shawn Hurley
            rhn-engineering-dymurray Dylan Murray
            Alejandro Brugarolas Alejandro Brugarolas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: