Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WARNING The requested profile "pom.xml" could not be activated because it does not exist

I am trying to run maven goal: validation and keep getting: [WARNING] The requested profile "pom.xml" could not be activated because it does not exist.

In my org.eclipse.m2e.core.prefs:

activeProfiles=pom.xml
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

What did I do wrong?

like image 363
topcan5 Avatar asked Aug 10 '14 20:08

topcan5


3 Answers

  1. Right click on your project
  2. Go to "Run as"
  3. Go to "Run configurations... "
  4. When the screen opens, please delete the word "pom.xml" from the "Profiles:" line and then click "Run".

The project will now run.

profile

like image 108
Simon Avatar answered Oct 18 '22 20:10

Simon


Your activeProfiles is set to pom.xml. But your Maven profile should be defined inside your pom.xml with an id. You have to set this id as the active profile or remove this line to use the default profile of your maven project.

like image 33
Martin Seeler Avatar answered Oct 18 '22 20:10

Martin Seeler


You just have to:

  1. delete .m2 repository.
  2. execute mvn clean install.

That solved my problem

like image 2
Yambi Avatar answered Oct 18 '22 20:10

Yambi