jasypt-spring-boot icon indicating copy to clipboard operation
jasypt-spring-boot copied to clipboard

Maven plugin overrides spring.config.location with hardcoded value

Open Sremnerud opened this issue 2 years ago • 1 comments

AbstractJasyptMojo overrides already set spring.config.location which inhibits one from pointing out another location for application.properties e.g.

mvn jasypt:encrypt -Djasypt.encryptor.password=mypassword -Dspring.config.location=file:./some/other/location/

https://github.com/ulisesbocchio/jasypt-spring-boot/blob/c0c207cda7dfc294fa986955a72384e8a5d365c9/jasypt-maven-plugin/src/main/java/com/ulisesbocchio/jasyptmavenplugin/mojo/AbstractJasyptMojo.java#L59

even using -Djasypt.plugin.path with another path you still need to have src/main/resources directory in the project or it throws an exception

Sremnerud avatar Dec 06 '22 20:12 Sremnerud

this should be fixed in the latest release with #294

jonas-haeusler avatar Jan 31 '23 11:01 jonas-haeusler