English | 简体中文
Standalone Repository: https://github.com/nacos-group/nacos-api-legacy-adapter
This module is a compatibility layer for legacy HTTP APIs, providing compatible implementations of legacy v1/v2 interfaces to support old clients or callers that have not yet been migrated after Nacos upgrades.
Usage Instructions:
- This module is only intended for temporary use by users who urgently need legacy APIs or are in the process of migrating old clients.
- There is no guarantee that future Nacos versions will retain or continue to support this module. It is recommended to migrate to the new version APIs and clients as soon as possible.
- Environment: JDK 17+, Maven 3.6+
- Version Alignment: The
nacos.versioninpom.xmlmust match the target Nacos server version (e.g., 3.2.0). - If using Nacos snapshots, configure the Nacos snapshot repository in Maven.
mvn clean installBuild artifact: target/nacos-api-legacy-adapter-${version}.jar.
This module is not a default dependency and only takes effect when the JAR is present in the runtime classpath. The default Nacos build and startup do not include this module.
- Using Release Package: Place
nacos-api-legacy-adapter-${version}.jarin a directory that Nacos can load (such asplugins), ensuring it's in the classpath. - Custom/Embedded Application: Add the Maven dependency for
nacos-api-legacy-adapterin your build or runtime classpath.
No code or configuration changes are required; the module will automatically load and take effect when the JAR is present in the classpath.
This module is not guaranteed to be supported in future versions of Nacos. If developers wish to adapt this module themselves or help the community maintain and update it, they should follow these steps:
- First clone the alibaba/nacos repository
- Follow the documentation at https://nacos.io/docs/latest/contribution/source-code-run-and-start/ to compile and package the main Nacos service locally
This is necessary because the Nacos services this module depends on are not published to the central repository.