public static ArtifactId fromArtifact(Artifact artifact) {
        return new ArtifactId(artifact.getGroupId(), artifact.getArtifactId());
    }
Helper class to work with artifacts, where version does not matter.

@author gjoranv
bundle-plugin/src/main/java/com/yahoo/container/plugin/util/ArtifactId.java