[SPARK-21592][BUILD] Skip maven-compiler-plugin main and test compilations in Maven build#18750
Conversation
pom.xml
Outdated
There was a problem hiding this comment.
I think you may be right. However if so you can remove the configuration of maven-compiler-plugin in the two submodules that further refine the config.
There was a problem hiding this comment.
Yes, I forgot about it.
pom.xml
Outdated
There was a problem hiding this comment.
Changing phase to one before compile is very old trick, used when scala-maven-plugin compiles only Scala classes and this compilation must be performed before Java classes compilation (by maven-compiler-plugin) because Java classes depend on Scala classes.
In incremental compilation mode SBT compiler is used internally and it compiles everything. Because maven-compiler-plugin is disabled (compilations are skipped), there is no need to change default phase.
|
Do you want me to update pull? |
|
Yeah then I can run tests |
c8638bf to
d9dfe3a
Compare
|
Updated. BTW Travis build fails on the last phase - |
|
Likewise @vanzin any thoughts on this one? because it touches the compilation and build |
|
This will need a JIRA @gslowikowski , by the way |
|
Test build #3861 has finished for PR 18750 at commit
|
|
@gslowikowski I'll merge this if you'll make a JIRA and link it here via the title |
|
Looks good @gslowikowski , just put |
…tions scala-maven-plugin in incremental mode compiles Scala and Java classes. There is no need to execute maven-compiler-plugin goals to compile Java.
d9dfe3a to
0b36e30
Compare
|
Merged to master. I'll watch the builds to make sure it's really happy with this change. |
scala-maven-plugininincrementalmode compilesScalaandJavaclasses. There is no need to executemaven-compiler-plugingoals to compile (in fact recompile)Java.This change reduces compilation time (over 10% on my machine).