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 2018/06/04 19:17:00 UTC

[jira] [Commented] (NIFI-5260) Regression in nifi-processor-bundle-archetype

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

Bryan Bende commented on NIFI-5260:
-----------------------------------

Thanks for reporting this. I think it was a result of some of the dependencyManagement changes in NiFi so now in 1.6.0 the dependencies for nifi-utils and nifi-mock now need their versions set, where as before it was being set in the parent pom somewhere.

> Regression in nifi-processor-bundle-archetype
> ---------------------------------------------
>
>                 Key: NIFI-5260
>                 URL: https://issues.apache.org/jira/browse/NIFI-5260
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 1.6.0
>         Environment: Maven v3.2.1
> Debian GNU/Linux 9.4 (stretch)
>            Reporter: Paul Millar
>            Priority: Major
>
> Using
> {{mvn archetype:generate -DarchetypeGroupId=org.apache.nifi -DarchetypeArtifactId=nifi-processor-bundle-archetype -DarchetypeVersion=1.6.0 -DnifiVersion=1.6.0}}
> I generated an initial processor bundle package.  Here is the output
> {{ paul@sparkplug:~/git/Nifi$ mvn archetype:generate -DarchetypeGroupId=org.apache.nifi -DarchetypeArtifactId=nifi-processor-bundle-archetype -DarchetypeVersion=1.6.0 -DnifiVersion=1.6.0}}
> {{[INFO] Scanning for projects...}}
> {{[INFO] }}
> {{[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1}}
> {{[INFO]                                                                         }}
> {{[INFO] ------------------------------------------------------------------------}}
> {{[INFO] Building Maven Stub Project (No POM) 1}}
> {{[INFO] ------------------------------------------------------------------------}}
> {{[INFO] }}
> {{[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom >>>}}
> {{[INFO] }}
> {{[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom <<<}}
> {{[INFO] }}
> {{[INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom ---}}
> {{[INFO] Generating project in Interactive mode}}
> {{[INFO] Archetype repository not defined. Using the one from [org.apache.nifi:nifi-processor-bundle-archetype:1.6.0] found in catalog remote}}
> {{Define value for property 'groupId': org.dcache.nifi}}
> {{Define value for property 'artifactId': nifi-sse-bundle}}
> {{Define value for property 'version' 1.0-SNAPSHOT: : }}
> {{Define value for property 'artifactBaseName': sse}}
> {{Define value for property 'package' org.dcache.nifi.processors.sse: : }}
> {{[INFO] Using property: nifiVersion = 1.6.0}}
> {{Confirm properties configuration:}}
> {{groupId: org.dcache.nifi}}
> {{artifactId: nifi-sse-bundle}}
> {{version: 1.0-SNAPSHOT}}
> {{artifactBaseName: sse}}
> {{package: org.dcache.nifi.processors.sse}}
> {{nifiVersion: 1.6.0}}
> {{ Y: : }}
> {{[INFO] ----------------------------------------------------------------------------}}
> {{[INFO] Using following parameters for creating project from Archetype: nifi-processor-bundle-archetype:1.6.0}}
> {{[INFO] ----------------------------------------------------------------------------}}
> {{[INFO] Parameter: groupId, Value: org.dcache.nifi}}
> {{[INFO] Parameter: artifactId, Value: nifi-sse-bundle}}
> {{[INFO] Parameter: version, Value: 1.0-SNAPSHOT}}
> {{[INFO] Parameter: package, Value: org.dcache.nifi.processors.sse}}
> {{[INFO] Parameter: packageInPathFormat, Value: org/dcache/nifi/processors/sse}}
> {{[INFO] Parameter: package, Value: org.dcache.nifi.processors.sse}}
> {{[INFO] Parameter: artifactBaseName, Value: sse}}
> {{[INFO] Parameter: version, Value: 1.0-SNAPSHOT}}
> {{[INFO] Parameter: groupId, Value: org.dcache.nifi}}
> {{[INFO] Parameter: artifactId, Value: nifi-sse-bundle}}
> {{[INFO] Parameter: nifiVersion, Value: 1.6.0}}
> {{[INFO] Project created from Archetype in dir: /home/paul/git/Nifi/nifi-sse-bundle}}
> {{[INFO] ------------------------------------------------------------------------}}
> {{[INFO] BUILD SUCCESS}}
> {{[INFO] ------------------------------------------------------------------------}}
> {{[INFO] Total time: 53.334 s}}
> {{[INFO] Finished at: 2018-06-03T09:03:43+01:00}}
> {{[INFO] Final Memory: 19M/223M}}
> {{[INFO] ------------------------------------------------------------------------}}
> {{paul@sparkplug:~/git/Nifi$}}
> However, when I try to build the generated projects, I see a dependency error
> {{paul@sparkplug:~/git/Nifi$ cd nifi-sse-bundle/}}
> {{paul@sparkplug:~/git/Nifi/nifi-sse-bundle$ mvn package}}
> {{[INFO] Scanning for projects...}}
> {{[ERROR] The build could not read 1 project -> [Help 1]}}
> {{[ERROR]   }}
> {{[ERROR]   The project org.dcache.nifi:nifi-sse-processors:1.0-SNAPSHOT (/home/paul/git/Nifi/nifi-sse-bundle/nifi-sse-processors/pom.xml) has 2 errors}}
> {{[ERROR]     'dependencies.dependency.version' for org.apache.nifi:nifi-utils:jar is missing. @ line 33, column 21}}
> {{[ERROR]     'dependencies.dependency.version' for org.apache.nifi:nifi-mock:jar is missing. @ line 37, column 21}}
> {{[ERROR] }}
> {{[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.}}
> {{[ERROR] Re-run Maven using the -X switch to enable full debug logging.}}
> {{[ERROR] }}
> {{[ERROR] For more information about the errors and possible solutions, please read the following articles:}}
> {{[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException}}
> {{paul@sparkplug:~/git/Nifi/nifi-sse-bundle$ }}
> The same operations work when using nifi-process-bundle-archetype v1.5.0
> It seems that Nifi v1.6.0 introduced a required property dependencies.dependency.version that has no default value.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)