You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Bende (Jira)" <ji...@apache.org> on 2020/09/16 13:54:00 UTC

[jira] [Commented] (NIFI-7813) NAR Maven Plugin can resolve wrong version of nifi-api

    [ https://issues.apache.org/jira/browse/NIFI-7813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17196990#comment-17196990 ] 

Bryan Bende commented on NIFI-7813:
-----------------------------------

Merged the referenced PR to main in the nifi-maven repo.

> NAR Maven Plugin can resolve wrong version of nifi-api
> ------------------------------------------------------
>
>                 Key: NIFI-7813
>                 URL: https://issues.apache.org/jira/browse/NIFI-7813
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: nifi-nar-maven-plugin-1.3.1
>            Reporter: Bryan Bende
>            Assignee: Bryan Bende
>            Priority: Major
>             Fix For: nifi-nar-maven-plugin-1.4.0
>
>
> Reported by [Etienne Jouvin|https://github.com/ejouvin] [ejouvin|https://github.com/ejouvin] on github:
> [https://github.com/apache/nifi-maven/pull/13]
> Not sure if it is the correct way and if this is the root cause.
> But, when creating a custom maven project with version 0.0.1-SNAPSHOT.
> And if in a project there is a provided description on nifi-api, for example on 1.11.4 version, the NAR generation failed wwith something like this in the stack trace :
> [DEBUG] building maven31 dependency graph for MY_GROUP_ID:MY_ARTIFACT_ID:jar:0.0.1-SNAPSHOT with Maven31DependencyGraphBuilder
> [DEBUG] Dependency collection stats: \{ConflictMarker.analyzeTime=11500, ConflictMarker.markTime=10100, ConflictMarker.nodeCount=13, ConflictIdSorter.graphTime=4900, ConflictIdSorter.topsortTime=9000, ConflictIdSorter.conflictIdCount=11, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=42300, ConflictResolver.conflictItemCount=12, DefaultDependencyCollector.collectTime=395400, DefaultDependencyCollector.transformTime=92200}
> [DEBUG] MY_GROUP_ID:MY_ARTIFACT_ID:jar:0.0.1-SNAPSHOT
> [DEBUG] org.apache.nifi:nifi-api:jar:1.11.4:provided
> [DEBUG] junit:junit:jar:4.13:test
> [DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test
> [DEBUG] org.mockito:mockito-core:jar:2.28.2:test
> [DEBUG] net.bytebuddy:byte-buddy:jar:1.9.10:test
> [DEBUG] net.bytebuddy:byte-buddy-agent:jar:1.9.10:test
> [DEBUG] org.objenesis:objenesis:jar:2.6:test
> [DEBUG] org.slf4j:slf4j-simple:jar:1.7.30:test
> [DEBUG] org.slf4j:slf4j-api:jar:1.7.30:provided (scope managed from compile) (version managed from 1.7.30)
> [DEBUG] org.codehaus.groovy:groovy-test:jar:2.5.4:test
> [DEBUG] org.codehaus.groovy:groovy:jar:2.5.4:test
> [DEBUG] For Artifact MY_GROUP_ID:MY_ARTIFACT_ID:jar:0.0.1-SNAPSHOT:compile, found the following dependencies:
> [DEBUG] org.slf4j:slf4j-api:jar:1.7.30:provided
> [DEBUG] org.codehaus.groovy:groovy-test:jar:2.5.4:test
> [DEBUG] net.bytebuddy:byte-buddy:jar:1.9.10:test
> [DEBUG] junit:junit:jar:4.13:test
> [DEBUG] org.apache.nifi:nifi-api:jar:1.11.4:provided
> [DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test
> [DEBUG] org.objenesis:objenesis:jar:2.6:test
> [DEBUG] org.slf4j:slf4j-simple:jar:1.7.30:test
> [DEBUG] net.bytebuddy:byte-buddy-agent:jar:1.9.10:test
> [DEBUG] org.mockito:mockito-core:jar:2.28.2:test
> [DEBUG] MY_GROUP_ID:MY_ARTIFACT_ID:jar:0.0.1-SNAPSHOT
> [DEBUG] org.codehaus.groovy:groovy:jar:2.5.4:test
> [DEBUG] Found version of org.apache.nifi:nifi-api to be 0.0.1-SNAPSHOT
> [INFO] Found a dependency on version 0.0.1-SNAPSHOT of NiFi API



--
This message was sent by Atlassian Jira
(v8.3.4#803005)