Spring Maven clean error – The requested profile “pom.xml” could not be activated because it does not exist

The warning message [WARNING] The requested profile “pom.xml” could not be activated because it does not exist. means that you somehow passed -P pom.xml to Maven which means “there is a profile called pom.xml; find it and activate it”. Check your environment and your settings.xml for this flag and also look at all <profile> elements inside the various XML files. Usually, mvn help:effective-pom is … Read more

Error: JAVA_HOME is not defined correctly executing maven

Assuming you use bash shell and installed Java with the Oracle installer, you could add the following to your .bash_profile export JAVA_HOME=$(/usr/libexec/java_home) export PATH=$JAVA_HOME/jre/bin:$PATH This would pick the correct JAVA_HOME as defined by the Oracle installer and will set it first in your $PATH making sure it is found. Also, you don’t need to change it later when updating Java. … Read more

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

On your Eclipse IDE, go into Window > Preferences > Java > Installed JREs > and check your installed JREs. You should have an entry with a JDK there. Select the Execution Env as show below. Click OK Then Right-Click on your Project -> Maven -> Update Project Additionally, you may have to change Maven … Read more

How to resolve Unable to load authentication plugin ‘caching_sha2_password’ issue

Starting with MySQL 8.0.4, they have changed the default authentication plugin for MySQL server from mysql_native_password to caching_sha2_password. You can run the below command to resolve the issue. sample username / password => student / pass123 ALTER USER ‘student’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘pass123’; Refer the official page for details: MySQL Reference Manual