Calculate path to pom.xml in jar meta (same path used by write-pom). Relative path in jar is: META-INF/maven/<groupId>/<artifactId>/pom.xml If :class-dir provided, return path will start with resolved class-dir (which may be either absolute or relative), otherwise just relative path in jar. Options: :lib - required, used to form the relative path in jar to pom.xml :class-dir - optional, if provided will be resolved and form the root of the path