From 15fac336b1dd653cf1537d5a634c58d9d86b26ae Mon Sep 17 00:00:00 2001
From: qxo <49526356@qq.com>
Date: Sat, 30 May 2020 20:33:59 +0800
Subject: [PATCH] chore(pom.xml): add compilerArg `-Xpkginfo:always` for
useIncrementalCompilation which make build fast
useIncrementalCompilation will not work for some java not compiled (package-info.java)
try `mvn package -X ` will find thest files:
ie:
```
[DEBUG] useIncrementalCompilation enabled
[DEBUG] Stale source detected: I:\github\jenkins\core\src\main\java\hudson\cli\package-info.java
[DEBUG] Stale source detected: I:\github\jenkins\core\src\main\java\hudson\os\solaris\package-info.java
[DEBUG] Stale source detected: I:\github\jenkins\core\src\main\java\hudson\cli\handlers\package-info.java
[DEBUG] Stale source detected: I:\github\jenkins\core\src\main\java\jenkins\security\s2m\package-info.java
[DEBUG] Stale source detected: I:\github\jenkins\core\src\main\java\hudson\init\package-info.java
[DEBUG] Stale source detected: I:\github\jenkins\core\src\main\java\hudson\model\labels\package-info.java
[DEBUG] Stale source detected: I:\github\jenkins\core\src\main\java\hudson\cli\declarative\package-info.java
[DEBUG] Stale source detected: I:\github\jenkins\core\src\main\java\hudson\console\package-info.java
[DEBUG] Stale source detected: I:\github\jenkins\core\src\main\java\hudson\util\jna\package-info.java
[INFO] Changes detected - recompiling the module!
```
---
pom.xml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pom.xml b/pom.xml
index f4d8981fd8..efceaa6f17 100755
--- a/pom.xml
+++ b/pom.xml
@@ -231,6 +231,12 @@ THE SOFTWARE.
true
alwaysNew
+
+
+ -Xpkginfo:always
+