Before you use Pandora Boot to develop High-speed Service Framework (HSF) applications, you must configure the internal repository path and the light-weight configuration center of Serverless App Engine (SAE).
Background information
Third-party packages of Spring Cloud for Aliware are released only in the internal repository of SAE. Therefore, you must configure the internal repository path of SAE in Maven.
The light-weight configuration center must be started for on-premises code development and debugging. The light-weight configuration center provides service discovery and configuration management features.
Configure the internal repository path of SAE in Maven
Only Maven 3.x and later are supported.
You must add the internal repository path of SAE to the settings.xml configuration file of Maven.
Add the internal repository path of EDAS to the Maven configuration file, as shown in the following example. The configuration file is ~/.m2/settings.xml in most cases.
<profiles> <profile> <id>nexus</id> <repositories> <repository> <id>central</id> <url>https://repo1.maven.org/maven2</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>https://repo1.maven.org/maven2</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> <profile> <id>edas.oss.repo</id> <repositories> <repository> <id>edas-oss-central</id> <name>taobao mirror central</name> <url>https://edas-public.oss-cn-hangzhou.aliyuncs.com/repository</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>edas-oss-plugin-central</id> <url>https://edas-public.oss-cn-hangzhou.aliyuncs.com/repository</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>nexus</activeProfile> <activeProfile>edas.oss.repo</activeProfile> </activeProfiles>Run the following command to check whether the configuration is successful:
mvn help:effective-settingsNo errors are reported. This indicates that the format of the
settings.xmlfile is valid.The
edas.oss.repoprofile is included in profiles. This indicates that the internal repository settings are added to the profiles.The
edas.oss.repoprofile is included in activeProfiles. This indicates that the edas.oss.repo internal repository is activated.
NoteIf no errors are reported after you run the Maven packaging command in Command Line Interface (CLI) but you cannot use the integrated development environment (IDE) to download the dependencies, close the IDE and restart it. You can also search for the related documentation to obtain the information about how to configure Maven in your IDE.
Configure the light-weight configuration center
For more information, see Start the lightweight configuration center.