Before using Pandora Boot to develop HSF applications, you must configure the local repository path and light-weight configuration registry of Enterprise Distributed Application Service (EDAS).

Background information

  • Currently, third-party packages of Spring Cloud for Aliware are only released in the local repository of EDAS. You need to add the local repository path of EDAS in Maven.
  • The light-weight configuration registry must be started for local code development and debugging. The light-weight configuration registry provides service discovery and configuration management functions.

Configure the local repository path of EDAS in Maven

Note Maven 3.x or later is required. Add the local repository path of EDAS in the Maven configuration file settings.xml.
  1. To add the local repository path of EDAS in the Maven configuration file (whose path is generally ~/.m2/settings.xml), see the following example.
    <profiles>
        <profile>
            <id>nexus</id>
            <repositories>
                <repository>
                    <id>central</id>
                    <url>http://repo1.maven.org/maven2</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <url>http://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>http://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>http://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>
  2. In the CLI, run the mvn help:effective-settings command to check whether the settings are added.
    • If no error exists, the file format of setting.xml is correct.
    • If edas.oss.repo is included in profiles, the local repository settings have been added to profiles.
    • If edas.oss.repo is included in activeProfiles, the edas.oss.repo local repository has been activated.
    Note If no error is returned when you run the Maven packaging command in the command line, but the integrated development environment (IDE) still cannot download the dependencies, close the IDE and start it again or search for a solution in the documentation for configuring Maven in the IDE.

Configure the light-weight configuration registry

For more information, see Start the light-weight configuration registry.