Skip to content

Commit

Permalink
fixed CompatibilityVerifierAutoConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Jun 6, 2024
1 parent d567e08 commit f8f23d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@

<!-- Plugin versions -->
<spring-boot-maven-plugin.version>${spring-boot.version}</spring-boot-maven-plugin.version>
<maven-shade-plugin.version>3.5.3</maven-shade-plugin.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -807,6 +808,11 @@
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@ private static AnnotationConfigApplicationContext commonContext(
ctx.register(EsClient.class);
ctx.register(DatasetJsonConverter.class);

// ignore error: org.springframework.beans.factory.BeanCreationException: Error creating bean
// with name 'compositeCompatibilityVerifier'
((DefaultListableBeanFactory) ctx.getBeanFactory())
.destroySingleton(
"org.springframework.cloud.configuration.CompatibilityVerifierAutoConfiguration");

if (configuration.isIndexClb()) {
ctx.register(ChecklistbankPersistenceServiceImpl.class);
}
Expand Down Expand Up @@ -153,6 +147,7 @@ private static AnnotationConfigApplicationContext commonContext(
configuration.getClbDb().getConnectionTimeout())
.put("indexing.stopAfter", configuration.getStopAfter())
.put("indexing.pageSize", configuration.getPageSize())
.put("spring.cloud.compatibility-verifier.enabled", "false")
.build()));
ctx.refresh();
ctx.start();
Expand Down

0 comments on commit f8f23d2

Please sign in to comment.