tags;
if (javaDocCapable != null) {
if (javaDocCapable instanceof FieldSource> fieldSource) {
@@ -307,19 +417,19 @@ private static String getTag(JavaDocCapable> javaDocCapable, String tagName) {
return null;
}
- private static final Pattern CONSTANT_PATTERN = Pattern.compile(".*static final.* ([A-Z_]+) = (.*);");
+ protected static final Pattern CONSTANT_PATTERN = Pattern.compile(".*static final.* ([A-Z_]+) = (.*);");
- private static final ToolProvider JAVAP = ToolProvider.findFirst("javap").orElseThrow();
+ protected static final ToolProvider JAVAP = ToolProvider.findFirst("javap").orElseThrow();
/**
* Builds "constant table" for one single class.
- *
+ *
* Limitations:
* - works only for single class (no inherited constants)
* - does not work for fields that are Enum.name()
* - more to come
*/
- private static Map extractConstants(Path file) {
+ protected static Map extractConstants(Path file) {
StringWriter out = new StringWriter();
JAVAP.run(new PrintWriter(out), new PrintWriter(System.err), "-constants", file.toString());
Map result = new HashMap<>();
diff --git a/maven-resolver-tools/src/main/resources/page.vm b/maven-resolver-tools/src/main/resources/configuration.md.vm
similarity index 95%
rename from maven-resolver-tools/src/main/resources/page.vm
rename to maven-resolver-tools/src/main/resources/configuration.md.vm
index 46c565de2..60e6e8112 100644
--- a/maven-resolver-tools/src/main/resources/page.vm
+++ b/maven-resolver-tools/src/main/resources/configuration.md.vm
@@ -39,10 +39,6 @@ under the License.
]]#
-#macro(yesno $val)
- #if ($val) Yes #else No #end
-#end
-
#macro(value $val)
#if ($val) `$val` #else - #end
#end
@@ -50,7 +46,7 @@ under the License.
| No | Key | Type | Description | Default Value | Since | Supports Repo ID suffix | Source |
| --- | --- | --- | --- | --- | --- | --- | --- |
#foreach($key in $keys)
-| $foreach.count. | `$key.key` | `$key.configurationType` | $key.description | #value( $key.defaultValue ) | $key.since | #yesno( $key.supportRepoIdSuffix ) | $key.configurationSource |
+| $foreach.count. | `$key.key` | `$key.configurationType` | $key.description | #value( $key.defaultValue ) | $key.since | $key.supportRepoIdSuffix | $key.configurationSource |
#end
#[[
diff --git a/maven-resolver-tools/src/main/resources/props.vm b/maven-resolver-tools/src/main/resources/configuration.properties.vm
similarity index 98%
rename from maven-resolver-tools/src/main/resources/props.vm
rename to maven-resolver-tools/src/main/resources/configuration.properties.vm
index dfa5a2b1a..33f2a5530 100644
--- a/maven-resolver-tools/src/main/resources/props.vm
+++ b/maven-resolver-tools/src/main/resources/configuration.properties.vm
@@ -43,6 +43,8 @@ props.${foreach.count}.defaultValue = ${key.defaultValue}
#if( !${key.since.empty} )
props.${foreach.count}.since = ${key.since}
#end
+#if(${key.supportRepoIdSuffix})
props.${foreach.count}.supportRepoIdSuffix = ${key.supportRepoIdSuffix}
+#end
props.${foreach.count}.configurationSource = ${key.configurationSource}
#end
diff --git a/maven-resolver-tools/src/main/resources/yaml.vm b/maven-resolver-tools/src/main/resources/configuration.yaml.vm
similarity index 97%
rename from maven-resolver-tools/src/main/resources/yaml.vm
rename to maven-resolver-tools/src/main/resources/configuration.yaml.vm
index 6c97d8722..079330684 100644
--- a/maven-resolver-tools/src/main/resources/yaml.vm
+++ b/maven-resolver-tools/src/main/resources/configuration.yaml.vm
@@ -43,6 +43,8 @@ props:
#if( !${key.since.empty} )
since: ${key.since}
#end
+ #if(${key.supportRepoIdSuffix})
supportRepoIdSuffix: ${key.supportRepoIdSuffix}
+ #end
configurationSource: ${key.configurationSource}
#end
diff --git a/pom.xml b/pom.xml
index f325acee8..ce36f4396 100644
--- a/pom.xml
+++ b/pom.xml
@@ -201,6 +201,11 @@
maven-resolver-generator-gnupg
${project.version}
+
+ org.apache.maven.resolver
+ maven-resolver-generator-sigstore
+ ${project.version}
+
org.apache.maven.resolver
maven-resolver-supplier-mvn3
@@ -291,6 +296,12 @@
${slf4jVersion}
test
+
+ org.slf4j
+ slf4j-nop
+ ${slf4jVersion}
+ test
+
com.google.jimfs
diff --git a/src/site/markdown/configuration.md b/src/site/markdown/configuration.md
index 8ca725dc4..13c94a973 100644
--- a/src/site/markdown/configuration.md
+++ b/src/site/markdown/configuration.md
@@ -22,7 +22,6 @@ under the License.
-
| No | Key | Type | Description | Default Value | Since | Supports Repo ID suffix | Source |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1. | `"aether.artifactResolver.postProcessor.trustedChecksums"` | `Boolean` | Is post processor enabled. | `false` | 1.9.0 | No | Session Configuration |