setup-java/__tests__
Parry c0786a2b6c
fix(auth): Update authentication logic in settings.xml, unit tests (#1)
* fix(auth): Update authentication logic in settings.xml, unit tests

Enhanced the logic for reading authentication information in the settings.xml file to address an issue where attempts to configure a GitHub Action for fetching packages from a repository within the same organization resulted in authentication errors.
Despite the correct configuration, the process failed with a 401 Unauthorized status during dependency download from GitHub's Maven package repository.
The error was pinpointed to a non-resolvable parent POM due to authentication failure, with an incorrect 'parent.relativePath' exacerbating the issue.

To resolve this, I made significant updates to the logic within settings.xml for better handling of authentication information.
Additionally, unit tests have been updated to reflect these changes and ensure robust verification.

The documentation and examples have also been revised to provide clearer guidance on configuring and utilizing this updated process successfully.
2024-03-01 16:16:24 +08:00
..
cache feat: implement cache-dependency-path option to control caching dependency (#499) 2023-11-22 16:43:14 +01:00
data Added Windows Arm64 Support for Windows Arm64 Runners (#595) 2024-02-27 23:11:33 -06:00
distributors Added Windows Arm64 Support for Windows Arm64 Runners (#595) 2024-02-27 23:11:33 -06:00
auth.test.ts fix(auth): Update authentication logic in settings.xml, unit tests (#1) 2024-03-01 16:16:24 +08:00
cache.test.ts feat: implement cache-dependency-path option to control caching dependency (#499) 2023-11-22 16:43:14 +01:00
cleanup-java.test.ts Add and configure ESLint and update configuration for Prettier (#458) 2023-03-09 14:49:35 +02:00
gpg.test.ts Add and configure ESLint and update configuration for Prettier (#458) 2023-03-09 14:49:35 +02:00
toolchains.test.ts Fix XML namespaces wrongly using https 2023-06-28 11:24:07 +02:00
util.test.ts Corretto toolcache folder name fix (#480) 2023-04-10 10:29:19 +02:00
verify-java.sh Revert "Revert "Add support for Oracle JDK (#401)" (#421)" (#450) 2023-02-07 16:29:21 +01:00