Skip to content
vasu34k123 edited this page Dec 14, 2017 · 4 revisions

Welcome to the MCI-JAVA wiki! Maven

1)Steps to use properties file in maven? properties-maven-plugin. It allows you to read properties from a file to then use them in your pom.

Add the following plugin defintion:

org.codehaus.mojo properties-maven-plugin 1.0-alpha-2 initialize read-project-properties src/main/resources/abc.properties If abc.properties contains:

jdbc.driver = com.mysql.jdbc.Driver jdbc.url = jdbc:mysql://127.0.0.1:3306/db_ab jdbc.user = db_user You can then use the properties as follows:

        <driver>${jdbc.driver}</driver>
        <url>${jdbc.url}</url>
        <user>${jdbc.user}</user>

(or)

in version 3.0 you have to use configFile like :

src/main/resources/db/config/flyway.properties


SVN to GIT migration

for a simple migration with all the history, here are the few simple steps:

Initialize the local repo:

mkdir project cd project git svn init http://svn.url Mark how far back you want to start importing revisions:

git svn fetch -r42 (or just "git svn fetch" for all revs)

Actually fetch everything since then:

git svn rebase You can check the result of the import with Gitk. I'm not sure if this works on Windows, it works on OSX and Linux:

gitk When you've got your SVN repo cloned locally, you may want to push it to a centralized Git repo for easier collaboration.

First create your empty remote repo (maybe on GitHub?):

git remote add origin [email protected]:user/project-name.git Then, optionally sync your main branch so the pull operation will automatically merge the remote master with your local master, when both contain new stuff:

git config branch.master.remote origin git config branch.master.merge refs/heads/master


TDD vs. BDD BDD is in a more readable format by every stake holder since it is in English, unlike TDD test cases written in programming languages such as Ruby, Java etc. BDD explains the behavior of an application for the end user while TDD focuses on how functionality is implemented. Changes on functionality can be accommodated with less impact in BDD as opposed to TDD. BDD enables all the stakeholders to be on the same page with requirements which makes acceptance easy, as opposed to TDD.

Clone this wiki locally