Hi Peter, Would you check nifi-mysftp-processors nar to see if there's any nar dependency by any chance?
I tested following dependency setting and got the same error: - nifi-B-processors-nar - nar dependency to nifi-A-processors-nar - dependency to nifi-B-processors - nifi-B-processors - nar dependency to nifi-C-processors-nar (nar dependency shouldn't be used in a project that is not a 'nar' project) Thanks, Koji On Sat, Nov 19, 2016 at 3:20 AM, peter-ho <[email protected]> wrote: > After adding the nar as dependency to the nar pom.xml, I'm getting the > following error: > > [ERROR] Failed to execute goal > org.apache.nifi:nifi-nar-maven-plugin:1.1.0:nar (default-nar) on project > discover-mysftp-nar: Error assembling NAR: Each NAR represents a > ClassLoader. A NAR dependency allows that NAR's ClassLoader to be used as > the parent of this NAR's ClassLoader. As a result, only a single NAR > dependency is allowed. -> [Help 1] > > Have you seen it? I tried adding <scope>provided</scope> to > nifi-standard-nar in nar's pom, which got it to build, but when nifi starts, > it can't initialize the processor complaining class def not found for the > classes I refer to. > > I didn't add the project/artifact to assembly, as I'm not building > everything, just planning to add an extra nar. My nar's pom: > > <dependencies> > <dependency> > <groupId>com.nifi</groupId> > <artifactId>nifi-mysftp-processors</artifactId> > <version>1.0-SNAPSHOT</version> > </dependency> > <dependency> > <groupId>org.apache.nifi</groupId> > <artifactId>nifi-standard-nar</artifactId> > <type>nar</type> > </dependency> > </dependencies> > > > Thanks > Peter > > > > -- > View this message in context: > http://apache-nifi-developer-list.39713.n7.nabble.com/nifi-1-0-extending-a-standard-processor-tp13306p13924.html > Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.
