maven-compiler-plugin it’s already present in plugins hierarchy dependency in pom.xml. Check in Effective POM.
For short you can use properties like this:
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
I’m using Maven 3.2.5.
More Related Contents:
- What is pluginManagement in Maven’s pom.xml?
- How to refer environment variable in POM.xml?
- stop IntelliJ IDEA to switch java language level every time the pom is reloaded (or change the default project language level)
- Maven BOM [Bill Of Materials] Dependency
- Display omitted versions in maven dependency:tree?
- What is the difference between “pom” type dependency with scope “import” and without “import”?
- Is there anyway to exclude artifacts inherited from a parent POM?
- How to use POMs as a dependency in Maven?
- repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter
- IntelliJ – Convert a Java project/module into a Maven project/module
- Maven adding mainClass in pom.xml with the right folder path
- What does mvn install in maven exactly do
- Difference between and tag in Maven `pom.xml` [duplicate]
- What is the implicit ID of a maven plugin execution?
- Maven not picking JAVA_HOME correctly
- Import Maven dependencies in IntelliJ IDEA
- MapStruct and Lombok not working together
- How to get absolute path to file in /resources folder of your project
- MessageBodyProviderNotFoundException while running jar from command line
- What does Maven Update Project do in Eclipse?
- Maven Java Version Configuration ignored by Eclipse/Idea
- Programmatically Start OSGi (Equinox)?
- Resource from src/main/resources not found after building with maven
- Gradle – getting the latest release version of a dependency
- How to solve maven 2.6 resource plugin dependency?
- Cannot load properties file from resources directory
- JavaFX Maven Plug-in: No plugin found for prefix ‘jfx’ in the current project and in the plugin groups
- How can I @Autowire a spring bean that was created from an external jar?
- ClassNotFoundException DispatcherServlet when launching Tomcat (Maven dependencies not copied to wtpwebapps)
- Multiple install:install-file in a single pom.xml