Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-992

Add an excludeRoots option to artifact:set

    XMLWordPrintable

    Details

    • Tags:
    • Upgrade notes:
      Hide

      New artifact:set option excludeRoots (defaults to false).
      The default filtering out (of test and provided) is now set only if an empty scope is explicitly set.

      Show
      New artifact:set option excludeRoots (defaults to false). The default filtering out (of test and provided) is now set only if an empty scope is explicitly set.
    • Sprint:
      DevOps-12

      Description

      Given

            <artifact:set>
              <includes>
                <artifact groupId="org.nuxeo*" scope="!test" type="!pom" />
              </includes>
            </artifact:set>

      with a root POM (for the graph) which groupId starts with "org.nuxeo", it appears that the root POM of the graph can be included if, for instance, its type is not "pom".
      The expected result can be achieved with:

            <artifact:set>
              <includes>
                <artifact groupId="org.nuxeo*" scope="!test" type="!pom" />
              </includes>
              <excludes>
                <artifact groupId="${maven.project.groupId}" artifactId="${maven.project.artifactId}" version="${maven.project.version}" type="${maven.project.packaging}" />
              </excludes>
            </artifact:set>

      It's useful that the root nodes are part of the graph but an option to exclude them from the artifact:set would be useful too:

            <artifact:set excludeRoots="true">
              <includes>
                <artifact groupId="org.nuxeo*" scope="!test" type="!pom" />
              </includes>
            </artifact:set>

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: