A
A
Alexander Ivanov2014-12-02 09:36:58
Java
Alexander Ivanov, 2014-12-02 09:36:58

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

1 answer(s)
A
Alexander Ivanov, 2014-12-04
@formatko

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>
.....

And in the desired module prod2, for the rest, prod will work, and for the desired prod2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question