mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-07-31 17:39:14 +00:00
425 - Maven Plugin - Support for platform context file
Code change migrated from PR https://github.com/Alfresco/alfresco-sdk/pull/431. Change implemented by the user @pzrinscak. Modify the Alfresco Maven Plugin to add the possibility to set a custom Tomcat context file for the platform war. This features enables the possibility to define custom JNDI resources in the context of the Alfresco platform application.
This commit is contained in:
@@ -388,6 +388,12 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
@Parameter(property = "maven.alfresco.tomcat.version")
|
@Parameter(property = "maven.alfresco.tomcat.version")
|
||||||
protected String tomcatVersion;
|
protected String tomcatVersion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Location of a custom context file to use in the deployment of the platform war in Tomcat.
|
||||||
|
*/
|
||||||
|
@Parameter(property = "maven.alfresco.platform.custom.context.file")
|
||||||
|
protected String platformCustomContextFile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maven GAV properties for customized alfresco.war, share.war, activiti-app.war
|
* Maven GAV properties for customized alfresco.war, share.war, activiti-app.war
|
||||||
* Used by the Maven Tomcat 7 Plugin
|
* Used by the Maven Tomcat 7 Plugin
|
||||||
@@ -1380,9 +1386,10 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (enablePlatform) {
|
if (enablePlatform) {
|
||||||
|
String platformContextFile = StringUtils.isNotBlank(platformCustomContextFile) ? platformCustomContextFile : null;
|
||||||
webapps2Deploy.add(createWebAppElement(
|
webapps2Deploy.add(createWebAppElement(
|
||||||
runnerAlfrescoGroupId, runnerAlfrescoPlatformWarArtifactId, runnerAlfrescoPlatformVersion,
|
runnerAlfrescoGroupId, runnerAlfrescoPlatformWarArtifactId, runnerAlfrescoPlatformVersion,
|
||||||
"/alfresco", null));
|
"/alfresco", platformContextFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enableShare) {
|
if (enableShare) {
|
||||||
@@ -1402,7 +1409,6 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (enableActivitiApp) {
|
if (enableActivitiApp) {
|
||||||
|
|
||||||
webapps2Deploy.add(createWebAppElement(
|
webapps2Deploy.add(createWebAppElement(
|
||||||
runnerActivitiAppGroupId, runnerActivitiAppWarArtifactId, runnerActivitiAppVersion,
|
runnerActivitiAppGroupId, runnerActivitiAppWarArtifactId, runnerActivitiAppVersion,
|
||||||
"/activiti-app", null));
|
"/activiti-app", null));
|
||||||
|
Reference in New Issue
Block a user