Asked By
Hall Harris
0 points
N/A
Posted on - 06/27/2019
While making a project on Maven I had to add java functionalities to make my project work. But I don’t know how to add java functionalities in a maven based project?
Set Up Java Version In Maven Based Projects
If you want to add the java functionality in your Maven project then you need to add the plugin in your pom.xml file. The plugin to be added is:
<build><plugins><plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration> <source>1.8</source><target>1.8</target>
</configuration></plugin></plugins></build>
This will solve your problem very easily!