Re: Modifying $project properties with maven-scripting-plugin?
Alexander Kriegisch <[email protected]> Thu, 8 Jan 2026 10:17:26 +0700
| Newsgroups | gmane.comp.jakarta.turbine.maven.user |
|---|---|
| Message-ID | <[email protected]> |
Wow, I never tried that before, just read the mojo documentation. This sounds intriguing and very powerful. (I mean it.) However, I want to just think aloud about possible consequences of scripting a build like that: Your IDE might not be able to build and/or run the project correctly anymore after importing/refreshing from the Maven build, because it cannot interpret or emulate whatever you scripted there. So, you might want to test that before happily committing your clever solution. -- Alexander Kriegisch https://scrum-master.de Greg Chabala schrieb am 08.01.2026 um 09:23: > 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