Q: a way to automatically execute git-commit-id-plugin with "Build project" under IDEA?
TheSnoozer opened this issue · 5 comments
See #474 (comment)
Is there any way that this plugin git-commit-id-plugin is executed automatically when doing ''Build Project" (or Rebuild Project)??
IDEA and Eclipse for maven project have build defined by pom.xml
(There is opposite problem to exclude some plugin from execution when within IDE)
So you need to configure in your maven pom.xml that a plugin is executed within maven build/default cycle.
That is general question, not related to this project.
Better ask on https://stackoverflow.com/ and do googling yourself.
This plugin also has docs.
Hey, it looks like I gave general info to the project maintainer. :-|
Again, I don't think there should be done anything for maven project in IDEA
Remember that IDE usually executes project playing with classpath, there is no .jar
So maven 'package' may not be executed, but 'compile' may be.
What did @wh81752 mean? Why there is need for this?
So you need to configure in your maven pom.xml that a plugin is executed within maven build/default cycle. That is general question, not related to this project. Better ask on https://stackoverflow.com/ and do googling yourself. This plugin also has docs.
Please, the whole subject is not a bug report. The plugin works excellent.
The only issue we focus is, that the plugin is not executed when building the project with IntelliJ's build project. The plugin is part of the pom and gets automatically executed using maven from the command-line.
Obviously, IntelliJ's internal project builder has no knowledge about the plugin I was wondering how I can make IntelliJ smarter in this respect.
As suggested, I'm going to dig deeper using pointers given.
Thx for feedback,
Won't fix.