I get this WARNING when I try to build my maven project. I have searched google but with no luck. This is really annoying since I wanna release my project but it wont work with this warning (I think). The build is successful, but when I try to deploy the war file it doesen”t work (no error message). The only warning I can find when I build the project is this:
This happens when you have the following in your settings.xml (in your .m2 directory), and no profile with the id projectname.
If you run
MVN clean install
from command line and do not get the warning, but get it if you run it from Eclipse m2e plugin, check if you have set a profile in the (default) Run configuration.
In Eclipse Project Explorer, select the project, right click > Run As > Run Configurations. Check the m2 run configurations of your project. Check if you have “projectname”, i.e. the profile mentioned in the WARNING is provided in the Profiles parameter. Remove the profile from the profiles form field in the dialog. The cause may be that you have had a in you pom.xml, and used it in the build. When you remove it from pom.xml – it remains in the run configuration, even if it does not show up in the project explorer”s Maven context menu (Maven > Select Maven Profiles …)
Thanks for contributing an answer to Stack Overflow!
Please be sure to answer the question. Provide details and share your research!
But avoid …
Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Post Your Answer Discard
Not the answer you're looking for? Browse other questions tagged java maven spring-mvc deployment war or ask your own question.
Spring Maven clean error – The requested profile “pom.xml” could not be activated because it does not exist
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.9.13.40199