Fix transformed ivysettings.xml

Fix the environment variable reference to be correctly escaped.

Closes gh-50277
This commit is contained in:
Phillip Webb
2026-05-01 17:47:05 -07:00
parent 001171f8eb
commit a5a4e218d9
@@ -68,7 +68,7 @@ public class RepositoryTransformersExtension {
if (repository.getName().startsWith("spring-commercial-")) {
String host = repository.getUrl().getHost();
hostCredentials.put(host,
new MavenCredential("${env.COMMERCIAL_REPO_USERNAME}", "${env.COMMERCIAL_REPO_PASSWORD"));
new MavenCredential("${env.COMMERCIAL_REPO_USERNAME}", "${env.COMMERCIAL_REPO_PASSWORD}"));
}
});
return transform(line, hostCredentials.entrySet(), (entry,