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