|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!-- |
3 | 3 | Licensed to the Apache Software Foundation (ASF) under one or more |
4 | | - contributor license agreements. See the NOTICE file distributed with |
| 4 | + contributor license agreements. See the NOTICE file distributed with |
5 | 5 | this work for additional information regarding copyright ownership. |
6 | 6 | The ASF licenses this file to You under the Apache License, Version 2.0 |
7 | 7 | (the "License"); you may not use this file except in compliance with |
8 | | - the License. You may obtain a copy of the License at |
| 8 | + the License. You may obtain a copy of the License at |
9 | 9 |
|
10 | 10 | http://www.apache.org/licenses/LICENSE-2.0 |
11 | 11 |
|
|
15 | 15 | See the License for the specific language governing permissions and |
16 | 16 | limitations under the License. |
17 | 17 | --> |
18 | | - <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"> |
| 18 | + |
| 19 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 20 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 |
| 22 | + http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
19 | 23 |
|
20 | 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | + |
21 | 26 | <groupId>de.martinspielmann.wicket</groupId> |
22 | 27 | <artifactId>wicket-pwnedpasswords-validator</artifactId> |
23 | | - <packaging>jar</packaging> |
24 | 28 | <version>2.0.1-SNAPSHOT</version> |
| 29 | + <packaging>jar</packaging> |
| 30 | + |
25 | 31 | <name>wicket-pwnedpasswords-validator</name> |
26 | | - <description>A validator for Apache Wicket that checks if a given password has been pwned.</description> |
| 32 | + <description> |
| 33 | + A validator for Apache Wicket that checks if a given password has been pwned. |
| 34 | + </description> |
| 35 | + |
27 | 36 | <url>https://github.com/pingunaut/wicket-pwnedpasswords-validator</url> |
| 37 | + |
28 | 38 | <licenses> |
29 | 39 | <license> |
30 | 40 | <name>The Apache Software License, Version 2.0</name> |
31 | 41 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
32 | 42 | <distribution>repo</distribution> |
33 | 43 | </license> |
34 | 44 | </licenses> |
| 45 | + |
35 | 46 | <properties> |
| 47 | + <java.version>21</java.version> |
| 48 | + |
| 49 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 50 | + |
36 | 51 | <wicket.version>8.0.0</wicket.version> |
37 | 52 | <jetty9.version>9.2.24.v20180105</jetty9.version> |
38 | | - <log4j.version>2.6.2</log4j.version> |
39 | | - <junit.version>4.12</junit.version> |
40 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 53 | + <junit.version>4.13.2</junit.version> |
| 54 | + |
| 55 | + <maven.compiler.plugin.version>3.15.0</maven.compiler.plugin.version> |
| 56 | + <maven.surefire.plugin.version>3.2.5</maven.surefire.plugin.version> |
| 57 | + <jacoco.plugin.version>0.8.12</jacoco.plugin.version> |
| 58 | + |
41 | 59 | <!-- allowed values: R7, 1.0, 1.5, 2.0 or none --> |
42 | 60 | <wtp.version>none</wtp.version> |
43 | 61 | </properties> |
44 | 62 |
|
45 | 63 | <scm> |
46 | | - <connection>scm:git:git@github.com:pingunaut/wicket-pwnedpasswords-validator.git</connection> |
47 | | - <developerConnection>scm:git:git@github.com:pingunaut/wicket-pwnedpasswords-validator.git</developerConnection> |
48 | | - <url>https://github.com/pingunaut/wicket-pwnedpasswords-validator.git</url> |
49 | | - <tag>HEAD</tag> |
50 | | - </scm> |
| 64 | + <connection> |
| 65 | + scm:git:git@github.com:pingunaut/wicket-pwnedpasswords-validator.git |
| 66 | + </connection> |
| 67 | + <developerConnection> |
| 68 | + scm:git:git@github.com:pingunaut/wicket-pwnedpasswords-validator.git |
| 69 | + </developerConnection> |
| 70 | + <url> |
| 71 | + https://github.com/pingunaut/wicket-pwnedpasswords-validator.git |
| 72 | + </url> |
| 73 | + <tag>HEAD</tag> |
| 74 | + </scm> |
51 | 75 |
|
52 | 76 | <developers> |
53 | 77 | <developer> |
|
58 | 82 | </developers> |
59 | 83 |
|
60 | 84 | <dependencies> |
61 | | - <!-- WICKET DEPENDENCIES --> |
| 85 | + |
| 86 | + <!-- Apache Wicket --> |
62 | 87 | <dependency> |
63 | 88 | <groupId>org.apache.wicket</groupId> |
64 | 89 | <artifactId>wicket-core</artifactId> |
65 | 90 | <version>${wicket.version}</version> |
66 | 91 | </dependency> |
67 | 92 |
|
68 | | - <!-- JUNIT DEPENDENCY FOR TESTING --> |
| 93 | + <!-- JUnit --> |
69 | 94 | <dependency> |
70 | 95 | <groupId>junit</groupId> |
71 | 96 | <artifactId>junit</artifactId> |
72 | 97 | <version>${junit.version}</version> |
73 | 98 | <scope>test</scope> |
74 | 99 | </dependency> |
75 | 100 |
|
76 | | - <!-- JETTY DEPENDENCIES FOR TESTING --> |
| 101 | + <!-- Jetty --> |
77 | 102 | <dependency> |
78 | 103 | <groupId>org.eclipse.jetty.aggregate</groupId> |
79 | 104 | <artifactId>jetty-all</artifactId> |
80 | 105 | <version>${jetty9.version}</version> |
81 | 106 | <scope>test</scope> |
82 | 107 | </dependency> |
| 108 | + |
83 | 109 | </dependencies> |
| 110 | + |
84 | 111 | <build> |
| 112 | + |
85 | 113 | <resources> |
86 | 114 | <resource> |
87 | | - <filtering>false</filtering> |
88 | 115 | <directory>src/main/resources</directory> |
| 116 | + <filtering>false</filtering> |
89 | 117 | </resource> |
| 118 | + |
90 | 119 | <resource> |
91 | | - <filtering>false</filtering> |
92 | 120 | <directory>src/main/java</directory> |
| 121 | + <filtering>false</filtering> |
| 122 | + |
93 | 123 | <includes> |
94 | 124 | <include>**</include> |
95 | 125 | </includes> |
| 126 | + |
96 | 127 | <excludes> |
97 | 128 | <exclude>**/*.java</exclude> |
98 | 129 | </excludes> |
99 | 130 | </resource> |
100 | 131 | </resources> |
| 132 | + |
101 | 133 | <testResources> |
102 | 134 | <testResource> |
103 | | - <filtering>false</filtering> |
104 | 135 | <directory>src/test/resources</directory> |
| 136 | + <filtering>false</filtering> |
105 | 137 | </testResource> |
| 138 | + |
106 | 139 | <testResource> |
107 | | - <filtering>false</filtering> |
108 | 140 | <directory>src/test/java</directory> |
| 141 | + <filtering>false</filtering> |
| 142 | + |
109 | 143 | <includes> |
110 | 144 | <include>**</include> |
111 | 145 | </includes> |
| 146 | + |
112 | 147 | <excludes> |
113 | 148 | <exclude>**/*.java</exclude> |
114 | 149 | </excludes> |
115 | 150 | </testResource> |
116 | 151 | </testResources> |
| 152 | + |
117 | 153 | <plugins> |
| 154 | + |
| 155 | + <!-- Maven Compiler --> |
118 | 156 | <plugin> |
119 | 157 | <groupId>org.apache.maven.plugins</groupId> |
120 | 158 | <artifactId>maven-compiler-plugin</artifactId> |
121 | | - <version>3.15.0</version> |
122 | | - <configuration> |
123 | | - <release>21</release> |
124 | | - <source>21</source> |
125 | | - <target>21</target> |
126 | | - </configuration> |
127 | | - </plugin> |
128 | | - <plugin> |
129 | | - <groupId>org.apache.maven.plugins</groupId> |
130 | | - <artifactId>maven-release-plugin</artifactId> |
131 | | - <version>2.5.1</version> |
132 | | - </plugin> |
133 | | - <plugin> |
134 | | - <groupId>org.eclipse.jetty</groupId> |
135 | | - <artifactId>jetty-maven-plugin</artifactId> |
136 | | - <version>${jetty9.version}</version> |
| 159 | + <version>${maven.compiler.plugin.version}</version> |
| 160 | + |
137 | 161 | <configuration> |
138 | | - <systemProperties> |
139 | | - <systemProperty> |
140 | | - <name>maven.project.build.directory.test-classes</name> |
141 | | - <value>${project.build.directory}/test-classes</value> |
142 | | - </systemProperty> |
143 | | - </systemProperties> |
144 | | - <jettyXml> |
145 | | - ${project.basedir}/src/test/jetty/jetty.xml,${project.basedir}/src/test/jetty/jetty-ssl.xml,${project.basedir}/src/test/jetty/jetty-http.xml,${project.basedir}/src/test/jetty/jetty-https.xml |
146 | | - </jettyXml> |
| 162 | + <release>${java.version}</release> |
| 163 | + <source>${java.version}</source> |
| 164 | + <target>${java.version}</target> |
147 | 165 | </configuration> |
148 | 166 | </plugin> |
| 167 | + |
| 168 | + <!-- Maven Surefire --> |
149 | 169 | <plugin> |
150 | 170 | <groupId>org.apache.maven.plugins</groupId> |
151 | | - <artifactId>maven-eclipse-plugin</artifactId> |
152 | | - <version>2.9</version> |
| 171 | + <artifactId>maven-surefire-plugin</artifactId> |
| 172 | + <version>${maven.surefire.plugin.version}</version> |
| 173 | + |
153 | 174 | <configuration> |
154 | | - <downloadSources>true</downloadSources> |
155 | | - <wtpversion>${wtp.version}</wtpversion> |
| 175 | + <argLine>${surefireArgLine}</argLine> |
156 | 176 | </configuration> |
157 | 177 | </plugin> |
| 178 | + |
| 179 | + <!-- JaCoCo --> |
158 | 180 | <plugin> |
159 | 181 | <groupId>org.jacoco</groupId> |
160 | 182 | <artifactId>jacoco-maven-plugin</artifactId> |
161 | | - <version>0.8.7</version> |
| 183 | + <version>${jacoco.plugin.version}</version> |
| 184 | + |
162 | 185 | <executions> |
| 186 | + |
163 | 187 | <execution> |
164 | 188 | <id>jacoco-initialize</id> |
| 189 | + |
165 | 190 | <goals> |
166 | 191 | <goal>prepare-agent</goal> |
167 | 192 | </goals> |
168 | 193 | </execution> |
| 194 | + |
169 | 195 | <execution> |
170 | 196 | <id>jacoco-report</id> |
171 | 197 | <phase>prepare-package</phase> |
| 198 | + |
172 | 199 | <goals> |
173 | 200 | <goal>report</goal> |
174 | 201 | </goals> |
175 | 202 | </execution> |
| 203 | + |
176 | 204 | <execution> |
177 | 205 | <id>post-unit-test</id> |
178 | 206 | <phase>test</phase> |
| 207 | + |
179 | 208 | <goals> |
180 | 209 | <goal>report</goal> |
181 | 210 | </goals> |
| 211 | + |
182 | 212 | <configuration> |
183 | 213 | <dataFile>target/jacoco.exec</dataFile> |
184 | 214 | <outputDirectory>target/jacoco-ut</outputDirectory> |
185 | 215 | </configuration> |
186 | 216 | </execution> |
| 217 | + |
187 | 218 | </executions> |
| 219 | + |
188 | 220 | <configuration> |
189 | 221 | <propertyName>surefireArgLine</propertyName> |
190 | 222 | </configuration> |
191 | 223 | </plugin> |
| 224 | + |
| 225 | + <!-- Jetty Maven Plugin --> |
192 | 226 | <plugin> |
193 | | - <artifactId>maven-surefire-plugin</artifactId> |
194 | | - <version>2.21.0</version> |
| 227 | + <groupId>org.eclipse.jetty</groupId> |
| 228 | + <artifactId>jetty-maven-plugin</artifactId> |
| 229 | + <version>${jetty9.version}</version> |
| 230 | + |
195 | 231 | <configuration> |
196 | | - <argLine>${surefireArgLine}</argLine> |
| 232 | + |
| 233 | + <systemProperties> |
| 234 | + <systemProperty> |
| 235 | + <name> |
| 236 | + maven.project.build.directory.test-classes |
| 237 | + </name> |
| 238 | + <value> |
| 239 | + ${project.build.directory}/test-classes |
| 240 | + </value> |
| 241 | + </systemProperty> |
| 242 | + </systemProperties> |
| 243 | + |
| 244 | + <jettyXml> |
| 245 | + ${project.basedir}/src/test/jetty/jetty.xml, |
| 246 | + ${project.basedir}/src/test/jetty/jetty-ssl.xml, |
| 247 | + ${project.basedir}/src/test/jetty/jetty-http.xml, |
| 248 | + ${project.basedir}/src/test/jetty/jetty-https.xml |
| 249 | + </jettyXml> |
| 250 | + |
197 | 251 | </configuration> |
198 | 252 | </plugin> |
| 253 | + |
| 254 | + <!-- Maven Release Plugin --> |
| 255 | + <plugin> |
| 256 | + <groupId>org.apache.maven.plugins</groupId> |
| 257 | + <artifactId>maven-release-plugin</artifactId> |
| 258 | + <version>3.0.1</version> |
| 259 | + </plugin> |
| 260 | + |
| 261 | + <!-- Eclipse Plugin --> |
| 262 | + <plugin> |
| 263 | + <groupId>org.apache.maven.plugins</groupId> |
| 264 | + <artifactId>maven-eclipse-plugin</artifactId> |
| 265 | + <version>2.10</version> |
| 266 | + |
| 267 | + <configuration> |
| 268 | + <downloadSources>true</downloadSources> |
| 269 | + <wtpversion>${wtp.version}</wtpversion> |
| 270 | + </configuration> |
| 271 | + </plugin> |
| 272 | + |
199 | 273 | </plugins> |
| 274 | + |
200 | 275 | </build> |
| 276 | + |
201 | 277 | </project> |
0 commit comments