Posts

Showing posts from March, 2015

Continuous Integration - Maven

Properties for Maven You can  reference a property value in pom.xml  using ${propertyName} notation.  The value can either be passed in command line as "mvn clean install -DpropertyName=value   or can be defined inside pom.xml  inside <properties><propertyName>value</propertyName></properties>  node. If you are using Jenkins for CI, then you can also define properties either via Global Properties -> Environment Variables or by specifying settings.xml  under "Maven Configuration". These configurations are  available under "Manage Jenkins"  menu option. How to reference dependencies from Parent project The dependencies in parent project don't automatically get included in child project. You need to at least include <groupId> and <artifactId>  in the child project's pom file <dependency> element. settings.xml  The <localRepository>  value in settings.xml is very important.  So be careful while

Apache Directory Studio JVM Path

I was having issue launching Apache Directory Studio. It was complaining that there was no JVM found in a given path. But I did not know where that path was set.  Finally I figured that there is "Apache Directory Studio.ini" file which had the jvm path it was looking for.

Windows

Image
  Admin privileges At times your account esp. on office laptops directly don't have admin privileges. So you can not do lots of tasks which are restricted to admins, esp the configuration settings like editing hosts file, changing proxy settings etc.. But there will be a way to launch application( notepad, browser)  as an administrator and then you can do the restricted activities.   Click Windows(Left Bottom Corner of Screen ) Icon  -> Search Programs and Files -> Type the app name and you will see one option of running the app as Administrator ( if you were assigned that  privilege ) How to find what is running at a port netstat - o -b -a   ( you will need to run command as admin , you can always run the cmd.exe as Administrator , provided you given that privilege )  WinSCP batch scripts You can write winscp script to run in non-interactive mode.  There are two good articles on this topic. http://www.robvanderwoude.com/ftp.php https://winscp.net/eng/docs/scrip