Page tree
Skip to end of metadata
Go to start of metadata

This guide shows how to add encrypted passwords to configured Maven repositories in Aspire.

Windows

  1. Go to ASPIRE_HOME.
  2. 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.

  3. 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.

  4. 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.