I acquire this WARNING as soon as I try to develop my maven project. I have actually searched google yet via no luck. This is really annoying because I wanna release my task however it wont work-related with this warning (I think). The build is successful, but as soon as I attempt to deploy the war file it doesen"t occupational (no error message). The just warning I can find once I develop the task is this:

The requested profile "projectname" can not be activated bereason it does not exist.

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

By clicking “Message Your Answer”, you agree to our regards to business, privacy policy and cookie plan

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

Your privacy

By clicking “Accept all cookies”, you agree Stack Exreadjust deserve to keep cookies on your gadget and disclose information in accordance via our Cookie Policy.