Skip to content
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

PAYARA-3876 Added profiles for adding and embedding source in build #3987

Merged
merged 4 commits into from
Jun 13, 2019
Merged

PAYARA-3876 Added profiles for adding and embedding source in build #3987

merged 4 commits into from
Jun 13, 2019

Conversation

arjantijms
Copy link
Contributor

PAYARA-3876

Signed-off-by: arjantijms [email protected]

@arjantijms arjantijms added this to the 5.193 milestone May 29, 2019
@arjantijms arjantijms requested review from pdudits and MattGill98 May 29, 2019 15:26
@arjantijms arjantijms self-assigned this May 29, 2019
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the packaging process is complicated already, wouldn't be better to define those source-only steps in profile only?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 495 to 498 are in the embed-source profile, so the source-only steps are already in profile. Or did you mean something else?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, whether you considered configuration of this execution to be put here as well. The <phase>none</phase> is easy to miss when reasoning about what the actual process is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put it there since that's how the IPS profile works too. All the config in one place, and then the profiles activate it.

nucleus/pom.xml Outdated Show resolved Hide resolved
@Cousjava
Copy link
Contributor

How is this different from mvn pre-site -Psource?

@arjantijms
Copy link
Contributor Author

How is this different from mvn pre-site -Psource?

This embeds the source inside the java jar archives, so the IDE always finds it. mvn pre-site -Psource does nothing like that.

@arjantijms
Copy link
Contributor Author

Jenkins test please

@arjantijms arjantijms merged commit 3526be0 into payara:master Jun 13, 2019
@arjantijms arjantijms deleted the PAYARA-3876-embed-source branch June 13, 2019 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants