Not sure if it's possible from the scripting plugin, but I've definitely run a bit of Java code with the exec-maven-plugin and used the injected projectPropertiesUpdater callback to adjust project properties: https://www.mojohaus.org/exec-maven-plugin/java-mojo.html
Greg Chabala
