Failed Autowired of BuildProperties Spring Boot 2.1.5 & eclipse

Just run a mvn clean package and then restart the spring boot application from either Eclipse/IntelliJ.


Add/Modify at the end of pom.xml:

<build>
        <finalName>{NAME_YOUR_PROJECT}</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>build-info</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>