Skip to content

Problem with parsing Maven paths with tar.bz2 type/extension #96

@grgrzybek

Description

@grgrzybek

with 4e0daa5 reverted, my test (in org.commonjava.atlas.maven.ident.util.ArtifactPathInfoTest) works:

@Test
public void matchNormalClassifier3()
{
    String path = "/io/syndesis/s2i/s2i/1.15.0.fuse-7_13_0-00001-redhat-00001/s2i-1.15.0.fuse-7_13_0-00001-redhat-00001-m2.tar.bz2";
    ArtifactPathInfo pathInfo = ArtifactPathInfo.parse( path );
    assertThat( pathInfo.getVersion(), equalTo( "1.15.0.fuse-7_13_0-00001-redhat-00001" ) );
    assertThat( pathInfo.getClassifier(), equalTo( "m2" ) );
    assertThat( pathInfo.getType(), equalTo( "tar.bz2" ) );
}

otherwise, the type is bz2 and the classifier is m2.tar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions