I have hibernate.cfg.xml and test.txt in the path which i read by java program. Now when i created the jar using maven those files were not present. So i read that i should
Looking at this article, Does getClass().getResourceAsStream("/test.txt") make a difference?
getClass().getResourceAsStream("/test.txt")