Paulo Fidalgo
Paulo Fidalgo

Reputation: 22331

Maven: Managing Spring configurations

I have several set's of Spring configurations (XML files for bean initialization and properties files), for different kind of services/servers. I've also use maven to manage the dependencies and build (alternating with eclipse).

My intent was to have a flag I could pass to maven to build the project with a selected configuration profile.

Example:

mvn package production

will put the conf/production files in WEB-INF/classes

Upvotes: 1

Views: 577

Answers (1)

Paulo Fidalgo
Paulo Fidalgo

Reputation: 22331

I've solved the problem by using the approach of Spring profiles as suggested by @gerardribas. I've looked at the Jhipster implementation and follow that way. If somebody is following the same path, be aware that your need to upgrade your servlet version to 3.x.

Upvotes: 1

Related Questions