Skip to content

Commit

Permalink
ignore all classifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Mar 9, 2015
1 parent 5c78a6d commit 8e5cd22
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions de.dentrassi.pm.unzip/src/de/dentrassi/pm/unzip/UnzipServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public class UnzipServlet extends AbstractStorageServiceServlet

private static final MetaKey MK_ARTIFACT_ID = new MetaKey ( "mvn", "artifactId" );

private static final MetaKey MK_CLASSIFIER = new MetaKey ( "mvn", "classifier" );

private static final MetaKey MK_VERSION = new MetaKey ( "mvn", "version" );

private static final MetaKey MK_SNAPSHOT_VERSION = new MetaKey ( "mvn", "snapshotVersion" );
Expand Down Expand Up @@ -351,6 +353,8 @@ protected static List<MavenVersionedArtifact> getMavenArtifacts ( final Supplier
final String mvnGroupId = ai.getMetaData ().get ( MK_GROUP_ID );
final String mvnArtifactId = ai.getMetaData ().get ( MK_ARTIFACT_ID );

final String classifier = ai.getMetaData ().get ( MK_CLASSIFIER );

final String mvnVersion = ai.getMetaData ().get ( MK_VERSION );
final String mvnSnapshotVersion = ai.getMetaData ().get ( MK_SNAPSHOT_VERSION );

Expand All @@ -360,6 +364,12 @@ protected static List<MavenVersionedArtifact> getMavenArtifacts ( final Supplier
continue;
}

if ( classifier != null && !classifier.isEmpty () )
{
// no classifiers right now
continue;
}

if ( !mvnGroupId.equals ( groupId ) || !mvnArtifactId.equals ( artifactId ) )
{
// wrong group or artifact id
Expand Down

0 comments on commit 8e5cd22

Please sign in to comment.