Frequently Asked Questions

Maven

  1. How to configure Maven to operate with SSL?

Subversion

  1. How to recursively ignore standards paths (target, .settings, .classpath, .project)?
  2. Standard Subversion Configuration

Maven

How to configure Maven to operate with SSL?

  1. Access the site https://[MAVEN_HTTPS_BASED_REPOSITORY] and confirm the security exception to install the certificate.
  2. Using firefox, go to the certificate list (Edit -> Preferences -> Advanced -> Encryption -> View Certificates). Look for Company -> mriss.dyndns-at-home.com at the "Autorities" tab.
  3. Export the certificate using to a PEM file
  4. Open a command prompt and type the following command. The command will ask you a password. Keep the password in your mind.
    openssl pkcs12 -export -in [your-pem-file-here] -out [your-output-pkcs12-file-here] -name "My Certificate" -nokeys
  5. Enter the following command. Again, a password will be required. You can use the same one as above. When asked about trus in the trust store, answer yes.
    keytool -v -alias mavensrv -import -file [path-to-your-pem-file-here] -keystore trust.jks
  6. Edit MAVEN_OPTS variable in your .profile to have the following content.
    -Djavax.net.ssl.trustStore=[your-path-to-trustjks]/trust.jks -Djavax.net.ssl.trustStoreType=jks -Djavax.net.ssl.trustStorePassword=[your-password] -Djavax.net.ssl.keyStore=[the-path-to-your-output-pkcs12-file-here] -Djavax.net.ssl.keyStoreType=pkcs12 -Djavax.net.ssl.keyStorePassword=[your-password]

Reference: http://maven.apache.org/guides/mini/guide-repository-ssl.html.

Subversion

How to recursively ignore standards paths (target, .settings, .classpath, .project)?

  1. Edit file $HOME/.subversion/config. Search for section [miscellany].
  2. Add entry:
    global-ignores = target .settings .classpath .project
  3. In the same file, search for section [auto-props]. Add entries:
    
    target = svn:ignore
    .eclipse = svn:ignore
    .classpath = svn:ignore
    .settings = svn:ignore
    	        	
  4. Save file. Two steps above (editing config file) need to be executed just once per box/server.
  5. Open a command prompt, go to the parent of folder to add and type:
    svn add [your_new_folder]
    This will recursively add all files and folders under your_new_folder, but will ignore those set in the configuration file.
  6. Go to the recently added folder and type:
    svn -R propset svn:ignore 'target
  7. Hit Enter. This will force a new line input in the same shell command line. Svn propset command with svn:ignore requires each ignored folder/file to be separated by a new line.
  8. In the rest of the line type the other folders to be ignored, using a new line on each new folder/file, close the single quote, and add a dot, to represent the current directory:
    
    .settings
    .classpath
    .project' .
    	        	
  9. Hit Enter. All folders will recursively have the svn:ignore set to the right values. To confirm the settings, go to .svn folder and execute:
    cat dir-prop-base
    or
    cat dir-prop
    The svn:ignore property values should be those folders set in the svn propset command.

Reference: http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.propset.html.

Reference: http://svnbook.red-bean.com/en/1.7/svn.ref.properties.html#svn.ref.properties.versioned-props.


Standard Subversion Configuration