For one project we need to be able to inject dependencies from profiles defined and activated in .m2/settings.xml, into EAR and WAR maven module. It allows to have generic EAR/WAR sources and artifact customized according profiles, so that some dynamic and specific stuff are plugged in and found at deploy/run time.
We have codec a solution as a Maven plugin (maybe not the better solution but at least work for us) :
- Download url : http://www.nozicaa.com/maven/artifact/maven-profiledep-plugin-1.0-SNAPSHOT.jar
- Documentation url : http://www.nozicaa.com/maven/doc/maven-profiledep-plugin/
It maybe useful for other people.