Giter Site home page Giter Site logo

configserver's Introduction

Config Server Sample

NOTE: This project requires rabbitmq running on localhost.

Run this project as a Spring Boot app, e.g. import into IDE and run main method, or use Maven:

$ ./mvnw spring-boot:run

or

$ ./mvnw package
$ java -jar target/*.jar

It will start up on port 8888 and serve configuration data from "https://github.com/spring-cloud-samples/config-repo":

Pre-requisites

You need to be running rabbitmq locally (there is a docker-compose.yml if you would like to use that). This is to support broadcast of config changes to client apps via Spring Cloud Stream. If you want to play and don't need that feature just comment out the monitor and rabbitmq dependencies.

Resources

Path Description
/{app}/{profile} Configuration data for app in Spring profile (comma-separated).
/{app}/{profile}/{label} Add a git label
/{app}/{profile}{label}/{path} An environment-specific plain text config file (at "path")

Security

The server is not secure by default. You can add HTTP Basic authentication by including an extra dependency on Spring Security (e.g. via spring-boot-starter-security). The user name is "user" and the password is printed on the console on startup (standard Spring Boot approach), e.g.

2014-10-23 08:55:01.579  INFO 8185 --- [           main] b.a.s.AuthenticationManagerConfiguration :

Using default security password: 83805c57-8c76-4940-ae17-299359888177


There is also a password stored in a keystore in the jar file if you want to use that for a more realistic simulation of a real system. To unlock the password you need the full strength JCE extensions (download from Oracle and unpack the zip then copy the jar files to <JAVA_HOME>/jre/lib/security), and the keystore password ("foobar" stored in plain text in this README for the purposes of a demo, but in a real system you would keep it secret and only expose via environment variables). The password is bound to the app from the Spring environment key keystore.password (so an OS environment variable KEYSTORE_PASSWORD works). E.g.

$ KEYSTORE_PASSWORD=foobar java -jar target/*.jar

configserver's People

Contributors

aditya-mittal avatar jtgasper3 avatar making avatar markfisher avatar ryanjbaxter avatar spencergibb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

configserver's Issues

How can I use spring-boot-starter-security to config configserver?

First of all,I use springboot 2.1.0.RELEASE and springcloud Finchley.SR1 . According to Finchley.SR1 document,I add dependency spring-boot-starter-security and set spring.security.user.password .
but,I can visit configServer,I can't get the authentication Page .

Unable to decrypt

Posted below information to localhost:8888/encrypt with content-type text/plain

data : password
key : mysecret

Got key

AQB4ofiAUiOkFlBFY5w8IABJHhOmKeP80nCpB1Un7FL1JmtP5NVoY5BQxj1PTSkdYfSwuUkCDAti5xrvICMFjzH1NKdJKx2A78XshaB/HPed9pKe1qgckIU44miLYHrE+BXOq8HWv36iMHKK9qg5Osx0meJhUBII69q21zkxQdijcmH0AXCT82i5wc0kX2H7eeYecQWBQn/YPse/m3r8iYOWv3OM4cSurCflfct/KbGQxAjELvpEhi9i7xd19xwk2+5nkBcBBPaCkAjNAuNrsyF7cv2E3SryNrmu2pP6IDDi7U4DS5KKS8uXN1Hddjd6N5Jn50V50r8O3qeTrf5AmUuYdmBuP8PC3ZnT6LKXUJFap9u2l5WNKII0t43nmWBw26cDOv0whkXgjoAF+oEFT2FlaRwByJjbVMFZ6jcg9+iMwIh7U349waZ0m7cguwc9I5AWn/4bXieRb1rYyvxLvf/qFRuO/JvffVxyVC0fWXgOZTvv+JYDKyTY+jUJLHkaRkbT1FbnFqNoipcZ2sOGPI+OF8g+ApX6XO1VyVsoxiuddDRVwHSemlwWvsPJLGfVyQ4ZDAN6Ue7QAI3NrIcwXQsyAhcDNBmut8oSkC/uY3custaYdGWLJIRbflaZDoQ1GV8HQtnsaQlz555N4XNWQoDZVDzaOPrjZsWuJVYfpg1UJbYiOrTZyVH9/XdDUJtGJ2M=

In case of decryption using localhost:8888/decrypt with same content-type and below data

data : <key returned above>
key : mysecret

Received error ->

{
    "status": "INVALID",
    "description": "Text not encrypted with this key"
}

Not clear how Spring Cloud Stream is to be used

Hi, according to the documentation on Spring Cloud Config - Push Notifications, the way to configure this push notifications is through Spring Cloud Bus. This sample project seems to be using Spring Cloud Stream with Redis, but I can't find documentation as to how the Config Server works with Spring Cloud Stream. Would you please include that in the Readme of this project? Also, is there any Client sample project for this config server that uses Redis?
Thanks in advance

Cannot authenticate when running in Pivotal Web Services

I have an unmodified version of configserver running on PWS. If I am reading the config in application.yml correctly:


---
spring:
  profiles: cloud
eureka:
  instance:
    hostname: ${PREFIX:}${spring.application.name}.${application.domain:cfapps.io}
    nonSecurePort: 80
# no JCE in PWS
security:
  user:
    password: password

When running in PWS the password should be password.

I'm not completely sure this is necessary, but I set the environment variable SPRING_PROFILES_DEFAULT=cloud in my PWS app config.

When I run curl, I get this error:

~/s/configserver ❯❯❯ curl https://user:[email protected]/application/cloud
{"timestamp":1417193631970,"status":401,"error":"Unauthorized","message":"Bad credentials","path":"/application/cloud"}% 

spring-cloud-starter-bus-redis is error

special thanks
this is probably pom below,when i run ,the error is

 Error creating bean with name 'bindingService' defined in class path resource [org/springframework/cloud/stream/config/ChannelBindingServiceConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.springframework.cloud.stream.binder.BinderFactory]: Error creating bean with name 'binderFactory' defined in class path resource [org/springframework/cloud/stream/config/BinderFactoryConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.cloud.stream.binder.BinderTypeRegistry]: Error creating bean with name 'binderTypeRegistry' defined in class path resource [org/springframework/cloud/stream/config/BinderFactoryConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.stream.binder.BinderTypeRegistry]: Factory method 'binderTypeRegistry' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Cannot create binder factory, no `META-INF/spring.binders` resources found on the classpath; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binderTypeRegistry' defined in class path resource [org/springframework/cloud/stream/config/BinderFactoryConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.stream.binder.BinderTypeRegistry]: Factory method 'binderTypeRegistry' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Cannot create binder factory, no `META-INF/spring.binders` resources found on the classpath; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'binderFactory' defined in class path resource [org/springframework/cloud/stream/config/BinderFactoryConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.cloud.stream.binder.BinderTypeRegistry]: Error creating bean with name 'binderTypeRegistry' defined in class path resource [org/springframework/cloud/stream/config/BinderFactoryConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.stream.binder.BinderTypeRegistry]: Factory method 'binderTypeRegistry' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Cannot create binder factory, no `META-INF/spring.binders` resources found on the classpath; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binderTypeRegistry' defined in class path resource [org/springframework/cloud/stream/config/BinderFactoryConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.stream.binder.BinderTypeRegistry]: Factory method 'binderTypeRegistry' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Cannot create binder factory, no `META-INF/spring.binders` resources found on the classpath
<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-config-server</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-config-monitor</artifactId>
        </dependency>
        <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-stream-rabbit</artifactId> 
            </dependency> -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-bus-redis</artifactId>
            <version>1.1.0.BUILD-SNAPSHOT</version>
        </dependency>

Fails to start with JDK 11: java.lang.ClassNotFoundException: javax.xml.bind.ValidationException

How to reproduce:

  • clone
  • ./mvnw spring-boot:run

Result:

java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:506)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'encryptionBootstrapConfiguration': Unsatisfied dependency expressed through field 'encryptor'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.bootstrap.encrypt.EncryptionBootstrapConfiguration$RsaEncryptionConfiguration': Unsatisfied dependency expressed through field 'key'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encrypt-org.springframework.cloud.bootstrap.encrypt.KeyProperties': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:569)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:349)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1219)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:751)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
	at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:175)
	at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:98)
	at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:64)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121)
	at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:68)
	at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
	at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:337)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)
	at demo.ConfigServerApplication.main(ConfigServerApplication.java:16)
	... 6 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.bootstrap.encrypt.EncryptionBootstrapConfiguration$RsaEncryptionConfiguration': Unsatisfied dependency expressed through field 'key'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encrypt-org.springframework.cloud.bootstrap.encrypt.KeyProperties': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:569)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:349)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1219)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:372)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1023)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:207)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1128)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1056)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:566)
	... 35 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encrypt-org.springframework.cloud.bootstrap.encrypt.KeyProperties': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:207)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1128)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1056)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:566)
	... 57 more
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException
	at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:129)
	at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:96)
	at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:31)
	at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276)
	at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:248)
	at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor$LocalValidatorFactory.run(ConfigurationPropertiesBindingPostProcessor.java:452)
	at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.getValidator(ConfigurationPropertiesBindingPostProcessor.java:386)
	at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.determineValidator(ConfigurationPropertiesBindingPostProcessor.java:369)
	at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:331)
	at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:302)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1575)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
	... 66 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.ValidationException
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 79 more

Config server does not reload configuration

Hi there,

I tried configuring the server without Redis and Monitoring...

                <dependency>
                        <groupId>org.springframework.cloud</groupId>
                        <artifactId>spring-cloud-config-server</artifactId>
                </dependency>
                <!--dependency>
                        <groupId>org.springframework.cloud</groupId>
                        <artifactId>spring-cloud-config-monitor</artifactId>
                </dependency>
                <dependency>
                        <groupId>org.springframework.cloud</groupId>
                        <artifactId>spring-cloud-starter-stream-redis</artifactId>
                </dependency-->
                <dependency>
                        <groupId>org.springframework.cloud</groupId>
                        <artifactId>spring-cloud-starter-eureka</artifactId>
                </dependency>

However, any changes to the GitHub configuration repository was not picked up by the server...

Questions

can not find the latest config from svn

can not find the latest config from svn, but the /tmp/config-repo have the config file, if you delete the config-repo- , you can fetch the latest config immediately. how to solve this problem. think you very much, best wishes!

Configserver build is broken.

I have discussed this problem here: spring-cloud/spring-cloud-release#44. It's still not resolved.

In the interests of providing an example that is easily replicatable for you, I decided to try one of the examples. Downloading the current code from this project fails to build with the following error:

$ mvn clean install -U
[INFO] Scanning for projects...
Downloading: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-starter-parent/Brixton.BUILD-SNAPSHOT/maven-metadata.xml
Downloaded: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-starter-parent/Brixton.BUILD-SNAPSHOT/maven-metadata.xml (812 B at 1.7 KB/sec)
Downloading: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies/Brixton.BUILD-SNAPSHOT/maven-metadata.xml
Downloaded: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies/Brixton.BUILD-SNAPSHOT/maven-metadata.xml (810 B at 6.5 KB/sec)
Downloading: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.BUILD-SNAPSHOT/maven-metadata.xml
Downloaded: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.BUILD-SNAPSHOT/maven-metadata.xml (811 B at 5.9 KB/sec)
Downloading: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.BUILD-SNAPSHOT/spring-cloud-dependencies-parent-1.1.0.BUILD-20160308.163606-35.pom
Downloaded: http://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.BUILD-SNAPSHOT/spring-cloud-dependencies-parent-1.1.0.BUILD-20160308.163606-35.pom (7 KB at 37.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-dependencies-parent/1.1.0.RC1/spring-cloud-dependencies-parent-1.1.0.RC1.pom
Downloading: http://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-build/1.1.0.RC1/spring-cloud-build-1.1.0.RC1.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.demo:configserver:0.0.1-SNAPSHOT (/Users/me/src/examples/springCloud/configserver/pom.xml) has 11 errors
[ERROR]     Non-resolvable parent POM: Could not find artifact org.springframework.cloud:spring-cloud-dependencies-parent:pom:1.1.0.RC1 in central (http://repo.maven.apache.org/maven2) @ org.springframework.cloud:spring-cloud-stream-dependencies:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-dependencies/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-dependencies-1.0.0.BUILD-SNAPSHOT.pom, line 4, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Could not find artifact org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in central (http://repo.maven.apache.org/maven2) @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-build:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-parent:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-parent/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-parent-1.0.0.BUILD-SNAPSHOT.pom, line 8, column 10 -> [Help 2]
[ERROR]     Non-resolvable parent POM: Failure to find org.springframework.cloud:spring-cloud-dependencies-parent:pom:1.1.0.RC1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.springframework.cloud:spring-cloud-stream-dependencies:1.0.0.BUILD-SNAPSHOT, /Users/me/.m2/repository/org/springframework/cloud/spring-cloud-stream-dependencies/1.0.0.BUILD-SNAPSHOT/spring-cloud-stream-dependencies-1.0.0.BUILD-SNAPSHOT.pom, line 4, column 10 -> [Help 2]
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-config-server:jar is missing. @ line 22, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-config-monitor:jar is missing. @ line 26, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-stream-redis:jar is missing. @ line 30, column 15
[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka:jar is missing. @ line 34, column 15
[ERROR] 

This was done with Maven 3.2.2, and I do not currently have a settings.xml file.

Unable to use latest spring cloud version for config server

I am creating config-server with latest spring cloud version,
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.3</version> <relativePath/> <!-- lookup parent from repository --> </parent>

<spring-cloud.version>2020.0.1</spring-cloud.version>

we are always getting below error,

`2021-03-24 15:54:31.004 INFO 29368 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-03-24 15:54:31.021 INFO 29368 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-03-24 15:54:31.032 ERROR 29368 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Invalid config server configuration.

Action:

If you are using the git profile, you need to set a Git URI in your configuration. If you are using a native profile and have spring.cloud.config.server.bootstrap=true, you need to use a composite configuration.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.692 s
[INFO] Finished at: 2021-03-24T15:54:31+05:30
[INFO] Final Memory: 29M/107M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.4.3:run (default-cli) on project prd-config-server: Application finished with exit code: 1 -> [Help 1]
[ERROR] `

bootstarp.yml

spring:
profiles:
active: composite
cloud:
config:
server:
composite:
- type: git
uri: git_url
username: ${GIT_USER}
password: ${GIT_PASS}
search-paths: '{application}'
cloneOnStart: true
force-pull: true
order: 2

Please help us to find cause.

Unknown user/password

Hi,

I started the example as noted by running mvn spring-boot:run. The server starts and is reachable on port 8888.
When pointing my browser to http://localhost:8888 it asks for a user and password but I'm unable to detect which data to use here.
Maybe it is useful to document the user/pw combination in the README.

Config Server fails to start

I am getting this error on startup

2014-11-10 20:50:13.463  INFO 59950 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: OrRequestMatcher [requestMatchers=[Ant [pattern='/admin/beans'], Ant [pattern='/admin/beans/'], Ant [pattern='/admin/beans.*'], Ant [pattern='/admin/refresh'], Ant [pattern='/admin/refresh/'], Ant [pattern='/admin/refresh.*'], Ant [pattern='/admin/pause'], Ant [pattern='/admin/pause/'], Ant [pattern='/admin/pause.*'], Ant [pattern='/admin/archaius'], Ant [pattern='/admin/archaius/'], Ant [pattern='/admin/archaius.*'], Ant [pattern='/admin/dump'], Ant [pattern='/admin/dump/'], Ant [pattern='/admin/dump.*'], Ant [pattern='/admin/configprops'], Ant [pattern='/admin/configprops/'], Ant [pattern='/admin/configprops.*'], Ant [pattern='/admin/autoconfig'], Ant [pattern='/admin/autoconfig/'], Ant [pattern='/admin/autoconfig.*'], Ant [pattern='/admin/metrics'], Ant [pattern='/admin/metrics/'], Ant [pattern='/admin/metrics.*'], Ant [pattern='/admin/env'], Ant [pattern='/admin/env/'], Ant [pattern='/admin/env.*'], Ant [pattern='/admin/mappings'], Ant [pattern='/admin/mappings/'], Ant [pattern='/admin/mappings.*'], Ant [pattern='/admin/env'], Ant [pattern='/admin/env/'], Ant [pattern='/admin/env.*'], Ant [pattern='/admin/trace'], Ant [pattern='/admin/trace/'], Ant [pattern='/admin/trace.*'], Ant [pattern='/admin/resume'], Ant [pattern='/admin/resume/'], Ant [pattern='/admin/resume.*'], Ant [pattern='/admin/restart'], Ant [pattern='/admin/restart/'], Ant [pattern='/admin/restart.*']]], [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@5620cf50, org.springframework.security.web.context.SecurityContextPersistenceFilter@76459b4a, org.springframework.security.web.header.HeaderWriterFilter@4ab1f58a, org.springframework.security.web.authentication.logout.LogoutFilter@49c237ca, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@591572ff, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@7043c62c, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@23fe533, org.springframework.security.web.session.SessionManagementFilter@28ee31cd, org.springframework.security.web.access.ExceptionTranslationFilter@6e8e4b0b, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@16d2f5bf]
2014-11-10 20:50:13.476  INFO 59950 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: OrRequestMatcher [requestMatchers=[Ant [pattern='/**']]], [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@655dc8c, org.springframework.security.web.context.SecurityContextPersistenceFilter@35697bbd, org.springframework.security.web.header.HeaderWriterFilter@6569f8e2, org.springframework.security.web.authentication.logout.LogoutFilter@2203a0f2, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@1c3b8150, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@203ad0b0, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@755ae357, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6f026e93, org.springframework.security.web.session.SessionManagementFilter@1052f172, org.springframework.security.web.access.ExceptionTranslationFilter@530ababd, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@6ed780fe]
2014-11-10 20:50:13.666  INFO 59950 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean        : Mapping servlet: 'dispatcherServlet' to [/]
2014-11-10 20:50:13.676 ERROR 59950 --- [cat-startStop-1] org.apache.catalina.core.ContainerBase   : A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:188)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    ... 6 common frames omitted
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.addServlet(Ljava/lang/String;Ljavax/servlet/Servlet;)Ljavax/servlet/ServletRegistration$Dynamic;
    at org.springframework.boot.context.embedded.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:166)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:203)
    at org.springframework.boot.context.embedded.tomcat.ServletContextInitializerLifecycleListener.lifecycleEvent(ServletContextInitializerLifecycleListener.java:64)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 6 common frames omitted

not secured?

Hi,

I have cloned the project and started the service. But it is not secured per default (no http basic auth). But it is described in the README.md that this server is secured per default.

How can I enable the basic authentification (the bset would be only for the /admin mapping)?

Thanks

Unable to build this project.

I am unable to build this project as the POM refers to parent pom which does not exist. Can we have one which build and runs.

mvn build error on bcprov-jdk15on

Hi,

I am getting error while trying to start project.
it can not found dependency http://repo.spring.io/libs-snapshot-local/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar

I can work on and try to solve this problem
can you give me some advice?

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Config Server 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> spring-boot-maven-plugin:1.3.2.RELEASE:run (default-cli) @ configserver >>>
Downloading: http://repo.spring.io/libs-snapshot-local/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar
Downloading: http://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.603s
[INFO] Finished at: Wed Feb 17 08:57:07 EET 2016
[INFO] Final Memory: 18M/209M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project configserver: Could not resolve dependencies for project org.demo:configserver:jar:0.0.1-SNAPSHOT: Could not transfer artifact org.bouncycastle:bcprov-jdk15on:jar:1.47 from/to spring-snapshots (http://repo.spring.io/libs-snapshot-local): Failed to transfer file: http://repo.spring.io/libs-snapshot-local/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar. Return code is: 409 , ReasonPhrase:Conflict. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project configserver: Could not resolve dependencies for project org.demo:configserver:jar:0.0.1-SNAPSHOT: Could not transfer artifact org.bouncycastle:bcprov-jdk15on:jar:1.47 from/to spring-snapshots (http://repo.spring.io/libs-snapshot-local): Failed to transfer file: http://repo.spring.io/libs-snapshot-local/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar. Return code is: 409 , ReasonPhrase:Conflict.
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.demo:configserver:jar:0.0.1-SNAPSHOT: Could not transfer artifact org.bouncycastle:bcprov-jdk15on:jar:1.47 from/to spring-snapshots (http://repo.spring.io/libs-snapshot-local): Failed to transfer file: http://repo.spring.io/libs-snapshot-local/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar. Return code is: 409 , ReasonPhrase:Conflict.
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
    ... 26 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not transfer artifact org.bouncycastle:bcprov-jdk15on:jar:1.47 from/to spring-snapshots (http://repo.spring.io/libs-snapshot-local): Failed to transfer file: http://repo.spring.io/libs-snapshot-local/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar. Return code is: 409 , ReasonPhrase:Conflict.
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
    ... 27 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.bouncycastle:bcprov-jdk15on:jar:1.47 from/to spring-snapshots (http://repo.spring.io/libs-snapshot-local): Failed to transfer file: http://repo.spring.io/libs-snapshot-local/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar. Return code is: 409 , ReasonPhrase:Conflict.
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
    ... 28 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.bouncycastle:bcprov-jdk15on:jar:1.47 from/to spring-snapshots (http://repo.spring.io/libs-snapshot-local): Failed to transfer file: http://repo.spring.io/libs-snapshot-local/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar. Return code is: 409 , ReasonPhrase:Conflict.
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:951)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:939)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669)
    at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://repo.spring.io/libs-snapshot-local/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar. Return code is: 409 , ReasonPhrase:Conflict.
    at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:945)
    at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
    at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
    at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:601)
    ... 4 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.