mirror of https://github.com/apache/nifi.git
NIFI-272: minor tweaks to archetype to be more consistent with existing poms and java code style
This commit is contained in:
parent
db2072ed8a
commit
a0b70fa9c6
|
@ -26,8 +26,6 @@
|
|||
<version>${version}</version>
|
||||
<packaging>nar</packaging>
|
||||
|
||||
<name>${artifactId}</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>${groupId}</groupId>
|
||||
|
|
|
@ -25,13 +25,6 @@
|
|||
<artifactId>${artifactId}</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>${artifactId}</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.nifi</groupId>
|
||||
|
|
|
@ -18,6 +18,7 @@ package org.apache.nifi.processors;
|
|||
|
||||
import org.apache.nifi.components.PropertyDescriptor;
|
||||
import org.apache.nifi.components.PropertyValue;
|
||||
import org.apache.nifi.flowfile.FlowFile;
|
||||
import org.apache.nifi.processor.*;
|
||||
import org.apache.nifi.processor.annotation.CapabilityDescription;
|
||||
import org.apache.nifi.processor.annotation.OnScheduled;
|
||||
|
@ -48,7 +49,7 @@ public class MyProcessor extends AbstractProcessor {
|
|||
private Set<Relationship> relationships;
|
||||
|
||||
@Override
|
||||
protected void init(ProcessorInitializationContext context) {
|
||||
protected void init(final ProcessorInitializationContext context) {
|
||||
final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>();
|
||||
descriptors.add(MY_PROPERTY);
|
||||
this.descriptors = Collections.unmodifiableList(descriptors);
|
||||
|
@ -74,9 +75,14 @@ public class MyProcessor extends AbstractProcessor {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException {
|
||||
PropertyValue propertyValue = context.getProperty(MY_PROPERTY);
|
||||
public void onTrigger(final ProcessContext context, final ProcessSession session) throws ProcessException {
|
||||
FlowFile flowFile = session.get();
|
||||
if ( flowFile == null ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO implement
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,13 +27,6 @@
|
|||
<version>${version}</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>nifi-${artifactId}-bundle</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
<module>nifi-${rootArtifactId}-processors</module>
|
||||
<module>nifi-${rootArtifactId}-nar</module>
|
||||
|
|
Loading…
Reference in New Issue