/**
 * Pyx4me framework
 * Copyright (C) 2006-2008 pyx4j.com.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 * 
 * @author vlads
 * @version $Id$
 */
package com.github.wvengen.maven.proguard;

import org.apache.maven.artifact.Artifact;

public class ArtifactFilter {

	protected String groupId;

	protected String artifactId;

	protected String classifier;

	public boolean match(Artifact artifact) {
		return (artifact.getArtifactId().equals(this.artifactId) && artifact.getGroupId().equals(this.groupId) && (((this.classifier == null) && (artifact
				.getClassifier() == null)) || ((this.classifier != null) && this.classifier.equals(artifact
				.getClassifier()))));
	}
}

@@ -53,25 +53,24 @@
 yx4j.com.%0A *
- 
 %0A * Licensed
@@ -287,17 +287,16 @@
 E-2.0%0A *
- 
 %0A * Unle
@@ -615,17 +615,16 @@
 ense.%0A *
- 
 %0A * @aut
@@ -773,17 +773,69 @@
 lter %7B%0A%0A
-%09
+    private static final String WILDCARD = %22*%22;%0A%0A    
 protecte
@@ -849,25 +849,28 @@
 g groupId;%0A%0A
-%09
+    
 protected St
@@ -887,17 +887,20 @@
 actId;%0A%0A
-%09
+    
 protecte
@@ -921,17 +921,20 @@
 ifier;%0A%0A
-%09
+    
 public b
@@ -971,18 +971,71 @@
 ) %7B%0A
-%09%09return (
+        boolean artifactMatch = WILDCARD.equals(artifactId) %7C%7C 
 arti
@@ -1078,19 +1078,46 @@
 ifactId)
- &&
+;%0A        boolean groupMatch =
  artifac
@@ -1151,21 +1151,52 @@
 groupId)
- && (
+;%0A        boolean classifierMatch = 
 ((this.c
@@ -1219,36 +1219,48 @@
 l) && (artifact%0A
-%09%09%09%09
+                
 .getClassifier()
@@ -1339,12 +1339,24 @@
 act%0A
-%09%09%09%09
+                
 .get
@@ -1373,13 +1373,77 @@
 ()))
-));%0A%09
+;%0A        return artifactMatch && groupMatch && classifierMatch;%0A    
 %7D%0A%7D%0A

Add wildcard artifactId matching