Hallo, yesterday I saw that TomEE Micro M3 (at least) seams not to read/detect 
the resources.xml in WEB-INF.

So I created this workaround (via maven) for me.

<plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <version>1.6</version>
                        <executions>
                            <execution>
                                <id>repack</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <target>
                                        <mkdir 
dir="${project.build.directory}/tomcat"/>
                                        <move 
file="${project.build.directory}/apache-tomee" 
toDir="${project.build.directory}/tomcat"/>

                                        <zip 
basedir="${project.build.directory}/tomcat" 
destfile="${project.build.directory}/tomee.zip"/>
                                        <unzip 
src="${project.build.directory}/app-aurora-mp-exec.jar" 
dest="${project.build.directory}/tmp"/>
                                        <delete 
file="${project.build.directory}/tmp/tomee.zip"/>
                                        <move 
file="${project.build.directory}/tomee.zip" 
tofile="${project.build.directory}/tmp/tomee.zip"/>
                                        <delete 
file="${project.build.directory}/app-aurora-mp-exec.jar"/>
                                        <zip 
basedir="${project.build.directory}/tmp" 
destfile="${project.build.directory}/app-aurora-mp-exec.jar"/>

                                    </target>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>


In "${project.build.directory}/apache-tomee" I have a modified "tomee.xml".

this maven simply changes the default tomee.xml against a modified version.

Maybe some one else have the same problem or a better solution.


Best
Ingo



Reply via email to