Hi Dave,
The top level pom.xml on the 0.x branch has the following
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
I think you'd need to change that to support Java 8 functionality.
Cheers,
Richard
On Sat, 25 Feb 2017 at 20:19, DAVID SMITH <[email protected]>
wrote:
> Hi
> At work we are in need of a set of email/smtp processors, our system
> currently uses NiFi 0.7.2 on Centos 7 and Java 8.
> We can't upgrade the NiFi version at the present time.I found a set of
> processors which will do the job we require in NiFi 1.1.1, I have tried
> running the 1.1.1 nar bundle in 0.7.2 but I get errors stating that
> ComponentLog is not found.I have taken the source code and changed the
> parent nar in the poms to 0.7.1 and then changed componentLog to
> ProcessorLog in the classes. When I then try to rebuild the code I get the
> following error:
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.2:compile
> (default-compile) on project nifi-email-processors: Compilation failure
> [ERROR] bootstrap class path not set in conjunction with -source 1.7
> [ERROR]
> /home/dave/workspace-luna/nifi-email-bundle/nifi-email-processors/src/main/java/org/apache/nifi/processors/email/ListenSMTP.java:[241,86]
> error: lambda expressions are not supported in -source 1.7
> I have Java 8 set as my default within eclipse, is there something in a
> higher level pom that is being acted on here.
> Can anyone help with this please?
> many thanksDave
>