aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/pom.xml
diff options
context:
space:
mode:
authorTal Gitelman <tg851x@intl.att.com>2017-07-30 14:40:35 +0300
committerTal Gitelman <tg851x@intl.att.com>2017-07-30 14:40:35 +0300
commitb5b5f8b39b79aeb4a3905c1e8fa49b5dfc45b670 (patch)
tree6839ece5d77d8c9ca01a8dca921a1a20b1b38082 /catalog-be/pom.xml
parent094b3a2d8a772bb0a7e13039f8045b54e33e3c8d (diff)
[sdc] - configuration files copy plug-in fixes
Change-Id: Ibe82a9adf8d2723e2bfb6d1303bf5a093111304d Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'catalog-be/pom.xml')
-rw-r--r--catalog-be/pom.xml40
1 files changed, 36 insertions, 4 deletions
diff --git a/catalog-be/pom.xml b/catalog-be/pom.xml
index 87f4011171..870bf09be6 100644
--- a/catalog-be/pom.xml
+++ b/catalog-be/pom.xml
@@ -583,7 +583,6 @@
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
-
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
@@ -682,8 +681,31 @@
</resources>
</configuration>
</execution>
+
+ <execution>
+ <id>copy-static-configuration-files</id>
+ <phase>install</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.parent.basedir}/catalog-be/src/main/resources/config</directory>
+ <includes>
+ <include>Artifact-Generator.properties</include>
+ <include>error-configuration.yaml</include>
+ <include>ecomp-error-configuration.yaml</include>
+ <include>logback.xml</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+
<execution>
- <id>copy.tosca.folder.to.os.chef</id>
+ <id>copy-tosca-folder</id>
<!-- here the phase you need -->
<phase>install</phase>
<goals>
@@ -707,18 +729,28 @@
<version>3.0.0</version>
<executions>
<execution>
- <id>clean.tosca.chef.os.folder</id>
+ <id>clean-static-files</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
-
<filesets>
+ <!-- tosca files -->
<fileset>
<directory>${project.parent.basedir}/asdctool/tosca</directory>
<followSymlinks>false</followSymlinks>
</fileset>
+ <!-- static configuration files -->
+ <fileset>
+ <directory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</directory>
+ <includes>
+ <include>Artifact-Generator.properties</include>
+ <include>error-configuration.yaml</include>
+ <include>ecomp-error-configuration.yaml</include>
+ <include>logback.xml</include>
+ </includes>
+ </fileset>
</filesets>
</configuration>
</execution>