protected Artifact getResolvedPomArtifact()

in src/main/java/org/apache/nifi/NarMojo.java [891:903]


    protected Artifact getResolvedPomArtifact(Artifact artifact) {
        Artifact pomArtifact = this.factory.createArtifact(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), "", "pom");
        // Resolve the pom artifact using repos
        ArtifactResolutionRequest artifactResolutionRequest = getArtifactResolutionRequest(pomArtifact);
        ArtifactResolutionResult artifactResolutionResult = this.resolver.resolve(artifactResolutionRequest);
        if (artifactResolutionResult.hasExceptions()) {
            getLog().info("Could not resolve [" + pomArtifact + "]");
            for (Exception e : artifactResolutionResult.getExceptions()){
                getLog().info(e.getMessage());
            }
        }
        return pomArtifact;
    }