You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2026/01/14 11:53:20 UTC
(sling-feature-converter-maven-plugin) branch issue/SLING-13057-local-maven-repo created (now a6c453a)
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a change to branch issue/SLING-13057-local-maven-repo
in repository https://gitbox.apache.org/repos/asf/sling-feature-converter-maven-plugin.git
at a6c453a SLING-13057 use correct configured local maven repository path
This branch includes the following new commits:
new a6c453a SLING-13057 use correct configured local maven repository path
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(sling-feature-converter-maven-plugin) 01/01: SLING-13057 use correct configured local maven repository path
Posted by ss...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch issue/SLING-13057-local-maven-repo
in repository https://gitbox.apache.org/repos/asf/sling-feature-converter-maven-plugin.git
commit a6c453ac925eff34cef19ba57292cb8bddb22eb2
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Wed Jan 14 12:46:46 2026 +0100
SLING-13057 use correct configured local maven repository path
---
.../sling/cpconverter/maven/mojos/ConvertCPMojo.java | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/src/main/java/org/apache/sling/cpconverter/maven/mojos/ConvertCPMojo.java b/src/main/java/org/apache/sling/cpconverter/maven/mojos/ConvertCPMojo.java
index 48985a1..975c21c 100644
--- a/src/main/java/org/apache/sling/cpconverter/maven/mojos/ConvertCPMojo.java
+++ b/src/main/java/org/apache/sling/cpconverter/maven/mojos/ConvertCPMojo.java
@@ -290,7 +290,6 @@ public class ConvertCPMojo
artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
"compile", ZIP_TYPE, PACKAGE_CLASSIFIER, artifactHandlerManager.getArtifactHandler(ZIP_TYPE)
);
-// installConvertedCP(convertedPackage);
} else {
getLog().error("Artifact is not found: " + artifact);
}
@@ -322,14 +321,11 @@ public class ConvertCPMojo
*/
private void installGeneratedArtifacts() {
if(installConvertedCP) {
- File userHome = new File(System.getProperty("user.home"));
- if(userHome.isDirectory()) {
- File destFolder = new File(userHome, ".m2/repository");
- if(destFolder.isDirectory()) {
- copyFiles(convertedCPOutput, destFolder);
- if(isContentPackage) {
- installFMDescriptor(project.getArtifact());
- }
+ File destFolder = repoSession.getLocalRepository().getBasedir();
+ if(destFolder.isDirectory()) {
+ copyFiles(convertedCPOutput, destFolder);
+ if(isContentPackage) {
+ installFMDescriptor(project.getArtifact());
}
}
}