From 1f46a9e2ffea1efd4b17a4b5d34ee39f1d849a74 Mon Sep 17 00:00:00 2001 From: Martin Bergljung Date: Mon, 10 Oct 2016 09:06:19 +0100 Subject: [PATCH] Added the possibility to use custom context path for Share, #417 --- .../main/java/org/alfresco/maven/plugin/RunMojo.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java index 496bb4ee..a2093f61 100644 --- a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java +++ b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java @@ -149,6 +149,15 @@ public class RunMojo extends AbstractMojo { @Parameter(property = "maven.alfresco.enableShare", defaultValue = "true") protected boolean enableShare; + /** + * Enables the use of custom context path for the Share webapp. + * Some solution integrators uses a custom context path for Share in their projects. + * This property enables them to continue to do that in SDK 3 without having to completely override the + * Maven Tomcat plugin configuration, or not use it at all and go back the good old runner project again... + */ + @Parameter(property = "maven.alfresco.shareContextPath", defaultValue = "/share") + protected String shareContextPath; + /** * Switch to enable/disable the Alfresco REST API Explorer (api-explorer.war) when running embedded Tomcat. */ @@ -968,7 +977,7 @@ public class RunMojo extends AbstractMojo { if (enableShare) { webapps2Deploy.add(createWebAppElement( runnerAlfrescoGroupId, runnerAlfrescoShareWarArtifactId, runnerAlfrescoShareVersion, - "/share", null)); + shareContextPath, null)); } if (enableSolr) {