NIFI-11285 Unable to build module created by maven archetype plugin

Signed-off-by: Matthew Burgess <mattyb149@apache.org>
This commit is contained in:
Nandor Soma Abonyi 2023-03-14 13:36:49 +01:00 committed by Matthew Burgess
parent 9e804fec4e
commit 8ed687779b
No known key found for this signature in database
GPG Key ID: 05D3DEB8126DAD24
7 changed files with 9 additions and 6 deletions

View File

@ -29,6 +29,7 @@
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>

View File

@ -26,7 +26,6 @@ import org.apache.nifi.annotation.lifecycle.OnScheduled;
import org.apache.nifi.annotation.documentation.CapabilityDescription;
import org.apache.nifi.annotation.documentation.SeeAlso;
import org.apache.nifi.annotation.documentation.Tags;
import org.apache.nifi.processor.exception.ProcessException;
import org.apache.nifi.processor.AbstractProcessor;
import org.apache.nifi.processor.ProcessContext;
import org.apache.nifi.processor.ProcessSession;
@ -93,7 +92,7 @@ public class MyProcessor extends AbstractProcessor {
@Override
public void onTrigger(final ProcessContext context, final ProcessSession session) {
FlowFile flowFile = session.get();
if ( flowFile == null ) {
if (flowFile == null) {
return;
}
// TODO implement

View File

@ -21,7 +21,6 @@ import org.apache.nifi.util.TestRunners;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class MyProcessorTest {
private TestRunner testRunner;

View File

@ -19,12 +19,11 @@ package ${package};
import org.apache.nifi.annotation.documentation.CapabilityDescription;
import org.apache.nifi.annotation.documentation.Tags;
import org.apache.nifi.controller.ControllerService;
import org.apache.nifi.processor.exception.ProcessException;
@Tags({"example"})
@CapabilityDescription("Example Service API.")
public interface MyService extends ControllerService {
public void execute();
void execute();
}

View File

@ -36,6 +36,11 @@
<artifactId>nifi-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-utils</artifactId>
<version>${nifiVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.nifi</groupId>
<artifactId>nifi-mock</artifactId>

View File

@ -27,7 +27,6 @@ import org.apache.nifi.annotation.lifecycle.OnEnabled;
import org.apache.nifi.components.PropertyDescriptor;
import org.apache.nifi.controller.AbstractControllerService;
import org.apache.nifi.controller.ConfigurationContext;
import org.apache.nifi.processor.exception.ProcessException;
import org.apache.nifi.processor.util.StandardValidators;
import org.apache.nifi.reporting.InitializationException;

View File

@ -42,4 +42,5 @@ public class TestProcessor extends AbstractProcessor {
.build());
return propDescs;
}
}