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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamcin
Copy link

@adamcin adamcin commented Oct 14, 2020

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
@sonarcloud
Copy link

sonarcloud bot commented Oct 16, 2020

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
Copy link
Author

adamcin commented Oct 16, 2020

@kwin @rombert this PR is ready for your review

@rombert
Copy link
Contributor

rombert commented Oct 28, 2020

@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
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

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).

@sonarcloud
Copy link

sonarcloud bot commented Jan 17, 2021

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
4 participants