-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
157 lines (139 loc) · 7.39 KB
/
pom.xml
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples</artifactId>
<version>3.1.5-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>hook-samples/delete-non-resolved-module-comments</module>
<module>hook-samples/delete-work-records</module>
<module>hook-samples/module-save-time-logger</module>
<module>hook-samples/only-assignee-can-delete</module>
<module>hook-samples/plan-save</module>
<module>hook-samples/single-assignee</module>
<module>hook-samples/testrun</module>
<module>hook-samples/title-length-check</module>
<module>hook-samples-osgi/delete-non-resolved-module-comments</module>
<module>hook-samples-guice/delete-non-resolved-module-comments</module>
</modules>
<properties>
<ch.sbb.polarion.extension.interceptor-manager.version>3.3.0</ch.sbb.polarion.extension.interceptor-manager.version>
<interceptor-manager.artifactId>ch.sbb.polarion.extension.interceptor-manager</interceptor-manager.artifactId>
<hooks.folder.name>hooks</hooks.folder.name>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<polarion.version>2404</polarion.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
<!-- Maven plugins -->
<maven-clean-plugin.version>3.4.0</maven-clean-plugin.version>
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version>
<!-- Others -->
<jetbrains.api.version>24.0.1</jetbrains.api.version>
<!-- Manifest entries -->
<maven-jar-plugin.Manifest-Version>1.0</maven-jar-plugin.Manifest-Version>
<maven-jar-plugin.Bundle-ManifestVersion>2</maven-jar-plugin.Bundle-ManifestVersion>
<maven-jar-plugin.Bundle-Build-Timestamp>${maven.build.timestamp}</maven-jar-plugin.Bundle-Build-Timestamp>
<!--suppress UnresolvedMavenProperty -->
<maven-jar-plugin.Hook-Version>${project.artifact.selectedVersion.majorVersion}.${project.artifact.selectedVersion.minorVersion}.${project.artifact.selectedVersion.incrementalVersion}</maven-jar-plugin.Hook-Version>
<maven-jar-plugin.Automatic-Module-Name/>
<maven-jar-plugin.Extension-Context/>
<target.hooks.directory>${env.POLARION_HOME}/polarion/extensions/${interceptor-manager.artifactId}/eclipse/plugins/${hooks.folder.name}</target.hooks.directory>
</properties>
<profiles>
<profile>
<id>install-to-local-polarion</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin.version}</version>
<configuration>
<filesets>
<fileset>
<directory>${target.hooks.directory}</directory>
<includes>
<include>*${maven-jar-plugin.Extension-Context}*.jar</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
<executions>
<execution>
<id>copy-to-local-polarion</id>
<phase>install</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
</artifactItem>
</artifactItems>
<outputDirectory>${target.hooks.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>${interceptor-manager.artifactId}</artifactId>
<version>${ch.sbb.polarion.extension.interceptor-manager.version}</version>
<scope>provided</scope>
</dependency>
<!-- Others -->
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>${jetbrains.api.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Manifest-Version>${maven-jar-plugin.Manifest-Version}</Manifest-Version>
<Bundle-ManifestVersion>${maven-jar-plugin.Bundle-ManifestVersion}</Bundle-ManifestVersion>
<Automatic-Module-Name>${maven-jar-plugin.Automatic-Module-Name}</Automatic-Module-Name>
<Hook-Version>${maven-jar-plugin.Hook-Version}</Hook-Version>
<Bundle-Build-Timestamp>${maven-jar-plugin.Bundle-Build-Timestamp}</Bundle-Build-Timestamp>
<Extension-Context>${maven-jar-plugin.Extension-Context}</Extension-Context>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>