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

FISH-7809 Remove 'deploy-internals' Profile and Fix Deployment of Core #6404

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

Pandrex247
Copy link
Member

@Pandrex247 Pandrex247 commented Sep 13, 2023

Description

With the introduction of Core, the deploy-internals profile becomes redundant.

This also moves the deployment information from the core-parent module to the core-aggregator module, since otherwise deployment of Core would fail due to the core-aggregator and core-bom not knowing where to deploy to.

The structure is now:

  • core-aggregator - contains deployment and distribution management information. Also sets the deploy.skip property to false so that Core modules are deployed.
  • core-parent - all deployment information removed. Should™ inherit from core-aggregator
  • core-bom - Should™ inherit deployment information from core-aggregator
  • payara-aggregator - Should™ inherit deployment information from core-aggregator. Also sets the deploy.skip property to true so that the non-Core Server artefacts aren't deployed, and sets the deployment repository to payara-community.
  • Payara Server distributions (payara-bom, payara, payara-web, payara-ml, payara-web-ml, payara-micro, payara-embedded-all, payara-embedded-web) - sets the deploy.skip property to false

The intent is that Core modules get deployed to payara-artifacts, Server modules are not deployed at all, and Server distributions are deployed to payara-community. Snapshots for both Core and Server should end up in payara-snapshots.

Important Info

Blockers

None

Testing

New tests

None

Testing Performed

  • Make a temporary maven repo to ensure no "cheating" going on via cache: mkdir D:\Downloads\FISH-7809
  • Deployed Core SNAPSHOTs standalone:
    • mvn clean deploy -f core/pom.xml "-Dmaven.repo.local=D:\Downloads\FISH-7809"
    • Verify in payara-snapshots that only Core modules have been deployed
  • Deployed Server distributable artefact SNAPSHOTs without rebuilding Core:
    • mvn clean deploy "-P!BuildCore,BuildEmbedded" "-Dmaven.repo.local=D:\Downloads\FISH-7809"
    • Verify in payara-snapshots that only Server distributions have been deployed
      • fish.payara.distributions:payara:6.2023.10-SNAPSHOT - present 👍
      • fish.payara.extras:payara-embedded-all:6.2023.10-SNAPSHOT - present 👍
      • fish.payara.server.internal.extras:payara-micro-boot:6.2023.10-SNAPSHOT - not present 👍
      • fish.payara.api:payara-api:6.2023.10-SNAPSHOT - only one snapshot present (implying it didn't get rebuilt and redeployed) 👍

Testing Environment

Windows 11, Zulu JDK 11.0.20, Maven 3.9.4

Documentation

N/A

Notes for Reviewers

None

With the introduction of Core, the deploy-internals profile becomes redundant.

Signed-off-by: Andrew Pielage <[email protected]>
@Pandrex247 Pandrex247 marked this pull request as ready for review September 14, 2023 10:38
@Pandrex247
Copy link
Member Author

Jenkins test please

Copy link
Contributor

@breakponchito breakponchito left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@luiseufrasio luiseufrasio left a comment

Choose a reason for hiding this comment

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

LGTM!

@Pandrex247 Pandrex247 merged commit 80e35c6 into payara:master Sep 20, 2023
@Pandrex247 Pandrex247 deleted the FISH-7809 branch September 20, 2023 14:10
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.

3 participants