How to manage maven profiles through annotations/pom.xml?
问题 Ref - Maven Profiles I don't want to specify profile through command line arguments while running. Because, if I change it locally, then changes have to be made thoughout CI stream. Scenario: There are basically two profiles "PROD" and "TEST" . I have annotated methods using these. Basically, I connect different databases under different profiles. While the test classes are annotated with @ActiveProfile("TEST") I run tests using mvn clean test-compile failsafe:integraton-test and run