|
2 | 2 | <modelVersion>4.0.0</modelVersion>
|
3 | 3 |
|
4 | 4 | <groupId>org.sentrysoftware</groupId>
|
5 |
| - <artifactId>MYARTIFACT</artifactId> |
6 |
| - <name>MY PROJECT</name> |
7 |
| - <version>0.1.00-SNAPSHOT</version> |
8 |
| - <description>SOME DESCRIPTION</description> |
9 |
| - <packaging>jar</packaging> |
| 5 | + <artifactId>http</artifactId> |
| 6 | + <name>HTTP Java Client</name> |
| 7 | + <version>1.0.00-SNAPSHOT</version> |
| 8 | + <description>HTTP Client for Java</description> |
| 9 | + <packaging>jar</packaging> |
10 | 10 |
|
11 | 11 | <organization>
|
12 | 12 | <name>Sentry Software</name>
|
13 | 13 | <url>https://sentrysoftware.com</url>
|
14 | 14 | </organization>
|
15 | 15 |
|
16 |
| - <url>https://github.com/sentrysoftware/MYREPO</url> |
| 16 | + <url>https://sentrysoftware.github.io/http</url> |
17 | 17 | <inceptionYear>2023</inceptionYear>
|
18 | 18 |
|
19 | 19 | <distributionManagement>
|
|
37 | 37 |
|
38 | 38 | <issueManagement>
|
39 | 39 | <system>GitHub</system>
|
40 |
| - <url>https://github.com/sentrysoftware/MYREPO/issues/</url> |
| 40 | + <url>https://github.com/sentrysoftware/http/issues/</url> |
41 | 41 | </issueManagement>
|
42 | 42 |
|
43 | 43 | <scm>
|
44 |
| - <connection>scm:git:https://github.com/sentrysoftware/MYREPO.git</connection> |
45 |
| - <url>https://github.com/sentrysoftware/MYREPO</url> |
| 44 | + <connection>scm:git:https://github.com/sentrysoftware/http.git</connection> |
| 45 | + <url>https://github.com/sentrysoftware/http</url> |
46 | 46 | <tag>HEAD</tag>
|
47 | 47 | </scm>
|
48 | 48 |
|
49 | 49 | <developers>
|
50 | 50 | <developer>
|
51 |
| - <name>MY NAME (@MY_ID)</name> |
52 |
| - <email>MYNAME@sentrysoftware.com</email> |
| 51 | + <name>Bertrand Martin (@bertysentry)</name> |
| 52 | + <email>bertrand@sentrysoftware.com</email> |
53 | 53 | <roles>
|
54 |
| - <role>Project founder</role> |
| 54 | + <role>maintainer</role> |
| 55 | + </roles> |
| 56 | + </developer> |
| 57 | + <developer> |
| 58 | + <name>Nassim Boutekedjiret (@NassimBtk)</name> |
| 59 | + |
| 60 | + <roles> |
| 61 | + <role>maintainer</role> |
| 62 | + </roles> |
| 63 | + </developer> |
| 64 | + <developer> |
| 65 | + <name>Kawtar Bakour (@KawtarBK9)</name> |
| 66 | + |
| 67 | + <roles> |
| 68 | + <role>maintainer</role> |
| 69 | + </roles> |
| 70 | + </developer> |
| 71 | + <developer> |
| 72 | + <name>Elyes Cherfa (@CherfaElyes)</name> |
| 73 | + |
| 74 | + <roles> |
| 75 | + <role>maintainer</role> |
55 | 76 | </roles>
|
56 | 77 | </developer>
|
57 | 78 | </developers>
|
58 | 79 |
|
59 | 80 | <properties>
|
60 |
| - <!-- Java 11 --> |
61 |
| - <maven.compiler.release>11</maven.compiler.release> |
| 81 | + <!-- Java 8 --> |
| 82 | + <maven.compiler.release></maven.compiler.release> |
62 | 83 |
|
63 | 84 | <!-- UTF-8 -->
|
64 | 85 | <project.build.encoding>UTF-8</project.build.encoding>
|
|
93 | 114 | <artifactId>junit-jupiter-engine</artifactId>
|
94 | 115 | <scope>test</scope>
|
95 | 116 | </dependency>
|
| 117 | + <dependency> |
| 118 | + <groupId>org.junit.jupiter</groupId> |
| 119 | + <artifactId>junit-jupiter-params</artifactId> |
| 120 | + <scope>test</scope> |
| 121 | + </dependency> |
96 | 122 | </dependencies>
|
97 | 123 |
|
98 | 124 | <build>
|
|
107 | 133 | <version>3.6.3</version>
|
108 | 134 | <configuration>
|
109 | 135 | <detectJavaApiLink>false</detectJavaApiLink>
|
110 |
| - <source>${maven.compiler.release}</source> |
| 136 | + <release>8</release> |
111 | 137 | <show>public</show>
|
112 | 138 | <notimestamp>true</notimestamp>
|
| 139 | + <failOnError>false</failOnError> |
| 140 | + <sourceFileIncludes> |
| 141 | + <include>org/sentrysoftware/http/HttpClient.java</include> |
| 142 | + <include>org/sentrysoftware/http/HttpResponse.java</include> |
| 143 | + <include>org/sentrysoftware/http/ProtocolOverridingSSLSocketFactory.java</include> |
| 144 | + </sourceFileIncludes> |
| 145 | + <sourcepath>${basedir}/src/main/java</sourcepath> |
113 | 146 | </configuration>
|
114 | 147 | </plugin>
|
115 | 148 |
|
|
123 | 156 | <plugin>
|
124 | 157 | <artifactId>maven-compiler-plugin</artifactId>
|
125 | 158 | <version>3.12.1</version>
|
| 159 | + <executions> |
| 160 | + <execution> |
| 161 | + <id>compile-java-21</id> |
| 162 | + <phase>compile</phase> |
| 163 | + <goals> |
| 164 | + <goal>compile</goal> |
| 165 | + </goals> |
| 166 | + <configuration> |
| 167 | + <release>17</release> |
| 168 | + <compileSourceRoots> |
| 169 | + <compileSourceRoot>${basedir}/src/main/java21</compileSourceRoot> |
| 170 | + </compileSourceRoots> |
| 171 | + <multiReleaseOutput>false</multiReleaseOutput> |
| 172 | + <outputDirectory>${project.build.outputDirectory}/META-INF/versions/21</outputDirectory> |
| 173 | + </configuration> |
| 174 | + </execution> |
| 175 | + </executions> |
126 | 176 | </plugin>
|
127 | 177 |
|
128 | 178 | <!-- source -->
|
|
183 | 233 | <artifactId>maven-javadoc-plugin</artifactId>
|
184 | 234 | <executions>
|
185 | 235 | <execution>
|
186 |
| - <id>attach-javadocs</id> |
| 236 | + <id>attach-javadocs</id> |
187 | 237 | <goals>
|
188 | 238 | <goal>jar</goal>
|
189 | 239 | </goals>
|
|
195 | 245 | <plugin>
|
196 | 246 | <artifactId>maven-surefire-plugin</artifactId>
|
197 | 247 | <version>3.2.3</version>
|
| 248 | + <configuration> |
| 249 | + <argLine> |
| 250 | + --add-exports java.base/sun.net.www.protocol.http=ALL-UNNAMED |
| 251 | + --add-exports java.base/sun.security.ssl=ALL-UNNAMED |
| 252 | + </argLine> |
| 253 | + </configuration> |
198 | 254 | </plugin>
|
199 | 255 |
|
200 | 256 | <!-- site -->
|
|
214 | 270 | <plugin>
|
215 | 271 | <artifactId>maven-jar-plugin</artifactId>
|
216 | 272 | <version>3.3.0</version>
|
| 273 | + <configuration> |
| 274 | + <archive> |
| 275 | + <manifestEntries> |
| 276 | + <Add-Opens>java.base/java.lang java.base/java.util java.base/sun.net.www.protocol.http java.base/sun.security.ssl</Add-Opens> |
| 277 | + <Multi-Release>true</Multi-Release> |
| 278 | + </manifestEntries> |
| 279 | + </archive> |
| 280 | + </configuration> |
217 | 281 | </plugin>
|
218 | 282 |
|
219 | 283 | <!-- install -->
|
|
259 | 323 | <linkXref>true</linkXref>
|
260 | 324 | <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
|
261 | 325 | <minimumTokens>50</minimumTokens>
|
262 |
| - <targetJdk>${maven.compiler.release}</targetJdk> |
| 326 | + <targetJdk>8</targetJdk> |
263 | 327 | </configuration>
|
264 | 328 | </plugin>
|
265 | 329 |
|
|
321 | 385 |
|
322 | 386 | <profiles>
|
323 | 387 |
|
324 |
| - <!-- Profile for releasing the project --> |
| 388 | + <!-- Profile for releasing the project --> |
325 | 389 | <profile>
|
326 | 390 | <id>release</id>
|
327 | 391 | <build>
|
|
0 commit comments