Fix: Run both sonar and clm scans in parallel
[ccsdk/cds.git] / ms / py-executor / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright © 2018-2019 AT&T Intellectual Property.
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 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18     <modelVersion>4.0.0</modelVersion>
19
20     <parent>
21         <groupId>org.onap.ccsdk.cds</groupId>
22         <artifactId>cds-ms</artifactId>
23         <version>1.6.0-SNAPSHOT</version>
24     </parent>
25
26     <artifactId>py-executor</artifactId>
27
28     <name>MS Python Executor</name>
29     <description>Micro-service providing python environment with gRPC binding for python script execution</description>
30
31     <properties>
32         <image.name>onap/ccsdk-py-executor</image.name>
33         <sonar.skip>true</sonar.skip>
34     </properties>
35
36     <build>
37         <plugins>
38             <plugin>
39                 <artifactId>maven-resources-plugin</artifactId>
40                 <version>2.6</version>
41                 <executions>
42                     <execution>
43                         <id>copy-dockerfile</id>
44                         <goals>
45                             <goal>copy-resources</goal>
46                         </goals>
47                         <phase>validate</phase>
48                         <configuration>
49                             <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
50                             <resources>
51                                 <resource>
52                                     <directory>docker</directory>
53                                     <includes>
54                                         <include>Dockerfile</include>
55                                         <include>start.sh</include>
56                                     </includes>
57                                     <filtering>true</filtering>
58                                 </resource>
59                             </resources>
60                         </configuration>
61                     </execution>
62                 </executions>
63             </plugin>
64             <plugin>
65                 <artifactId>maven-assembly-plugin</artifactId>
66                 <version>3.1.0</version>
67                 <configuration>
68                     <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
69                     <descriptors>
70                         <descriptor>docker/distribution.xml</descriptor>
71                     </descriptors>
72                     <tarLongFileMode>posix</tarLongFileMode>
73                 </configuration>
74                 <executions>
75                     <execution>
76                         <id>${assembly.id}</id>
77                         <phase>package</phase>
78                         <goals>
79                             <goal>single</goal>
80                         </goals>
81                     </execution>
82                 </executions>
83             </plugin>
84             <plugin>
85                 <groupId>org.codehaus.gmaven</groupId>
86                 <artifactId>groovy-maven-plugin</artifactId>
87                 <version>2.1.1</version>
88                 <executions>
89                     <execution>
90                         <phase>validate</phase>
91                         <goals>
92                             <goal>execute</goal>
93                         </goals>
94                         <configuration>
95                             <source>${basedir}/../../TagVersion.groovy</source>
96                         </configuration>
97                     </execution>
98                 </executions>
99             </plugin>
100         </plugins>
101     </build>
102
103     <profiles>
104         <profile>
105             <id>docker</id>
106             <build>
107                 <plugins>
108                     <plugin>
109                         <groupId>io.fabric8</groupId>
110                         <artifactId>docker-maven-plugin</artifactId>
111                         <version>0.34.0</version>
112                         <inherited>false</inherited>
113                         <configuration>
114                             <images>
115                                 <image>
116                                     <name>${image.name}</name>
117                                     <build>
118                                         <cleanup>try</cleanup>
119                                         <noCache>true</noCache>
120                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
121                                         <tags>
122                                             <tag>${project.docker.latestminortag.version}</tag>
123                                             <tag>${project.docker.latestfulltag.version}</tag>
124                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
125                                         </tags>
126                                     </build>
127                                 </image>
128                             </images>
129                             <verbose>${docker.verbose}</verbose>
130                             <skipPush>${docker.skip.push}</skipPush>
131                         </configuration>
132                         <executions>
133                             <execution>
134                                 <id>build-push-images</id>
135                                 <goals>
136                                     <goal>build</goal>
137                                     <goal>push</goal>
138                                 </goals>
139                             </execution>
140                         </executions>
141                     </plugin>
142                 </plugins>
143             </build>
144         </profile>
145     </profiles>
146 </project>