Repository: quarkusio/quarkus
Issue: Live Coding (Regression): Warnings when the changing code contains `@ConfigProperty`

## Describe the bug
Using DEV mode and live coding activated, given my resource as:

```
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.eclipse.microprofile.config.inject.ConfigProperty;

@Path("/hello")
public class GreetingResource {

    public static final String PROPERTY = "custom.property.name";

    @ConfigProperty(name = PROPERTY)
    String name;

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String sayHello() {
        return "Hello, I'm " + name;
    }
}
```

When I run my Quarkus app in DEV mode: `mvn quarkus:dev`.
And update anything in the GreetingResource, for example, from "Hello" to "Hi", the console prints the following warnings when the changes are detected: 

```
 --/ __ \\/ / / / _ | / _ \\/ //_/ / / / __/ 
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\\ \\   
--\\___\\_\\____/_/ |_/_/|_/_/|_|\\____/___/   
2021-06-02 07:49:13,913 INFO  [io.quarkus] (Quarkus Main Thread) getting-started 1.0.0-SNAPSHOT on JVM (powered by Quarkus 999-SNAPSHOT) started in 1.485s. Listening on: http://localhost:8080
2021-06-02 07:49:13,936 INFO  [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2021-06-02 07:49:13,937 INFO  [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy, smallrye-context-propagation]
2021-06-02 07:49:29,055 INFO  [io.qua.dep.dev.RuntimeUpdatesProcessor] (vert.x-worker-thread-0) Changed source files detected, recompiling GreetingResource.java
2021-06-02 07:49:29,478 WARN  [io.qua.dep.dev.JavaCompilationProvider] (vert.x-worker-thread-0) unknown enum constant org.osgi.annotation.bundle.Requirement.Resolution.OPTIONAL
  reason: class file for org.osgi.annotation.bundle.Requirement$Resolution not found, line -1 in [unknown source]
2021-06-02 07:49:29,480 WARN  [io.qua.dep.dev.JavaCompilationProvider] (vert.x-worker-thread-0) unknown enum constant org.osgi.annotation.bundle.Requirement.Resolution.OPTIONAL
  reason: class file for org.osgi.annotation.bundle.Requirement$Resolution not found, line -1 in [unknown source]
2021-06-02 07:49:29,480 WARN  [io.qua.dep.dev.JavaCompilationProvider] (vert.x-worker-thread-0) unknown enum constant org.osgi.annotation.bundle.Requirement.Resolution.OPTIONAL
  reason: class file for org.osgi.annotation.bundle.Requirement$Resolution not found, line -1 in [unknown source]
2021-06-02 07:49:29,488 INFO  [io.quarkus] (Quarkus Main Thread) getting-started stopped in 0.003s
```

The warnings are unexpected as far I can tell.
Moreover, no warnings are thrown if we don't use the `@ConfigProperty` annotation.

## Environment (please complete the following information):

### GraalVM version (if different from Java)

### Quarkus version or git rev
2.X and 999-SNAPSHOT

## Additional context
These warnings were not printed using the Quarkus version 1.13.6.Final.


Changed files:
core/deployment/src/main/java/io/quarkus/deployment/dev/JavaCompilationProvider.java

diff --git a/core/deployment/src/main/java/io/quarkus/deployment/dev/JavaCompilationProvider.java b/core/deployment/src/main/java/io/quarkus/deployment/dev/JavaCompilationProvider.java
index 2346fba5cbf..487a874b6f9 100644
--- a/core/deployment/src/main/java/io/quarkus/deployment/dev/JavaCompilationProvider.java
+++ b/core/deployment/src/main/java/io/quarkus/deployment/dev/JavaCompilationProvider.java
@@ -34,6 +34,7 @@ public class JavaCompilationProvider implements CompilationProvider {
     // -parameters is used to generate metadata for reflection on method parameters
     // this is useful when people using debuggers against their hot-reloaded app
     private static final Set<String> COMPILER_OPTIONS = new HashSet<>(Arrays.asList("-g", "-parameters"));
+    private static final Set<String> IGNORE_NAMESPACES = new HashSet<>(Collections.singletonList("org.osgi"));
 
     JavaCompiler compiler;
     StandardJavaFileManager fileManager;
@@ -74,17 +75,10 @@ public void compile(Set<File> filesToCompile, Context context) {
                 throw new RuntimeException("Compilation failed" + diagnostics.getDiagnostics());
             }
 
-            for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) {
-                log.logf(diagnostic.getKind() == Diagnostic.Kind.ERROR ? Logger.Level.ERROR : Logger.Level.WARN,
-                        "%s, line %d in %s", diagnostic.getMessage(null), diagnostic.getLineNumber(),
-                        diagnostic.getSource() == null ? "[unknown source]" : diagnostic.getSource().getName());
-            }
+            logDiagnostics(diagnostics);
+
             if (!fileManagerDiagnostics.getDiagnostics().isEmpty()) {
-                for (Diagnostic<? extends JavaFileObject> diagnostic : fileManagerDiagnostics.getDiagnostics()) {
-                    log.logf(diagnostic.getKind() == Diagnostic.Kind.ERROR ? Logger.Level.ERROR : Logger.Level.WARN,
-                            "%s, line %d in %s", diagnostic.getMessage(null), diagnostic.getLineNumber(),
-                            diagnostic.getSource() == null ? "[unknown source]" : diagnostic.getSource().getName());
-                }
+                logDiagnostics(fileManagerDiagnostics);
                 fileManager.close();
                 fileManagerDiagnostics = null;
                 fileManager = null;
@@ -117,6 +111,28 @@ public void close() throws IOException {
         }
     }
 
+    private void logDiagnostics(final DiagnosticCollector<JavaFileObject> diagnostics) {
+        for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) {
+            Logger.Level level = diagnostic.getKind() == Diagnostic.Kind.ERROR ? Logger.Level.ERROR : Logger.Level.WARN;
+            String message = diagnostic.getMessage(null);
+            if (level.equals(Logger.Level.WARN) && ignoreWarningForNamespace(message)) {
+                continue;
+            }
+
+            log.logf(level, "%s, line %d in %s", message, diagnostic.getLineNumber(),
+                    diagnostic.getSource() == null ? "[unknown source]" : diagnostic.getSource().getName());
+        }
+    }
+
+    private static boolean ignoreWarningForNamespace(String message) {
+        for (String ignoreNamespace : IGNORE_NAMESPACES) {
+            if (message.contains(ignoreNamespace)) {
+                return true;
+            }
+        }
+        return false;
+    }
+
     static class RuntimeUpdatesClassVisitor extends ClassVisitor {
         private final PathsCollection sourcePaths;
         private final String classesPath;