Support Reading <configuration>
Tag from settings.xml in MavenMojoProjectParser.buildSettings()
so that config like connection timeout can be passed to rewrite-maven module
#829
Labels
Description:
Currently, the rewrite-maven module does not support server configuration details from the tag in the settings.xml file because the MavenMojoProjectParser class in the "rewrite-maven-plugin" does not read this configuration while creating the MavenSettings object before setting the MavenExecutionContextView. As a result, during runtime the operations that depend on these configurations do not function as expected, even though the "rewrite-maven" module has unit tests for it. e.g. reading timeouts from the tag.
Link to the Code:
rewrite-maven-plugin/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java
Line 663 in 7e86a02
Proposed Enhancement:
Enhance the
MavenMojoProjectParser.buildSettings()
method to read and incorporate the<configuration>
tag from thesettings.xml
file while creating the MavenSettings object. This will ensure that all server configurations, including timeouts specified in the tag, are correctly utilized at runtime.The text was updated successfully, but these errors were encountered: