from ALA's maven pom.xml files.
This had it's obvious limitations:
<parent /> (if present) has to be the very first sub-element of <project />
<version /> and <groupId /> of the project had to be the first "version" and "groupId" element-s after the closing </parent>
etc. recently <parent> pom was added, some "common", "shared" settings/properties like the JDK version, groupId moved to the parent pom - ALL changes that are next to impossible to process/parse with regexp.
At the moment the script generate-github-travis-build-summary-with-grails.sh used to generate the "build status" table (github gist) embedded inside https://atlasoflivingaustralia.github.io/ is using clumsy regexp/grep/sed/etc to extract:
from ALA's maven pom.xml files.
This had it's obvious limitations:
<parent />
(if present) has to be the very first sub-element of<project />
<version />
and<groupId />
of the project had to be the first "version" and "groupId" element-s after the closing</parent>
<parent>
pom was added, some "common", "shared" settings/properties like the JDK version, groupId moved to the parent pom - ALL changes that are next to impossible to process/parse with regexp.The solution is to EITHER:
parse pom.xml with a XML parser, examples:
OR
git clone
of each processed project and then usemvn
on the clone to extract desired properties