Answer the question
In order to leave comments, you need to log in
How do contiguous maven profiles work?
Lots of interconnected modules. There are two profiles for dev mode and production mode for prod, depending on the profile, spring contexts are formed differently.
And suppose it is necessary to form a context differently in one of the modules, we introduce a new prod2 profile.
When building, what is the correct order to include the profiles? On the one hand, you need to enable both and, perhaps, prod2 will kill prod, or only prod2, but then will prod work in other modules?
Answer the question
In order to leave comments, you need to log in
Partially found the answer to the question:
You can specify the default in other modules
<profiles>
<profile>
<id>prod</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
.....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question