a solution to relative path issue, but requires some extra stuff in pom which should be unnecessary