You can't, because maven is used for building, and doesn't "exist" after the build.
If you need that during the build (for example via the exec plugin), then it is either accessible as a system propery or you can pass it as argument to the executed program.