-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
99 lines (95 loc) · 4.2 KB
/
Copy pathpom.xml
File metadata and controls
99 lines (95 loc) · 4.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.sonarsource.plugins.secai</groupId>
<artifactId>secai</artifactId>
<version>1.2.0</version>
<name>SecAI</name>
<modules>
<module>SonarQubePlugin</module>
</modules>
<packaging>pom</packaging>
<build>
<plugins>
<!-- Enforce the usage of '-DskipTests'. To run the tests build the submodules -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<id>enforce-skip-tests</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>test</phase>
<configuration>
<rules>
<requireProperty>
<property>skipTests</property>
<message>The whole project can only be build with the '-DskipTests' property</message>
</requireProperty>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<!-- Assemble zip files for easier installation and docs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
<executions>
<execution>
<id>existing-sq</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>secai-for-existing-sq-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>assembly/existing-sq-zip.xml</descriptor>
</descriptors>
<outputDirectory>release</outputDirectory>
</configuration>
</execution>
<execution>
<id>new-sq</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>secai-for-new-sq-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>assembly/new-sq-zip.xml</descriptor>
</descriptors>
<outputDirectory>release</outputDirectory>
</configuration>
</execution>
<execution>
<id>docs</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>secai-docs-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>assembly/docs.xml</descriptor>
</descriptors>
<outputDirectory>release</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>