Frequently Asked Questions
Maven
Subversion
Maven
- How to configure Maven to operate with SSL?
-
- Access the site https://[MAVEN_HTTPS_BASED_REPOSITORY] and confirm the security exception to install the certificate.
- 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.
- Export the certificate using to a PEM file
- 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 - 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 - 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)?
-
- Edit file $HOME/.subversion/config. Search for section [miscellany].
- Add entry:
global-ignores = target .settings .classpath .project - In the same file, search for section [auto-props]. Add entries:
target = svn:ignore .eclipse = svn:ignore .classpath = svn:ignore .settings = svn:ignore - Save file. Two steps above (editing config file) need to be executed just once per box/server.
- Open a command prompt, go to the parent of folder to add and type:
This will recursively add all files and folders under your_new_folder, but will ignore those set in the configuration file.svn add [your_new_folder] - Go to the recently added folder and type:
svn -R propset svn:ignore 'target - 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.
- 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' . -
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:
orcat dir-prop-base
The svn:ignore property values should be those folders set in the svn propset command.cat dir-prop
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
