|
59 | 59 | <maven.compiler.source>1.8</maven.compiler.source> |
60 | 60 | <maven.compiler.target>1.8</maven.compiler.target> |
61 | 61 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 62 | + <insecure.repositories>ERROR</insecure.repositories> |
62 | 63 |
|
63 | 64 | <!-- nexus-staging-maven-plugin --> |
64 | 65 | <autoReleaseAfterClose>true</autoReleaseAfterClose> |
65 | 66 | <nexus.server.id>jboss-releases-repository</nexus.server.id> |
66 | 67 | <nexus.server.url>https://repository.jboss.org/nexus</nexus.server.url> |
67 | 68 | <nexus.snapshot.server.id>jboss-snapshots-repository</nexus.snapshot.server.id> |
68 | | - <nexus.snapshot.server.url>https://repository.jboss.org/nexus/content/repositories/snapshots/ |
69 | | - </nexus.snapshot.server.url> |
| 69 | + <nexus.snapshot.server.url>https://repository.jboss.org/nexus/content/repositories/snapshots/</nexus.snapshot.server.url> |
70 | 70 | </properties> |
71 | 71 |
|
72 | 72 |
|
|
150 | 150 |
|
151 | 151 | <build> |
152 | 152 | <plugins> |
| 153 | + <plugin> |
| 154 | + <groupId>org.apache.maven.plugins</groupId> |
| 155 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 156 | + <executions> |
| 157 | + <execution> |
| 158 | + <id>enforce-java-version</id> |
| 159 | + <goals> |
| 160 | + <goal>enforce</goal> |
| 161 | + </goals> |
| 162 | + <configuration> |
| 163 | + <rules> |
| 164 | + <bannedRepositories> |
| 165 | + <message>To build this project, don't use maven repositories over HTTP. Please use HTTPS in your settings.xml or run the build with property insecure.repositories=WARN</message> |
| 166 | + <level>${insecure.repositories}</level> |
| 167 | + <bannedRepositories> |
| 168 | + <bannedRepository>http://*</bannedRepository> |
| 169 | + </bannedRepositories> |
| 170 | + <bannedPluginRepositories> |
| 171 | + <bannedPluginRepository>http://*</bannedPluginRepository> |
| 172 | + </bannedPluginRepositories> |
| 173 | + </bannedRepositories> |
| 174 | + <requireJavaVersion> |
| 175 | + <message>To build this project JDK 11 (or greater) is required. Please install it.</message> |
| 176 | + <version>11</version> |
| 177 | + </requireJavaVersion> |
| 178 | + </rules> |
| 179 | + </configuration> |
| 180 | + </execution> |
| 181 | + </executions> |
| 182 | + </plugin> |
153 | 183 | <plugin> |
154 | 184 | <groupId>org.sonatype.plugins</groupId> |
155 | 185 | <artifactId>nexus-staging-maven-plugin</artifactId> |
|
187 | 217 |
|
188 | 218 | <pluginManagement> |
189 | 219 | <plugins> |
| 220 | + <plugin> |
| 221 | + <groupId>org.apache.maven.plugins</groupId> |
| 222 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 223 | + <version>3.0.0</version> |
| 224 | + </plugin> |
190 | 225 | <plugin> |
191 | 226 | <groupId>org.apache.maven.plugins</groupId> |
192 | 227 | <artifactId>maven-javadoc-plugin</artifactId> |
|
0 commit comments