-
Notifications
You must be signed in to change notification settings - Fork 644
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
Plugin triggers maven-checkstyle-plugin during build #567
Comments
The problem is that the However this means that for every d-m-p goal A quick solution for you would be to bind checkstyle to a late phae, e.g. Otherwise we might reconsider to reduce the impact d-m-p has on the lifecycle. |
Good to know, I will move it behind the initialize lifecycle step. |
Yeah, that was my fear, too. But I got somehow convinced in #505 since both phases are typically unused. That doesn't mean I could be convinced back :) |
Well for me this information was enough to fix it. Maybe its enough if this gets a prominent place in the documentation. |
it's odd that the i still think this is a relatively safe operation. if you have plugins running during those two phases that aren't just bringing in external configuration (such as the
|
From the existing documentation:
Hope this is sufficient, so I'll close this issue. |
We ran into this breaking our builds because we bind |
how do you deal w/ generating the source jars, etc for your projects b/c that plugin does the exact same thing. if it's really causing problems, i can give it up. i had been using the functionality to store some properties in a file and load then in using the |
we use |
@jbarnettwomply, sorry for being late. I think its a good idea to have two flavors of Mojos which can be bound to an execution phase or run directly from the command line. It doesn't make sense for all, though (e.g you probably never bind Also, I'd prefer it the other way around. I.e. a But lets discuss, which goals really need forking for @jgangemi 's use case. For me the only one really required is the So let me start the list of Mojos which would be nice to have a forked variant:
Any other goals ? So from my point of view it would be enough to introduce wdyt ? |
As long as we can bind non-forking versions of |
my use case was to be able to put properties into an external file and load them w/ the as i said before - i don't have any major issue w/ giving this up entirely. it's not the end of the world to put these properties into the pom itself, so i'm ok if this functionality goes away outside of what there is a steadfast requirement for. |
Ok, cool. Thanks @jgangemi ! I will then probably only fork the two goals mentioned above. As service in return I will merge in your docker-compose PR this evening or so ;-) I've upgrade it to docker compose version 2, and I'm just about to add some documentation. So you can expect a 0.17.1 soon :) |
that would actually be pretty awesome! we have a need to read |
* Removed forking of every Mojo * BuildMojo and SourceMojo are now forking to 'package' * Add BuildNoForkMojo and SourceNoForkMojo * Update documentation accordinglyg Relates to #567 and #599 Signed-off-by: Roland Huß <[email protected]>
Hey @jgangemi 0.17.1 is out with your Docker Compose implementation, slightly tuned ;-) Here are the docs --> https://dmp.fabric8.io/#docker-compose I'm super happy for every feedback on that. |
awesome! is that close to my original implementation w/ the |
Somehow the plugin triggers the maven-checkstyle-plugin which is bound to the
validate
phase during a build. Checkstyle is run twice and potentially fails the build during the second execution, since it now scans generated sources etc.I can't track it down, if I remove the docker build, checkstyle is not triggered twice.
The text was updated successfully, but these errors were encountered: