Hello Emmanuel Le 23 nov. 2016 09:38, "Emmanuel Touzery" <[email protected]> a écrit : > > Hi, > > I'm trying to migrate from tomee-maven-plugin to tomee-embedded-maven-plugin (to get the nicer exploded war reloading). > > An issue I have is that I love that tomee uses my ${project.basedir}/src/main/webapp for the web resources. Unfortunately there is also our resources.xml (under webapp/WEB-INF), and we take advantage of maven resource filtering there (${xxx} substitutions). > > Is there a way to get tomee-embedded-maven-plugin to read from ${project.basedir}/src/main/webapp, EXCEPT for WEB-INF and META-INF? > > I see we can define an inline server.xml & tomee.xml, what about beans.xml, web.xml, context.xml, resources.xml..., how should we handle this? >
Beans.xml is almost useless with cdi 1.1 with @Priority, web.xml too with ServletContextInitializer and resources.xml can be fully replaced by container properties in the plugin config. If you really want it there are few options like using a jsCustomizer to synchronize 2 folders and change the docBase or just use standard maven output folder and use another synchro way. > Thank you! > > emmanuel >
