# attached-artifact-enforcer **Repository Path**: mirrors_elastic/attached-artifact-enforcer ## Basic Information - **Project Name**: attached-artifact-enforcer - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Attached Artifact Enforcer This project provides a rule for the [maven enforcer plugin](http://maven.apache.org/components/enforcer/) that allows for matching on attached artifacts and failing the build if banned artifacts are found. ## Usage One example is if you do not wish to publish the test jar, then this plugin can check for the test jar being attached based on filename pattern matching. In your pom.xml add the following: org.apache.maven.plugins maven-enforcer-plugin org.elasticsearch.maven attached-artifact-enforcer 1.0.0 check-attached-artifacts verify enforce .*-tests\.jar The above snippet adds the custom rules as a dependency of the enforcer plugin and then adds an execution that bans files that end in `-tests.jar` from being attached to the project.