[ 
https://issues.apache.org/jira/browse/NIFI-12608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann resolved NIFI-12608.
-------------------------------------
    Fix Version/s: 2.0.0
         Assignee: Shane O'Neill
       Resolution: Fixed

> 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
>            Assignee: Shane O'Neill
>            Priority: Major
>             Fix For: 2.0.0
>
>          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