Enable CORS support in karaf tomcat-server
[unimgr.git] / karaf / pom.xml
index eaea43a838b52acc1f2f1a396de330e335cdb1c2..1acea8e2bf20cef04ba7dc4b726ac81c028ec2b5 100644 (file)
@@ -54,7 +54,29 @@ and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
   </dependencies>
   <!-- DO NOT install or deploy the karaf artifact -->
   <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources/</directory>
+        <filtering>false</filtering>
+      </resource>
+    </resources>
     <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>process-resources</id>
+            <goals>
+              <goal>resources</goal>
+            </goals>
+            <configuration>
+                <outputDirectory>${project.build.directory}/assembly/</outputDirectory>
+                <overwrite>true</overwrite>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-deploy-plugin</artifactId>