Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Apache NiFi extensions are packaged in NARs (NiFi archives). A NAR allows several components and their dependencies to be packaged together into a single package. The NAR package is then provided ClassLoader isolation from other NAR packages. See the Developer Guide for more detailed information on NARs.

Processor Projects

Apache NiFi processors are typically organized in processor bundles. A processor bundle is generally composed of the following:

...

mvn archetype:generate -DarchetypeGroupId=org.apache.nifi -DarchetypeArtifactId=nifi-processor-bundle-archetype -DarchetypeVersion=0.24.1 -DnifiVersion=0.24.1

The archetypeVersion corresponds to the version of the nifi-processor-bundle-archetype that is being used, currently this version is the same as the top-level NiFi version (i.e. for the NiFi 0.25.0 release, the archetypeVersion would be 0.25.0, and so on). The nifiVersion is the version of NiFi that the new processors will depend on.

...

mvn archetype:generate -DarchetypeGroupId=org.apache.nifi -DarchetypeArtifactId=nifi-service-bundle-archetype -DarchetypeVersion=0.34.0-SNAPSHOT1 -DnifiVersion=0.34.0-SNAPSHOT1

The archetypeVersion corresponds to the version of the nifi-service-bundle-archetype that is being used, currently this version is the same as the top-level NiFi version (i.e. for the NiFi 0.25.0 release, the archetypeVersion would be 0.25.0, and so on). The nifiVersion is the version of NiFi that the new controller service will depend on.NOTE: This archetype is currently only available by building the latest code (0.3.0-SNAPSHOT), after the 0.3.0 release this archetype will be generally available through Maven central. The latest released version of the archetype can always be found by checking the Maven central repositories

Running the above command will prompt you for the following properties:

...

<dependency>
            <groupId>org.apache.nifi</groupId>
            <artifactId>nifi-ssl-context-service-api</artifactId>
            <version>0.24.0-SNAPSHOT<1</version>
            <scope>provided</scope>
</dependency>

...

<dependency>
            <groupId>org.apache.nifi</groupId>
            <artifactId>nifi-standard-services-api-nar</artifactId>
            <version>0.24.0-SNAPSHOT<1</version>
            <type>nar</type>
</dependency>

...