-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Build] Fix core-modules profile on JDK11 #10340
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
[Build] Fix core-modules profile on JDK11 #10340
Conversation
|
@eolivelli Please review. This PR revisits the modifications in pom.xml added as part of #9893. |
eolivelli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
|
@lhotari A couple of things are not 100% clear to me:
|
Maven's
It seems that explicit activation is needed in a form or another to enable a solution for a build that has different configuration for JDK11. I've been trying to find a solution to that problem without finding a good solution. It seems that it would be possible to write a custom It is really annoying if |
This reverts commit f8e6ee3. - no need for this change since the solution in apache/pulsar#10340 doesn't require "-DmainModules"
…in profile) - The current Pulsar build is designed in a way that "main" profile shouldn't be active when "core-modules" or "docker" profile is active. Using a core-modules profile requires explicitly disabling main profile with either "-main" or "!main" in the "-P" parameter. For example: "-Pcore-modules,-main" to activate core-modules "-Pdocker,-main" to activate the docker profile.
0a7f3d9 to
3c38624
Compare
|
The current Pulsar build is designed in a way that I have now pushed a solution where I ended up fixing the usages of core-modules and docker profiles so that the main profile is explicitly de-activated from the command line by passing For example:
@eolivelli @merlimat PTAL |
Motivation
"core-modules" profile is broken on JDK11. core-modules profile allows building a subset of the modules. It is used in the unit test builds.
The current Pulsar build is designed in a way that main profile shouldn't be active when core-modules or docker profile is active.
Modifications
Fix the usages of core-modules and docker profiles so that the main profile is explicitly de-activated from the command line by passing
-main(same as!main, but doesn't require quotes in a unix shell) to the list of profiles for-Pon the maven command line.-Pcore-modules,-mainto activate core-modules-Pdocker,-mainto activate the docker profile.make the "always activate" solution for
mainprofile more explicit and add comments inpom.xmlabout it