Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-6833

Reactor build peculiarities

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Build Tooling
    • Labels:
      None

      Description

      Nexus OSS build. It is a huge reactor build, with some modules "pointing out" for parent (instead using Nexus parent POM, they point to Forge parent). Examples are nexus-runtime-platform and nexus-plugins-parent. Note: Nexus parent POM also uses Forge parent, hence, Forge parent ends up in all those hierarchies.

      As the nexus-staging-maven is defined in Forge parent POM, it seems nexus-staging-maven-plugin as extension is installed multiple times...

      Example output from console below. What happens is that here the plugin is registered twice, and first invocation "installs" itself (and removes maven-deploy-plugin), while the 2nd registration does nothing, as "staging related goal bindings found" (in all of 52 modules). Basically 1st pass made 2nd pass deactivated.

      Why is the 2nd invocation happening at all?

      [cstamas@Zaphod nexus (master)]$ mvn clean test
      Using Java Home /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/
      [INFO] Scanning for projects...
      [INFO] Inspecting build with total of 52 modules...
      [INFO] Installing Nexus Staging features:
      [INFO]   ... total of 52 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
      [INFO] Inspecting build with total of 52 modules...
      [INFO] Not installing Nexus Staging features:
      [INFO]  * Preexisting staging related goal bindings found in 52 modules.
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Build Order:
      [INFO] 
      [INFO] nexus-runtime-platform
      [INFO] nexus
      [INFO] nexus-test
      [INFO] nexus-test-common
      [INFO] nexus-bootstrap
      [INFO] nexus-compat
      [INFO] nexus-configuration-model
      [INFO] nexus-core
      [INFO] nexus-web-utils
      ...
      

      Migrated from
      https://github.com/sonatype/nexus-maven-plugins/issues/39

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            cstamas Tamás Cservenák
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                tigCommentSecurity.panel-title