Commit c25417e7 authored by Ole Hejlskov's avatar Ole Hejlskov
Browse files

Deprecate Activiti features. See #481 for more info

parent 448b5c29
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@
  <artifactId>activiti-jar-archetype</artifactId>

  <packaging>maven-archetype</packaging>
  <name>Alfresco SDK - Activiti JAR Archetype</name>
  <description>Sample project with full support for lifecycle and rapid development of Activiti JARs</description>
  <name>DEPRECATED - UNSUPPORTED - EXPERIMENTAL: Alfresco SDK - Activiti JAR Archetype</name>
  <description>DEPRECATED - UNSUPPORTED - EXPERIMENTAL</description>

  <parent>
    <groupId>org.alfresco.maven</groupId>
+7 −2
Original line number Diff line number Diff line
@@ -5,10 +5,15 @@
    <groupId>${groupId}</groupId>
    <artifactId>${artifactId}</artifactId>
    <version>${version}</version>
    <name>${artifactId} Activiti Jar Module - SDK 3</name>
    <description>Activiti JAR Module that produces a JAR file with Java extensions such as service task delegates. It also produces an application ZIP with workflow definition, forms etc that can be deployed via /activiti-app - SDK 3</description>
    <name>DEPRECATED - UNSUPPORTED - EXPERIMENTAL ${artifactId}  Activiti Jar Module - SDK 3</name>
    <description>DEPRECATED - UNSUPPORTED - EXPERIMENTAL Activiti JAR Module that produces a JAR file with Java extensions such as service task delegates. It also produces an application ZIP with workflow definition, forms etc that can be deployed via /activiti-app - SDK 3</description>
    <packaging>jar</packaging>

    <!-- DEPRECATION NOTICE -->
    <!-- This archetype has been deprecated in SDK 3.1 and will be removed or replaced in SDK 4.0 -->
    <!-- This archetype was introduced as experimental support for Activiti 1.5 Enterprise. -->
    <!-- The archetype and Activiti/APS features present in the SDK is NOT supported, use at your own risk -->

    <properties>
        <!-- Alfresco Maven Plugin version to use -->
        <alfresco.sdk.version>@@alfresco.sdk.parent.version@@</alfresco.sdk.version>
+17 −0
Original line number Diff line number Diff line
@@ -186,6 +186,7 @@ public abstract class AbstractRunMojo extends AbstractMojo {
    protected boolean enableApiExplorer;

    /**
     * Deprecated as of SDK 3.1
     * Switch to enable/disable Alfresco Activiti Workflow Engine (activiti-app.war) when running embedded Tomcat.
     * This contains the Alfresco Activiti webapp, including the workflow engine.
     * This webapp is also the user interface for people involved in the task and processes
@@ -197,6 +198,7 @@ public abstract class AbstractRunMojo extends AbstractMojo {
    protected boolean enableActivitiApp;

    /**
     * Deprecated as of SDK 3.1
     * Switch to enable/disable Alfresco Activiti Admin (activiti-admin.war) when running embedded Tomcat.
     * This contains the Alfresco Activiti Administrator webapp. You use this to administer and monitor your
     * Alfresco Activiti engines.
@@ -242,6 +244,7 @@ public abstract class AbstractRunMojo extends AbstractMojo {
    protected List<ModuleDependency> shareModules;

    /**
     * Deprecated as of SDK 3.1
     * JARs that should be overlayed/applied to the Activiti App WAR (i.e. activiti-app.war)
     */
    @Parameter(property = "maven.activiti.modules", defaultValue = "")
@@ -296,6 +299,9 @@ public abstract class AbstractRunMojo extends AbstractMojo {
    @Parameter(property = "alfresco.groupId", defaultValue = "org.alfresco")
    protected String alfrescoGroupId;

    /**
     * Deprecated as of SDK 3.1
     */
    @Parameter(property = "activiti.groupId", defaultValue = "com.activiti")
    protected String activitiGroupId;

@@ -311,9 +317,16 @@ public abstract class AbstractRunMojo extends AbstractMojo {
    @Parameter(property = "alfresco.api.explorer.artifactId", defaultValue = "api-explorer")
    protected String alfrescoApiExplorerArtifactId;

    /**
     * Deprecated as of SDK 3.1
     */

    @Parameter(property = "activiti.app.war.artifactId", defaultValue = "activiti-app")
    protected String activitiAppWarArtifactId;

    /**
     * Deprecated as of SDK 3.1
     */
    @Parameter(property = "activiti.admin.war.artifactId", defaultValue = "activiti-admin")
    protected String activitiAdminWarArtifactId;

@@ -326,6 +339,9 @@ public abstract class AbstractRunMojo extends AbstractMojo {
    @Parameter(property = "alfresco.api.explorer.version", defaultValue = "5.2.e")
    protected String alfrescoApiExplorerVersion;

    /**
     * Deprecated as of SDK 3.1
     */
    @Parameter(property = "activiti.version", defaultValue = "1.5.3")
    protected String activitiVersion;

@@ -1348,6 +1364,7 @@ public abstract class AbstractRunMojo extends AbstractMojo {
        }

        if (enableActivitiApp) {

            webapps2Deploy.add(createWebAppElement(
                    runnerActivitiAppGroupId, runnerActivitiAppWarArtifactId, runnerActivitiAppVersion,
                    "/activiti-app", null));
+24 −0
Original line number Diff line number Diff line
@@ -46,6 +46,30 @@ public class RunMojo extends AbstractRunMojo {
                pluginManager
        );

        if (enableActivitiApp || enableActivitiAdmin) {
            getLog().warn("*************************************************************************************************************");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*\tWARNING" );
            getLog().warn("*\tThe Activiti features in SDK 3.x are UNSUPPORTED.");
            getLog().warn("*\tIt has been marked for deprecation (SDK 3.1) and will be removed in SDK 4.0.");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*");
            getLog().warn("*************************************************************************************************************");

        }

        if (enableSolr) {
            unpackSolrConfig();
            fixSolrHomePath();