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

ASF subversion and git services commented on NIFI-12608:
--------------------------------------------------------

Commit 9d947741d2a852e42be58ac7bb951ad38399d1e3 in nifi's branch 
refs/heads/main from zeevo
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=9d947741d2 ]

NIFI-12608 Add nifi-standard-services-api-nar to Processor Archetype

This closes #8239

Signed-off-by: David Handermann <exceptionfact...@apache.org>


> Processor Bundle Maven Archetype broken build
> ---------------------------------------------
>
>                 Key: NIFI-12608
>                 URL: https://issues.apache.org/jira/browse/NIFI-12608
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 2.0.0-M1
>            Reporter: Shane O'Neill
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I am seeing...
> {noformat}
> mvn archetype:generate -DarchetypeGroupId=org.apache.nifi 
> -DarchetypeArtifactId=nifi-processor-bundle-archetype{noformat}
> fail to produce a buildable project for the 
> {{{}nifi-processor-bundle-archetype{}}}. The error is:
> {code:java}
> java.lang.ClassNotFoundException: 
> org.apache.nifi.processor.util.StandardValidators
> at java.net.URLClassLoader.findClass (URLClassLoader.java:445)
> at java.lang.ClassLoader.loadClass (ClassLoader.java:593)
> at java.lang.ClassLoader.loadClass (ClassLoader.java:526)
> at org.example.processors.example.MyProcessor.<clinit> (MyProcessor.java:53)
> at jdk.internal.misc.Unsafe.ensureClassInitialized0 (Native Method)
> at jdk.internal.misc.Unsafe.ensureClassInitialized (Unsafe.java:1160)
> at jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized 
> (MethodHandleAccessorFactory.java:300)
> at jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor 
> (MethodHandleAccessorFactory.java:103)
> at jdk.internal.reflect.ReflectionFactory.newConstructorAccessor 
> (ReflectionFactory.java:200)
> at java.lang.reflect.Constructor.acquireConstructorAccessor 
> (Constructor.java:549)
> at java.lang.reflect.Constructor.newInstanceWithCaller (Constructor.java:499)
> at java.lang.reflect.Constructor.newInstance (Constructor.java:486) {code}
> Adding {{nifi-standard-services-api-nar}} to the NAR packaging module fixes 
> it.
> To recreate the issue, generate a project and run mvn package.
> {code:java}
> mvn archetype:generate \
> -DarchetypeGroupId=org.apache.nifi \
> -DarchetypeArtifactId=nifi-processor-bundle-archetype \
> -DnifiVersion=2.0.0-M1 \
> -DartifactBaseName=example \
> -DgroupId=org.example \
> -DartifactId=myproject \
> -Dversion=0.0.1 \
> -Dpackage=org.example.processors.example {code}
> {code:java}
> cd myproject
> mvn package {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to