Uploaded image for project: 'Build'
  1. Build
  2. BUILD-860

Old GroupIds Alerter Maven plugin

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    Description

      As part of maintenance activities, the following Maven plugin could be applied to our code: https://github.com/jonathanlermitage/oga-maven-plugin

      To be defined:

      • which modules, branches
      • what frequency
      • at what point in the CI process (include in dependency analysis step?)
      • how to progressively tackle & roll it out

      Here is an example run with main:

      [INFO] --------------------< info.magnolia:magnolia-core >---------------------
      [INFO] Building Magnolia Core 6.3-SNAPSHOT                               [2/11]
      [INFO] --------------------------------[ jar ]---------------------------------
      [INFO]
      [INFO] --- oga-maven-plugin:1.7.0:check (default-cli) @ magnolia-core ---
      [INFO] Old GroupId Alerter - github.com/jonathanlermitage/oga-maven-plugin
      [INFO] Loading definitions from https://raw.githubusercontent.com/jonathanlermitage/oga-maven-plugin/master/uc/og-definitions.json
      [INFO] Loaded 462 definitions, updated on 2022/04/22
      [INFO] Checking dependencies and plugins...
      [ERROR] (dependency) 'com.google.inject.extensions:guice-multibindings' should be replaced by 'com.google.inject:guice' (context: Since Guice 4.2, multibindings support has moved to Guice core, see https://github.com/google/guice/wiki/Multibindings)
      [ERROR] (dependency) 'javax.annotation:javax.annotation-api' should be replaced by 'jakarta.annotation:jakarta.annotation-api' (context: Java EE new home is Jakarta EE, see https://wiki.eclipse.org/Jakarta_EE_Maven_Coordinates)
      [ERROR] (dependency) 'javax.inject:javax.inject' should be replaced by 'jakarta.inject:jakarta.inject-api'
      [ERROR] (dependency) 'javax.servlet:javax.servlet-api' should be replaced by 'jakarta.servlet:jakarta.servlet-api' (context: Java EE new home is Jakarta EE, see https://wiki.eclipse.org/Jakarta_EE_Maven_Coordinates)
      [ERROR] (dependency) 'org.apache.httpcomponents:httpclient' should be replaced by 'org.apache.httpcomponents.client5:httpclient5' (context: Maven group id changed to ‘org.apache.httpcomponents.client5’.)
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary for Magnolia Main Project (Parent) 6.3-SNAPSHOT:
      [INFO]
      [INFO] Magnolia Main Project (Parent) ..................... SUCCESS [  0.375 s]
      [INFO] Magnolia Core ...................................... FAILURE [  0.024 s]
      [INFO] Magnolia Resource Loader ........................... SKIPPED
      [INFO] Magnolia Configuration Framework ................... SKIPPED
      [INFO] Magnolia Internationalization Framework ............ SKIPPED
      [INFO] Magnolia FreeMarker Support ........................ SKIPPED
      [INFO] Magnolia Core Compatibility Module ................. SKIPPED
      [INFO] Magnolia JAAS ...................................... SKIPPED
      [INFO] Magnolia Rendering ................................. SKIPPED
      [INFO] Magnolia Templating ................................ SKIPPED
      [INFO] Magnolia Virtual URI ............................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  1.029 s
      [INFO] Finished at: 2022-07-06T08:22:42+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal biz.lermitage.oga:oga-maven-plugin:1.7.0:check (default-cli) on project magnolia-core: Project has old dependencies; see warning/error messages -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <args> -rf :magnolia-core

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mmichel Maxime Michel
                Foundation
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoR