Actualizado de Java 8 a Java 11 y recibe las siguientes advertencias para las anotaciones. Sugiera cómo resolverlo.
[WARNING] No processor claimed any of these annotations: /org.springframework.context.annotation.Primary, /org.springframework.data.annotation.Id, /org.springframework.context.annotation.ComponentScan, /org.springframework.boot.autoconfigure.SpringBootApplication, /org.springframework.boot.context.properties.ConfigurationProperties, /org.springframework.data.mongodb.repository.Query, /com.fasterxml.jackson.annotation.JsonInclude, /javax.validation.constraints.NotNull, /org.springframework.context.annotation.ImportResource, /org.springframework.web.bind.annotation.DeleteMapping, /org.springframework.web.bind.annotation.PostMappingEl linter javac tiene una serie de advertencias que son realmente extravagantes y no puede desactivarlas individualmente. Este es uno de ellos. Sugeriría usar un linter diferente.
No puede desactivar esta advertencia específica, solo puede desactivar todas las advertencias del procesador de anotaciones con el indicador -processing en -Xlint , por ejemplo.
-Xlint:all,-serial,-processing
en experto:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <showWarnings>true</showWarnings> <compilerArgs> <!-- We turn off: - `serial` because we don't use Java serialization (and all it does is stupidly complain about the serialVersionUID) - `processing` because it complains about every annotation --> <arg>-Xlint:all,-serial,-processing</arg> </compilerArgs> </configuration> </plugin> Puede ver todas las advertencias que se desactivarán buscando "warn.proc" en compiler.properties . Puede ver todas las opciones de linter con javac --help-lint .