Pattern[MSHARED-599] Allow classifier in PatternInclusionsFilter
pattern ends with the version

git-svn-id: https://svn.apache.org/repos/asf/maven/shared/trunk@1748618 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/maven/shared/artifact/filter/resolve/transform/EclipseAetherFilterTransformer.java b/src/main/java/org/apache/maven/shared/artifact/filter/resolve/transform/EclipseAetherFilterTransformer.java
index 700d35d..303bede 100644
--- a/src/main/java/org/apache/maven/shared/artifact/filter/resolve/transform/EclipseAetherFilterTransformer.java
+++ b/src/main/java/org/apache/maven/shared/artifact/filter/resolve/transform/EclipseAetherFilterTransformer.java
@@ -56,7 +56,7 @@
      * When using as regular expression, group(1) + group(3) will be the coordinate, 
      * group(2) will be the classifier.
      */
-    private static final String GAV_C_E = "(.*:.*:.*):(.+)(:.*)";
+    private static final String GAE_C_V = "(.*:.*:.*):(.+)(:.*)";
     
     @Override
     public AndDependencyFilter transform( AndFilter andFilter )
@@ -107,7 +107,7 @@
         
         for ( String include : filter.getIncludes() )
         {
-            if ( include.matches( GAV_C_E ) )
+            if ( include.matches( GAE_C_V ) )
             {
                 return newAdvancedPatternInclusionFilter( filter.getIncludes() );
             }
@@ -133,7 +133,7 @@
     {
         List<DependencyFilter> filters = new ArrayList<DependencyFilter>( includes.size() );
 
-        Pattern pattern = Pattern.compile( GAV_C_E );
+        Pattern pattern = Pattern.compile( GAE_C_V );
         for ( String include : includes )
         {
             Matcher matcher = pattern.matcher( include );
diff --git a/src/main/java/org/apache/maven/shared/artifact/filter/resolve/transform/SonatypeAetherFilterTransformer.java b/src/main/java/org/apache/maven/shared/artifact/filter/resolve/transform/SonatypeAetherFilterTransformer.java
index 9d749eb..36bce51 100644
--- a/src/main/java/org/apache/maven/shared/artifact/filter/resolve/transform/SonatypeAetherFilterTransformer.java
+++ b/src/main/java/org/apache/maven/shared/artifact/filter/resolve/transform/SonatypeAetherFilterTransformer.java
@@ -56,7 +56,7 @@
      * When using as regular expression, group(1) + group(3) will be the coordinate, 
      * group(2) will be the classifier.
      */
-    private static final String GAV_C_E = "(.*:.*:.*):(.+)(:.*)";
+    private static final String GAE_C_V = "(.*:.*:.*):(.+)(:.*)";
     
     @Override
     public AndDependencyFilter transform( AndFilter filter )
@@ -107,7 +107,7 @@
         
         for ( String include : filter.getIncludes() )
         {
-            if ( include.matches( GAV_C_E ) )
+            if ( include.matches( GAE_C_V ) )
             {
                 return newAdvancedPatternInclusionFilter( filter.getIncludes() );
             }
@@ -133,7 +133,7 @@
     {
         List<DependencyFilter> filters = new ArrayList<DependencyFilter>( includes.size() );
 
-        Pattern pattern = Pattern.compile( GAV_C_E );
+        Pattern pattern = Pattern.compile( GAE_C_V );
         for ( String include : includes )
         {
             Matcher matcher = pattern.matcher( include );