You need to provide the "java8.home" property in order to have the retrolambda work correctly (can't run with java 7).
Chris Von meinem Samsung Galaxy Smartphone gesendet. -------- Ursprüngliche Nachricht -------- Von: Dale LaBossiere <dml.apa...@gmail.com> Datum: 25.09.17 18:32 (GMT+01:00) An: dev@edgent.apache.org Betreff: maven: java7 build? Chris, Thought I understood how but I'm running into a problem. I’ve got ~/.m2/toolchains.xml setup and JAVA_HOME and even tried adding JAVA8_HOME but the following fails. What’s the right command? $ mvn clean install -Ptoolchain,platform-java7,platform-android ... [INFO] ------------------------------------------------------------------------ [INFO] Building Apache Edgent: Platforms: Java7 1.2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ edgent-platforms-java7 --- [INFO] [INFO] --- maven-toolchains-plugin:1.1:toolchain (default) @ edgent-platforms-java7 --- [INFO] Required toolchain: jdk [ vendor='oracle' version='1.7' ] [INFO] Found matching toolchain for type jdk: JDK[/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home] [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-property) @ edgent-platforms-java7 --- [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireProperty failed with message: The retrolambda-maven-plugin requires a path to Java 8. You must set a 'java8.home' property! [INFO] ------------------------------------------------------------------------ Thanks in advance! — Dale