spring-guides / tut-spring-security-and-angular-js

Spring Security and Angular:: A tutorial on how to use Spring Security with a single page application with various backend architectures, ranging from a simple single server to an API gateway with OAuth2 authentication.

Home Page:https://spring.io/guides/tutorials/spring-security-and-angular-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Fail :: Non-resolvable import POM @ spring cloud repos...

edwardbeckett opened this issue · comments

git clone https://github.com/spring-guides/tut-spring-security-and-angular-js && \
cd tut-spring-security-and-angular-js && \
mvn clean install

Cloning into 'tut-spring-security-and-angular-js'...
remote: Counting objects: 3306, done.
Receiving objects:  95remote: Total 3306 (delta 0), reused 0 (delta 0), pack-reused 3306 (
Receiving objects: 100% (3306/3306), 1.37 MiB | 737.00 KiB/s, done.
Resolving deltas: 100% (1170/1170), done.
Checking connectivity... done.

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: 
Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:BrixtonRC2 in http://my.repository.com/repo/.. 

As far as I can tell it works for me (and the version of Spring Cloud is "Brixton.RC2" with a period). Did you modify some poms? Are you behind a firewall?

No firewall sir... no modifications... runs okay if I import just single modules in maven but it doesn't build for me as a multi-module maven project ( reactor ) ... maybe something with the repos?

It's the double/gateway/pom.xml that's causing me an issue

I might add I'm running Artifactory with a mirror ...

  <mirrors>
      <mirror>
          <id>repo</id>
          <name>External Mirrors</name>
          <mirrorOf>!central,!snapshots,*</mirrorOf>
          <url>http://my.repo.com/repo/</url>
      </mirror>
  </mirrors>
  <repositories>
      <repository>
          <snapshots>
              <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>libs-release</name>
          <url>http://my.repo.com/libs-release</url>
      </repository>
      <repository>
          <snapshots/>
          <id>snapshots</id>
          <name>libs-snapshot</name>
          <url>http://my.repo.com/libs-snapshot</url>
      </repository>
  </repositories>
  <pluginRepositories>
      <pluginRepository>
          <snapshots>
              <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>plugins-release</name>
          <url>http://my.repo.com/plugins-release</url>
      </pluginRepository>
      <pluginRepository>
          <snapshots/>
          <id>snapshots</id>
          <name>plugins-snapshot</name>
          <url>http://my.repo.com/plugins-snapshot</url>
      </pluginRepository>
  </pluginRepositories>

Does it work if you switch off that mirror? It seems to me there must be something in your environment that prevents you from getting to the spring repos.

I'll give that a shot once I get off work ~ My repo configs are definitely suspect ~ Thanks @dsyer ...

@dsyer Brixton.RC2 wasn't resolvable even after disabling the repo mirror. I bumped the pom to Brixton.RELEASE and everything resolved fine... YMMV... (?)