Right click on Project-> Properties--> select project facets--> choose Java correct version which is installed on your system. Then it will works fine.
As both goals of the compiler plugin are automatically bound to phases in the Maven default lifecycle, we can execute these goals with the commands mvn compile and mvn test-compile.
org.apache.maven.plugins » maven-javadoc-pluginApache. The Apache Maven Javadoc Plugin is a plugin that uses the javadoc tool for generating javadocs for the specified project. Last Release on Apr 20, 2022.
Maven 3.6. 3 is available for download. Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting, and documentation from a central place.
Deleting full .m2/repository
local repository solved my problem.
Or else you need to know what plugins are you using exactly with their dependencies as one of the plugin suffered a problem while downloading.
Deleting full .m2 local repository solved my problem, too.
If you don't know where it is, the locations are:
Unix/Mac OS X – ~/.m2/repository
Windows – C:\Documents and Settings\{your-username}\.m2\repository
( %USERPROFILE%\.m2\repository too, as suggested by **MC Empero** )
I am adding more points to the solution by @Rushi Shah
mvn clean install -X
helps to identify the root cause.
Some of the important phases of Maven build lifecycle are:
clean
– the project is clean of all artifacts that came from previous compilations
compile
– the project is compiled into /target directory of project root
install
– packaged archive is copied into local maven repository (could in your user's home directory under /.m2)
test
– unit tests are run
package
– compiled sources are packaged into archive (JAR by default)
The 1.6 under tag refers to JDK version. We need to ensure that proper jdk version in our dev environment or change the value to 1.7 or 1.5 or whatever if the application can be supported in that JDK version.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
We can find the complete details on Maven build lifecycle in Maven site.
I had the same problem, check the installed jre used by Maven in your Run Configuration...
In your case, I think that the maven-compiler-plugin:jar:2.3.2 needs a jdk1.6
To do this : Run Configuration > YOUR_MAVEN_BUILD > JRE > Alternate JRE
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With