You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

Step 1. 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/

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

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