Copyright Check Script
[cps.git] / checkstyle / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Copyright (C) 2020 Pantheon.tech
5   Modifications Copyright (C) 2022 Nordix Foundation
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22
23 <project xmlns="http://maven.apache.org/POM/4.0.0"
24          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26     <modelVersion>4.0.0</modelVersion>
27     <groupId>org.onap.cps</groupId>
28     <artifactId>checkstyle</artifactId>
29     <version>3.0.0-SNAPSHOT</version>
30
31     <profiles>
32         <profile>
33             <id>Windows</id>
34             <activation>
35                 <os>
36                     <family>Windows</family>
37                 </os>
38             </activation>
39             <properties>
40                 <script.executor>python</script.executor>
41             </properties>
42         </profile>
43         <profile>
44             <id>unix</id>
45             <activation>
46                 <os>
47                     <family>unix</family>
48                 </os>
49             </activation>
50             <properties>
51                 <script.executor>python3</script.executor>
52             </properties>
53         </profile>
54     </profiles>
55
56     <properties>
57         <nexusproxy>https://nexus.onap.org</nexusproxy>
58         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
59         <sonar.skip>true</sonar.skip>
60         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
61     </properties>
62
63     <distributionManagement>
64         <repository>
65             <id>ecomp-releases</id>
66             <name>ECOMP Release Repository</name>
67             <url>${nexusproxy}${releaseNexusPath}</url>
68         </repository>
69         <snapshotRepository>
70             <id>ecomp-snapshots</id>
71             <name>ECOMP Snapshot Repository</name>
72             <url>${nexusproxy}${snapshotNexusPath}</url>
73         </snapshotRepository>
74     </distributionManagement>
75     <build>
76         <plugins>
77             <plugin>
78                 <groupId>org.codehaus.mojo</groupId>
79                 <artifactId>exec-maven-plugin</artifactId>
80                 <version>1.6.0</version>
81                 <executions>
82                     <execution>
83                         <id>copyright-check</id>
84                         <phase>verify</phase>
85                         <goals>
86                             <goal>exec</goal>
87                         </goals>
88                         <configuration>
89                             <executable>${script.executor}</executable>
90                             <workingDirectory>../checkstyle/src/main/</workingDirectory>
91                             <arguments>
92                                 <argument>CopyrightCheck.py</argument>
93                                 <argument>resources/project-committers-config.csv</argument>
94                                 <argument>resources/copyright-template.txt</argument>
95                                 <argument>resources/ignore-files-config.csv</argument>
96                             </arguments>
97                         </configuration>
98                     </execution>
99                 </executions>
100             </plugin>
101         </plugins>
102     </build>
103 </project>