quarkus-maven-plugin runs native building even if the profile is commented out
### Describe the bug

It comes across 
- https://github.com/apache/camel-quarkus/issues/5180

The `native` profile is commented out but quarkus build is still running the graal native build. After investigating, it seems related to https://github.com/quarkusio/quarkus/blob/3747c0d85b68ca33b58871d9cf3b2d4b3bb304a4/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java#L121-L123

I think it should check `setPackageTypeSystemPropertyIfNativeProfileEnabled` is **true**. 

### Expected behavior

No running the native build.

### Actual behavior

The native build is still running.

### How to Reproduce?

_No response_

### Output of `uname -a` or `ver`

_No response_

### Output of `java -version`

_No response_

### GraalVM version (if different from Java)

_No response_

### Quarkus version or git rev

3.2.4.Final

### Build tool (ie. output of `mvnw --version` or `gradlew --version`)

_No response_

### Additional information

_No response_
diff --git a/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java
index 0c7146ddb16..fefb7457970 100644
--- a/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java
+++ b/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java
@@ -118,7 +118,7 @@ protected void doExecute() throws MojoExecutionException {
             // Essentially what this does is to enable the native package type even if a different package type is set
             // in application properties. This is done to preserve what users expect to happen when
             // they execute "mvn package -Dnative" even if quarkus.package.type has been set in application.properties
-            if (!setPackageTypeSystemPropertyIfNativeProfileEnabled()) {
+            if (setPackageTypeSystemPropertyIfNativeProfileEnabled()) {
                 propertiesToClear.add(PACKAGE_TYPE_PROP);
             }
 
diff --git a/devtools/maven/src/main/java/io/quarkus/maven/TrackConfigChangesMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/TrackConfigChangesMojo.java
index e721cf89e80..b8b43e94db0 100644
--- a/devtools/maven/src/main/java/io/quarkus/maven/TrackConfigChangesMojo.java
+++ b/devtools/maven/src/main/java/io/quarkus/maven/TrackConfigChangesMojo.java
@@ -132,7 +132,9 @@ protected void doExecute() throws MojoExecutionException, MojoFailureException {
         } catch (Exception any) {
             throw new MojoExecutionException("Failed to bootstrap Quarkus application", any);
         } finally {
-            System.clearProperty(PACKAGE_TYPE_PROP);
+            if (clearPackageTypeSystemProperty) {
+                System.clearProperty(PACKAGE_TYPE_PROP);
+            }
             Thread.currentThread().setContextClassLoader(originalCl);
             if (deploymentClassLoader != null) {
                 deploymentClassLoader.close();
['devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java', 'devtools/maven/src/main/java/io/quarkus/maven/TrackConfigChangesMojo.java']