Skip to content

SLING-9820 add JcrInstallMojo to upload content-package artifacts to JCR#3

Open
adamcin wants to merge 1 commit into
apache:masterfrom
adamcin:SLING-9820
Open

SLING-9820 add JcrInstallMojo to upload content-package artifacts to JCR#3
adamcin wants to merge 1 commit into
apache:masterfrom
adamcin:SLING-9820

Conversation

@adamcin

@adamcin adamcin commented Oct 14, 2020

Copy link
Copy Markdown

No description provided.

@adamcin adamcin force-pushed the SLING-9820 branch 3 times, most recently from 62e93a2 to 14feb09 Compare October 16, 2020 21:18
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 2 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (1.8.0_252) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11.
Read more here

@adamcin

adamcin commented Oct 16, 2020

Copy link
Copy Markdown
Author

@kwin @rombert this PR is ready for your review

@rombert

rombert commented Oct 28, 2020

Copy link
Copy Markdown
Contributor

@kwin - I see you've been involved in the conversations from Jira. Do you want to take this one?

*
* @since 2.5.0
*/
@Mojo(name = "jcr-install", defaultPhase = LifecyclePhase.INSTALL)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would rather tend to merge this functionality into the existing sling:install mojo. To be backwards compatible one should be forced into opt in via a switch like artifactExtensions which should by default only be jar. Also from a naming perspective this is not bound to JCR but supports arbitrary resources (at least for the SlingPostServlet deployment method). Obviously this requires adjusting the description of the sling:install mojo (to cover all types of artifacts which are configured via artifactExtensions). Also the parameter bundleFileName would need some clarification.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I agree with @kwin. It could be interesting to use the same mechanism to install other resources, e.g. feature archives (FAR).

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

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