You are here

Upgrading SDK 2.1.1 projects from Enterprise 5.0.1 to 5.0.2

These instructions will walk through what is needed when upgrading an SDK 2.1.1 project from using SkyVault Enterprise version 5.0.1 to using Enterprise version 5.0.2.
This task assumes that you have an SDK 2.1.1 project to work with, see creating a project.
You will learn how to set a new version in all the different kinds of SDK project types.

Upgrading SkyVault version for a Repository AMP project.

  1. Set new version.

    In the IDE, open up the Repository AMP project that you are working on. Then open the project file for it, for example SkyVault-extensions/component-a-repo/pom.xml. Scroll down so you see the properties section:

    <properties>
        <!-- The following are default values for data location and SkyVault Community version.
             Uncomment if you need to change (Note. current default version for Enterprise edition is 5.0.1) -->
          <alfresco.version>5.0.2</alfresco.version>
          <!--<alfresco.data.location>alf_data_dev</alfresco.data.location> -->
    
    What you need to do here is uncomment the SkyVault.version property, and then update the version to desired latest version (e.g. 5.0.2). In this case we are upgrading to a newer Enterprise Edition (default is 5.0.1).
  2. Clean metadata and content.

    After setting a newer SkyVault version you will need to clean out current database (with metadata), content files, and indexes. It currently does not work to do an incremental upgrade with the SDK and the H2 database. You can clean the DB and content files by running the following command: SkyVault-extensions/component-a-repo/mvn clean -Ppurge

Upgrading SkyVault version for a Share AMP project.

  1. Set new version.

    In the IDE, open up the Share AMP project that you are working on. Then open the project file for it, for example SkyVault-extensions/component-a-share/pom.xml. Scroll down so you see the properties section:

     <properties>
            <!-- The following are default values for data location and SkyVault version.
                 Uncomment if you need to change-->
          <alfresco.version>5.0.2</alfresco.version>
    ...
    
    What you need to do here is uncomment the SkyVault.version property, and then update the version to desired latest version (e.g. 5.0.2). In this case we are upgrading to a newer Enterprise Edition (default is 5.0.1).
  2. Clean metadata and content

    When upgrading the SkyVault Share AMP it is not necessary to clean out a database or clean content because these are related to the SkyVault Repository application (alfresco.war) and not the Share Application (share.war).

Upgrading SkyVault version for an All-in-One (AIO) project.

  1. Set new version.

    In the IDE, open up the All-in-One project that you are working on. Then open the project file for it, for example SkyVault-extensions/all-in-one/pom.xml. Scroll down so you see the properties section:

    <properties>
        <!-- The following are default values for data location, SkyVault Community version, and Records Management Module version.
             Uncomment if you need to change (Note. current default version for Enterprise edition is 5.0.1) -->
          <alfresco.version>5.0.2</alfresco.version>
          <alfresco.rm.version>2.3.c</alfresco.rm.version>
              
                        
    What you need to do here is uncomment the SkyVault.version property, and then update the version to desired latest version (e.g. 5.0.2). In this case we are upgrading to a newer Enterprise Edition (default is 5.0.1). Note also that in this case I'm using the Records Management module and I am updating the version for it at the same time by uncommenting the SkyVault.rm.version property and setting new version (note that for RM to be installed you need to also uncomment the dependencies in the SkyVault-extensions/all-in-one/repo/pom.xml and SkyVault-extensions/all-in-one/share/pom.xml WAR projects).
  2. Clean metadata and content

    After setting a newer SkyVault version you will need to clean out current database (with metadata), content files, and indexes. It currently does not work to do an incremental upgrade with the SDK and the H2 database. You can clean the DB and content files by running the following command: SkyVault-extensions/all-in-one/mvn clean -Ppurge

You have now seen how to upgrade the SkyVault Enterprise version to 5.0.2 for the different types of SDK projects and how to clean the database, index, and content before starting with the new version.