-
Notifications
You must be signed in to change notification settings - Fork 157
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
Compilers other than Java execute too late #232
Comments
Hmm, that's tough. For reference, in case you or others haven't seen it, here is the list of goals NAR adds to the lifecycle. Using Sorry I don't have more time to think about or investigate this. If you find a way to update the NAR plugin to be friendlier for scala/etc. without breaking backwards compatibility, a PR would be supremely welcome. |
Not sure if this is as well known as I'd thought, but you can map any plugin's execution to any lifecycle phase with the Hope this helps! |
Hey thanks guys, I know this is possible and worked around it by messing with the phase it attached to that way. I'm thinking since this is a packaging plugin already, there might as well be a custom lifecycle. If NAR used it's own phases, the original ones could remain untouched and default phase definitions embedded in plugins like Scala would work without fiddling. |
I'm confused, now. I'm rereading your question, and I realize you mention trying to map to different passes, and the nar-compile phase getting in the way? Does the Scala plugin also add it's own new phase (possibly in the wrong place)? Otherwise, default-nar-compile should be coming after the default-compile phase, right? |
Greetings, thanks for an excellent plugin.
When compilers other than Java are added to a build, they fire after
javah
and there doesn't seem to be any way to get around this. Research I've done into mojo ordering seems to indicate that the plugins are executed in the order they are in the effective POM, with the exception of the packaging plugin, which always runs first. The net effect in this case is there's no way to run the Scala plugin beforejavah
.I've attached a sample POM that will demonstrate this behavior. It can be run without source files, just note the order of the plugin execution.
scala-maven-plugin
runs afternar-compile
, which is too late.My initial thought was to move some stuff into the
process-classes
phase, but nar is already using it.Any thoughts how this might be resolved? Thanks!
The text was updated successfully, but these errors were encountered: