public Artifact()

in src/main/java/org/apache/sling/cli/impl/nexus/Artifact.java [41:59]


    public Artifact(StagingRepository repository, String groupId, String artifactId, String version, String classifier, String type) {
        this.repository = repository;
        this.groupId = groupId;
        this.artifactId = artifactId;
        this.version = version;
        this.classifier = classifier;
        this.type = type;
        String base = groupId.replaceAll("\\.", "/") + "/" + artifactId + "/" + version + "/" + artifactId + "-" + version;
        StringBuilder stringBuilder = new StringBuilder(base);
        if (this.classifier != null) {
            stringBuilder.append("-").append(this.classifier);
        }
        stringBuilder.append(".").append(this.type);
        repositoryRelativePath = stringBuilder.toString();
        uri = URI.create(repository.getRepositoryURI() + "/" + repositoryRelativePath);
        repositoryRelativeSignaturePath = repositoryRelativePath + ".asc";
        repositoryRelativeSha1SumPath = repositoryRelativePath + ".sha1";
        repositoryRelativeMd5SumPath = repositoryRelativePath + ".md5";
    }