I will add additional information for those who are facing this problem, using IBM Rational Application Developer (RAD) to create policies and file bindings for deployment to WebSphere Application Server (WAS).
In our case, we generated the policy binding files (policyAttachments.xml and wsPolicyServiceControl.xml) using the RAD tools for the Policy set attachments. By default, they are dumped to the META-INF folder in the root of the EAR project. If there is a convenient way to change this default behavior to always put it in the / META -INF application, I have not come across this. But the above methods work very well in RAD with m2e to run locally and create an EAR.
Here is the section of my pom that is used to copy these files:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version> <executions> <execution> <id>copy-resources</id> <phase>validate</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}\src\main\application\META-INF\</outputDirectory> <resources> <resource> <directory>${basedir}\META-INF</directory> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin>
source share