Problem building 12.0.4

Is anyone else seeing the following error when building 12.0.4 from the source?

[ERROR] Failed to execute goal on project keycloak-saml-as7-subsystem: Could not resolve dependencies for project org.keycloak:keycloak-saml-as7-subsystem:jar:12.0.4: Failed to collect dependencies at org.jboss.as:jboss-as-naming:jar:7.2.0.Final -> org.jboss.as:jboss-as-server:jar:7.2.0.Final -> org.jboss.as:jboss-as-domain-http-interface:jar:7.2.0.Final -> org.jboss.com.sun.httpserver:httpserver:jar:1.0.1.Final: Failed to read artifact descriptor for org.jboss.com.sun.httpserver:httpserver:jar:1.0.1.Final: Could not transfer artifact org.jboss.com.sun.httpserver:httpserver:pom:1.0.1.Final from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/, default, releases+snapshots)] -> [Help 1]

Any ideas?

Maven blocks download from http mirror.

I managed to avoid it by using a mirror in my settings.xml ($home/.m2/settings.xml) like this :

 <mirrors>
  <mirror>
   <id>jboss-public-repository-group-https</id>
   <mirrorOf>jboss-public-repository-group</mirrorOf>
   <name>Jboss public https</name>
   <url>https://repository.jboss.org/nexus/content/groups/public/</url>
   </mirror>
 </mirrors>

There may be a better way.

1 Like

@micedre this worked (Thank you!), but I’m left wondering why this is a problem, and if the maintainers are aware of this. Is there a way in the pom to prevent this kind of issue?

jFTR – here’s a JIRA for tracking this issue: https://issues.redhat.com/browse/KEYCLOAK-17812.