Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-11824

Enforce provided & banned artifacts are not included in the build

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13.2.0, 13.1.1, 12.6.3, 11.2.13
    • Component/s: None
    • Labels:
      None
    • Similar issues:
    • Processed by team:
      Platform
    • Sprint:
      Platform 205 - Content Beans 2

      Description

      To be decided how to use this in our build process, one option is to add a project profile that can scan for unwanted artifacts. Example plugin configuration:

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-enforcer-plugin</artifactId>
              <version>3.0.0-M2</version>
              <executions>
                <execution>
                  <id>enforce-banned-dependencies</id>
                  <goals>
                    <goal>enforce</goal>
                  </goals>
                  <configuration>
                    <rules>
                      <bannedDependencies>
                        <excludes>
                          <exclude>junit</exclude>
                          <exclude>com.sun.activation:javax.activation</exclude>
                        </excludes>
                      </bannedDependencies>
                    </rules>
                    <fail>true</fail>
                  </configuration>
                </execution>
              </executions>
            </plugin>
       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                abanck Arent-Jan Banck
                Owner:
                CI/CD Chapter
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: