You are watching: The requested profile "pom.xml" could not be activated because it does not exist.
This happens as soon as you have actually the adhering to in your settings.xml (in your .m2 directory), and no profile with the id projectname.
If you run
MVN clean install
from command also line and do not gain the warning, yet get it if you run it from Eclipse m2e plugin, examine if you have actually set a profile in the (default) Run configuration.
In Eclipse Project Explorer, pick the job, best click > Run As > Run Configurations. Check the m2 run configurations of your project. Check if you have "projectname", i.e. the profile discussed in the WARNING is provided in the Prorecords parameter. Rerelocate the profile from the prorecords form area in the dialog. The cause might be that you have actually had a in you pom.xml, and supplied it in the develop. When you remove it from pom.xml - it remains in the run configuration, also if it does not show up in the job explorer"s Maven conmessage menu (Maven > Select Maven Profiles ...)
Thanks for contributing a response to Stack Overflow!Please be certain to answer the question. Provide details and also share your research!
But avoid …Asking for aid, clarification, or responding to other answers.Making statements based on opinion; earlier them up with recommendations or personal experience.
To learn more, see our tips on composing good answers.
Article Your Answer Discard
Not the answer you're looking for? Browse various other questions tagged java maven spring-mvc deployment war or ask your own question.
Spring Maven clean error - The asked for profile "pom.xml" could not be caused bereason it does not exist
See more: Duckie Shoes Pretty In Pink, Duckie Dale From Pretty In Pink
site design / logo design © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.9.13.40199