This guide shows how to add encrypted passwords to configured Maven repositories in Aspire.
Windows
- Go to ASPIRE_HOME.
- Run bin\createMaster.bat if no Master file exists yet.
This will create a Master key file that is used to encrypt/decrypt all passwords in the system.
- Run bin\encryptPassword.bat.
This will prompt for the password (not yet encrypted) and a property name. Creates a property in config\settings.xml with the encrypted password. Enter "MavenPassword" as property name.
- Go to config\settings.xml and find <properties> section. Then copy the value of "MavenPassword" property to the password element in the remote repositories section of your settings file.
Example:
Copy "MavenPassword" value:
<properties>
<property name="solrServer">http://localhost:8983</property>
<property name="autoStart">false</property>
<property name="crawlDataBase">data/crawler</property>
<property name="ccdBase">data</property>
<property name="MavenPassword">encrypted:DBB5E9F74682492A265029B07E7E5474</property>
</properties>
To:
<repository type="maven">
<remoteRepositories>
<remoteRepository>
<id>stPublic</id>
<password>PASTE_PASSWORD_HERE</password>
<user>stmaven</user>
<url>http://repositories.searchtechnologies.com:8080/archiva/repository/public/</url>
</remoteRepository>
</remoteRepositories>
<defaultVersion>0.5-SNAPSHOT</defaultVersion>
</repository>
See Password Encryption for more details.
Overview
Content Tools