Most projects I've been on have a notion of a "parent" or "common" script (whether Ant, Maven or just about anything else). With Maven, you could define a <parent> POM that contains all the common stuff. Of course, you would have to add the parent element to all child POMs, but if you ever want to change something in the parent (such as this Java version), you would only have to do it once.
Chris From: Dean Schulze <dean.w.schu...@gmail.com> To: users@maven.apache.org Date: 01/13/2017 11:51 AM Subject: Is there a way to make mvn default to Java 8? I would like to avoid having to add <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> to every pom.xml. Is there a global setting I can set in mvn to make Java 8 the default so I don't have to add this to every pom.xml?