Closed seime closed 5 years ago
Thanks for the contribution! Before we can merge this, we need @seime to sign the Salesforce.com Contributor License Agreement.
I'm curious, what prompted the need for this change?
We generate some proto descriptors from xml schema, and as with all generated sources/resources we place them in the (maven) target folder before packaging and deploying them as jar files.
The plugin was hardcoded to always look for proto.lock inside the proto source folder, and if not found it would just renitialize a new proto.lock there each time. Even if --lockdir would be specified the maven plugin wouldn't honour that and just renitialize a new proto.lock inside the temp folder. This caused changes silently to be accepted (except for a log statement saying that it was initialized)
Passing
<option>--lockdir=somewhere_else</option>
does not work, the plugin always checks the proto root directory forproto.lock
.This PR adds a new configuration parameter
lockDir