Skip to content

Commit 251e8b2

Browse files
committed
Update instruction to add the configuration processor with Maven
Closes gh-24498
1 parent bf1619e commit 251e8b2

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/appendix-configuration-metadata.adoc

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -713,30 +713,6 @@ With Maven the dependency should be declared as optional, as shown in the follow
713713
</dependency>
714714
----
715715

716-
If you have defined `@ConfigurationProperties` in your application, make sure to configure the `spring-boot-maven-plugin` to prevent the `repackage` goal from adding the dependency into the fat jar:
717-
718-
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
719-
----
720-
<project>
721-
<build>
722-
<plugins>
723-
<plugin>
724-
<groupId>org.springframework.boot</groupId>
725-
<artifactId>spring-boot-maven-plugin</artifactId>
726-
<configuration>
727-
<excludes>
728-
<exclude>
729-
<groupId>org.springframework.boot</groupId>
730-
<artifactId>spring-boot-configuration-processor</artifactId>
731-
</exclude>
732-
</excludes>
733-
</configuration>
734-
</plugin>
735-
</plugins>
736-
</build>
737-
</project>
738-
----
739-
740716
With Gradle, the dependency should be declared in the `annotationProcessor` configuration, as shown in the following example:
741717

742718
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]

0 commit comments

Comments
 (0)