Author Archive

Maven notes – Exercise

February 20, 2016 Leave a comment

Setup Maven

  • Download latest Maven (3.3.9) from
  • Unzip it to the folder you want to install Maven.
  • Add both M2_HOME and MAVEN_HOME variables in the Windows environment, and point it to your Maven folder (C:\Apache Maven\apache-maven-3.3.9).
  • Update PATH variable, append Maven bin folder – %M2_HOME%\bin, so that you can run the Maven’s command everywhere.
  • Restart/log off windows if necessary.
  • To verify it, run mvn –version in the command prompt.

Setup local repository path


Default location for local repository is ${user.home}/.m2/repository. So I change it. Read more…

Categories: Maven

Maven notes – Introduction part 1

February 20, 2016 Leave a comment

What is Maven?

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information.

Maven use Convention over Configuration which means developers are not required to create build process themselves. When a Maven project is created, Maven creates default project structure. Developer is only required to place files accordingly and he/she need not to define any configuration in pom.xml. In order to build the project, Maven provides developers options to mention life-cycle goals and project dependencies (that rely on Maven pluging capabilities and on its default conventions). Much of the project management and build related tasks are maintained by Maven plugins.

How maven works Read more…

Categories: Maven

Is there any ‘evil’ inside me

February 19, 2016 Leave a comment


Scary title isn’t? Hahahaha. But I think this is the answer to what’s happening today. Evil mean unexpressed emotions. Where it comes from? Why they exist?  Read more…

Categories: Umum

Why I like her?

February 13, 2016 Leave a comment

Once upon a time she asked me why I like her. A difficult question to answer. Because at that time I don’t understand why can fall in love with her. I kept asking myself why I fell in love with her. It takes a few weeks for me to be able to answer that question.


So, this is six main reasons why I love her: Read more…

Categories: Umum

After 4 years

About 4 years ago I met a woman. After a few weeks I finally fell in love with her. But at that time I had no opportunity to tell her that I like her. Until finally there was another man who did it. It was a very painful memory. The worst part is I can not control my emotions, I work a mess in a few weeks. Now, after four years I meet with someone. Read more…

Categories: Umum

Convert a Standalone MongoDB to a Replica Set

I already have standalone mongod instance (called svr01) and want to convert into four member replica set (1 primary, 2 secondary, 1 arbiter). My objective is to distribute read query through secondaryPreferred read preference.

Create siteRootAdmin user to manage replica set.

#connect as admin
mongo --host localhost --port 27001 -u admin -p admin --authenticationDatabase admin

#in mongo shell
use admin
db.createUser( {
    user: "siteRootAdmin",
    pwd: "admin",
    roles: [ { role: "root", db: "admin" } ]

Create key file, this file will be use to internal authentication (between mongod instance). For simplicity I cerate file filled with string “password” named keyFile and save to /var/. Set permission to 600 (owner only). Read more…

Categories: MongoDB

Play! Framework – Deployment using Jenkins [Create Jobs]

August 31, 2015 1 comment

For the first time, you can click on create new jobs at home page. Or you can click New Item.
Choose Freestyle project and fill Item name, click Ok.

home_loginCreate job
Adding build parameter, I want to build specific branch, so I added git parameter

git parameterBuildParameter

In source code management I choose git then fill the config.


In section Build, choose Invoke Play! Framework. We can see this choice if we already installed the plugin. Fill the config. Play!Framework Installation choice will appear if we already configure Play! in Configure System.

build play


The last step is configure Post-build Actions, I want to sent the artifact.


You must configure ssh server in Configure System.

Categories: Jenkins, Play! Framework