Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17331

"Local to the workspace" repository locator does not work when building one module in isolation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • maven-plugin
    • None

      MavenProjectTest.testDeleteSetBuildDeletesModuleBuilds used to fail in some environments because it was using the default local repository, and a build of one submodule in isolation failed to find the installed snapshot artifact of its reactor dependency. Using PerExecutorLocalRepositoryLocator sometimes works, but only if the same executor runs both builds. PerJobLocalRepositoryLocator looks like it should work, but does not because when running the individual module build it uses a different repository from the module set build.

      You would expect that in an aggregator project where modules have snapshot interdependencies, if you have built the whole module set then you should also be able to rerun a single module build and that it should find the dependency artifacts in the workspace, using a repository at top level.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: