How to disable maven profile in eclipse?

I have a maven project in eclipse Indigo. Project POM uses a specific profile by default, which I want to disconnect from my eclipse. I know that I can activate by right-clicking on a project -> properties -> Maven -> Active Maven Profiles.

But how to disable this profile?

+4
source share
2 answers

Generally, you should be able to add! the prefix for this profile, in the project> Properties> Maven> "Active Maven Profiles". But there is an error in m2e that prevents profile deactivation: https://bugs.eclipse.org/bugs/show_bug.cgi?id=337353

Sorry, this is not a solution to your problem, but you can at least now track the progress in resolving the error. And if you like living on the edge, you can clone m2e git repo, apply the fix and build m2e from the source.

+3
source

Add a new (empty) profile to your POM (for example, "eclipse") and set it as the active maven profile in your eclipse.

0
source

Source: https://habr.com/ru/post/1382150/


All Articles