Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to create a custom processor in nifi 1.5.0 ?

avatar
Explorer

I have tried to create a nifi custom processor using mvn arhetype : generate and then mvn eclipse:eclipse -DdownloadSources=true to use that in eclipse. when I am importing processor directory and save the project in eclipse I/m getting some errors in pom.xml. bu tin 0.0.2 version not showing such kind of errors.

13 REPLIES 13

avatar
Explorer
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements. See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License. You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.apache.nifi</groupId>
        <artifactId>nifi-nar-bundles</artifactId>
        <version>1.0.0</version>
    </parent>
    <groupId>com</groupId>
    <artifactId>alThingCustomProcessor</artifactId>
    <version>1.0</version>
    <packaging>pom</packaging>
    <modules>
        <module>nifi-demo_sample-processors</module>
        <module>nifi-demo_sample-nar</module>
    </modules>
<build>
        <plugins>
            <plugin>
                <groupId>org.apache.nifi</groupId>
                <artifactId>nifi-nar-maven-plugin</artifactId>
                <version>1.5.0</version>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>
</project>

avatar
Explorer

@aman I am using the same pom.xml as Bryan mentioned into the given link. If I was using version 1.1.0 then its works fine, but the thing is when i was using 1.5.0 then it is showing error in command prompt the 1.5.0 jar is missing.

avatar
Rising Star

You can try removing your .m2 directory and then retry the build .. Or manually copy the jar to the directory and then try.

avatar
New Contributor

did you solve the issue?, because I am facing a similar one with a different automatically generated pom