mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-11-28 02:11:31 +08:00
Add property to disable model caching
This is mostly for the integration tests of the Gradle Enterprise Maven extension, which heavily test dependency resolution and reuse the same GAVs in many test, e.g. a:b:1.0. It would be a lot of effort to rewrite all those tests and a shame to restart the daemon every time. So I wanted to ask if you'd consider this flag to disable the caching altogether.
This commit is contained in:
committed by
Peter Palaga
parent
b97f585c09
commit
0b55c8f3e6
@@ -163,6 +163,13 @@ public enum Environment {
|
||||
* non-native clients and is useful mostly for debugging.
|
||||
*/
|
||||
MVND_NO_DAEMON("mvnd.noDaemon", "MVND_NO_DAEMON", Boolean.FALSE, OptionType.BOOLEAN, Flags.DISCRIMINATING),
|
||||
|
||||
/**
|
||||
* If <code>true</code>, the daemon will not use its in-memory metadata cache and instead re-read the
|
||||
* metadata from the pom.xml files in the local repository. This is mostly useful for testing purposes.
|
||||
*/
|
||||
MVND_NO_MODEL_CACHE("mvnd.noModelCache", null, Boolean.FALSE, OptionType.BOOLEAN, Flags.OPTIONAL),
|
||||
|
||||
/**
|
||||
* If <code>true</code>, the daemon will be launched in debug mode with the following JVM argument:
|
||||
* <code>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000</code>; otherwise the debug argument is
|
||||
|
||||
Reference in New Issue
Block a user