-
Notifications
You must be signed in to change notification settings - Fork 164
Using maven plugin prevents building from tarball #299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can disable the https://github.com/phillipuniverse/githook-maven-plugin#additional-configuration-options |
@dvzrv Why would you build the project from scratch when you could download the official JAR from Maven Central? It's not like your byte code would be any different. |
Thanks, I will look into that! :)
We generally build everything (that we can) from source. This allows for reproducibility and not being affected by supply chain attacks on a binary repository such as maven central or a compromised build infrastructure in which the official jar is being built.
In fact, it would be, because maven builds are usually not bit-by-bit reproducible, unless configured so (for this purpose strip-nondeterminism is currently used to strip the resulting jar from nondeterministic strings such as timestamps). |
Yeah, I've heard that one before. 😉 |
The build process would fail if the `.git/` directory is missing, e. g. when downloading the repository contents from GitHub in a ZIP archive: ```text [ERROR] Failed to execute goal io.github.phillipuniverse:githook-maven-plugin:1.0.5:install (default) on project openapi-diff-parent: Not a git repository, could not find a .git/hooks directory anywhere in the hierarchy of /path/to/openapi-diff/target. Turn off this behavior with skipRepositoryCheck=false -> [Help 1] ``` After the change, a missing `.git/` directory doesn't lead to a build failure: ```text [INFO] --- githook-maven-plugin:1.0.5:install (default) @ openapi-diff-parent --- [INFO] No .git directory found, skipping plugin execution ``` Refs #299
@joschi many thanks! ❤️ |
Hi! When packaging 2.0.0 for Arch Linux I realized that the tool can not be built from a tarball of a release as long as there is the git hooks maven plugin in use:
openapi-diff/pom.xml
Lines 290 to 294 in ed6345e
openapi-diff/pom.xml
Lines 349 to 366 in ed6345e
As this seems to be only for code formatting, is it possible to circumvent its use (aside from removal), when using
mvn clean install
?The text was updated successfully, but these errors were encountered: