Fixing distribution and properties
[ccsdk/cds.git] / ms / blueprintsprocessor / application / src / main / docker / distribution.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright © 2018-2019 Bell Canada.
4   ~ Modifications Copyright © 2019 IBM.
5   ~
6   ~ Licensed under the Apache License, Version 2.0 (the "License");
7   ~ you may not use this file except in compliance with the License.
8   ~ You may obtain a copy of the License at
9   ~
10   ~     http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing, software
13   ~ distributed under the License is distributed on an "AS IS" BASIS,
14   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   ~ See the License for the specific language governing permissions and
16   ~ limitations under the License.
17   -->
18
19 <assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
20           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21           xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
22     <!-- create a tar.gz file containing the projects dependencies -->
23     <id>${assembly.id}</id>
24     <formats>
25         <format>tar.gz</format>
26     </formats>
27     <dependencySets>
28         <dependencySet>
29             <outputDirectory>opt/app/onap/lib</outputDirectory>
30             <outputFileNameMapping>${artifact.groupId}-${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
31             <excludes>
32                 <exclude>org.slf4j:slf4j-simple</exclude>
33                 <exclude>org.apache.karaf.*</exclude>
34             </excludes>
35         </dependencySet>
36     </dependencySets>
37     <fileSets>
38         <fileSet>
39             <directory>${project.basedir}/src/main/resources</directory>
40             <includes>
41                 <include>application.properties</include>
42                 <include>logback.xml</include>
43             </includes>
44             <outputDirectory>opt/app/onap/config</outputDirectory>
45             <useDefaultExcludes>true</useDefaultExcludes>
46         </fileSet>
47         <fileSet>
48             <directory>${project.basedir}/../../../components/model-catalog</directory>
49             <outputDirectory>opt/app/onap/model-catalog</outputDirectory>
50             <includes>
51                 <include>blueprint-model/service-blueprint/**</include>
52                 <include>definition-type/starter-type/**</include>
53                 <include>resource-dictionary/starter-dictionary/**</include>
54             </includes>
55             <excludes>
56                 <exclude>**/target/**</exclude>
57             </excludes>
58         </fileSet>
59         <fileSet>
60             <directory>${project.basedir}/../../../components/scripts/python</directory>
61             <outputDirectory>opt/app/onap/scripts/jython</outputDirectory>
62             <useDefaultExcludes>true</useDefaultExcludes>
63         </fileSet>
64     </fileSets>
65 </assembly>