I've generated a *maven-j2ee-simple application*. I'm deploying to OC4J
10.1.3, so, I've created in the ear module two files:
*
ear/src/main/application/META-INF/data-sources.xml
ear/src/main/application/META-INF/orion-application.xml*

I'm trying to apply filters in this files, but filtering isn't working, only
works with default *ear/src/main/application/META-INF/application.xml*.

       <filters>

            <filter>src/main/application/oc4j.properties</filter>

        </filters>

             <resources>

                  <resource>

                        <directory>*src*/main/application/META-INF</
directory>

                        <filtering>true</filtering>

                  </resource>

            </resources>
But only application.xml is filtered. So, I tried an alternative, setup
maven-ear-plugin:

      <build>

            <finalName>due-ear</finalName>

            <defaultGoal>package</defaultGoal>



            <plugins>

                  <plugin>

                        <artifactId>*maven*-ear-*plugin*</artifactId>

                        <configuration>

                             <filtering>true</filtering>

                             <filters>

                                 <filter>*src*
/main/application/oc4j.properties</filter>

                             </filters>
The same problem, both files aren't filtered.

-- 
"Computer science is not about computers any more than astronomy is about
telescopes." E.W. Dijkstra (1930-2002)

Reply via email to