When developing new components or creating Aspire distributions you'll need to run maven commands for building, compiling, running unit tests, downloading dependencies.

In order to be able to download the required dependencies and artifacts from Aspire's Maven Repository: https://repository.sca.accenture.com, you'll need to configure it in your development environment.

Requisites

  • OpenJDK 11
  • Maven 3.6+

The following guide will configure your local maven environment to be able to connect and authenticate using your own credentials into Aspire's Maven Repository.

Configuration

Step 1. Register a user in artifactory (omit if you are already registered)

Follow instructions at Aspire Registration and Licensing

Step 2. Create your custom settings.xml

Maven will try to use the settings.xml file it finds under your local $HOME/.me directory (or ~/.m2), so if there isn't yet a $HOME/.m2 folder create it:

$ mkdir ~/.m2

Now download settings.xml and copy it under $HOME/.m2

$ cp ~/Downloads/settings.xml ~/.m2/

Step 3. Verify connectivity


Now edit your $HOME/.m2/settings.xml to include your credentials (registered email and password, see Aspire Registration and Licensing):

<settings>
  <servers>
    <server>
      <id>stPublic</id>
      <username>[USERNAME]</username>
      <password>[PASSWORD]</password>
    </server>
  </servers>
...