Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

RAT-197: Improve default exclusions when mvn>=3.3.1 (exclude .mvn).

git-svn-id: https://svn.apache.org/repos/asf/creadur/rat/trunk@1669332 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 3d9517401bd728235ed3772182c776cad63490bf 1 parent bf0be65
@hugohirsch hugohirsch authored
View
2  RELEASE_NOTES.txt
@@ -31,6 +31,8 @@ Rat 0.12 (SNAPSHOT)
* [RAT-186] - BinaryGuesser should recognize PSD files as images
* [RAT-187] - Add 'SAR', 'HAR', 'WSR' as archives which should be ignored.
(thanks to Karl Heinz Marbaise)
+ * [RAT-197] - Improve exclusion defaults when working with Maven 3.3.1 (exclude .mvn).
+ (thanks to Karl Heinz Marbaise)
* [RAT-198] - Upgrade to plexus-utils 3.0.20.
(thanks to Karl Heinz Marbaise)
View
1  apache-rat-plugin/src/main/java/org/apache/rat/mp/ExclusionHelper.java
@@ -41,6 +41,7 @@
"cobertura.ser", //
"release.properties", //
".repository", // Used by Jenkins when a Maven job uses a private repository that is "Local to the workspace"
+ ".mvn", // Project configuration since Maven 3.3.1 which contains maven.config, jvm.config, extensions.xml
"pom.xml.releaseBackup"));
/**
View
6 apache-rat-plugin/src/test/java/org/apache/rat/mp/ExclusionHelperTest.java
@@ -49,7 +49,7 @@ public void testNumberOfExclusions() {
ECLIPSE_DEFAULT_EXCLUDES.size());
assertEquals("Did you change the number of idea excludes?", 4,
IDEA_DEFAULT_EXCLUDES.size());
- assertEquals("Did you change the number of mvn excludes?", 5,
+ assertEquals("Did you change the number of mvn excludes?", 6,
MAVEN_DEFAULT_EXCLUDES.size());
}
@@ -81,9 +81,9 @@ public void testAddingMavenExclusions() {
addMavenDefaults(log, false, exclusion);
assertTrue(exclusion.isEmpty());
addMavenDefaults(log, true, exclusion);
- assertEquals(5, exclusion.size());
+ assertEquals(6, exclusion.size());
addMavenDefaults(log, true, exclusion);
- assertEquals(5, exclusion.size());
+ assertEquals(6, exclusion.size());
}
@Test
Please sign in to comment.
Something went wrong with that request. Please try again.