How do I access maven properties defined in the pom in a normal maven project, and in a maven plugin project?
You can parse the pom file with JDOM (http://www.jdom.org/).