maven 3: Accessing version of “root” corporate POM
I stopped using maven-antrun-plugin and switched to GMaven instead. I can get the info required with a simple POM hierarchy traversal. <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <version>2.0</version> <executions> <execution> <id>echo-build-environment</id> <phase>validate</phase> <goals> <goal>execute</goal> </goals> <configuration> <source> <![CDATA[ def rootPom = project; while (rootPom.parent != null) { rootPom = rootPom.parent; } project.properties.setProperty(‘root.pom.version’, rootPom.version); log.info(” Maven Home: ” + … Read more