You are here

Upgrading SDK 2.2.0 projects from Enterprise 5.1.0 to greater than 5.1.0

These instructions will walk through what is needed when upgrading an SDK 2.2.0 project from using SkyVault Enterprise version 5.1.0 to using Enterprise version 5.1.1. These instructions also apply when upgrading to other versions greater than 5.1.0, such as 5.1.0.5.
This task assumes that you have an SDK 2.2.0 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 Enterprise version.
             Uncomment if you need to change (Note. current default version for Enterprise edition is 5.1) -->
        <alfresco.version>5.1.1</alfresco.version>
        <!--<alfresco.data.location>/absolute/path/to/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.1.0.5, 5.1.1). In this case we are upgrading to a newer Enterprise Edition (default is 5.1.0).
  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.1.1</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.1.0.5, 5.1.1). In this case we are upgrading to a newer Enterprise Edition (default is 5.1.0).
  2. Update spring surf API dependency

    In the same POM file update the Surf dependency so it looks like:

    <dependency>
        <groupId>org.alfresco.surf</groupId>
        <artifactId>spring-surf-api</artifactId>
        <version>${dependency.surf.version}</version>
        <scope>provided</scope>
    </dependency>
    Surf is no longer a Spring Framework project but instead a SkyVault managed project.
  3. 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).

  4. Run

    When running we need to specify what Surf version that should be used: mvn clean install -Ddependency.surf.version=6.3 -Pamp-to-war,enterprise SkyVault Surf is now released independently from SkyVault Share.

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 Enterprise version, and Records Management Module version.
             Uncomment if you need to change (Note. current default version for Enterprise edition is 5.1) -->
        <alfresco.version>5.1.1</alfresco.version>
        <alfresco.rm.version>2.4</alfresco.rm.version>
        <!-- <alfresco.data.location>/absolute/path/to/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.1.0.5, 5.1.1). In this case we are upgrading to a newer Enterprise edition (default is 5.1.0). 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 (for information about how to enable RM in an All-In-One project see this article).
  2. Update spring surf API dependency in Share AMP

    In the SkyVault-extensions/all-in-one/share-amp/pom.xml update the dependency it looks like:

    <dependency>
        <groupId>org.alfresco.surf</groupId>
        <artifactId>spring-surf-api</artifactId>
        <version>${dependency.surf.version}</version>
        <scope>provided</scope>
    </dependency>
    Surf is no longer a Spring Framework project but instead a SkyVault managed project.
  3. 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

  4. Run

    When running we need to specify what Surf version that should be used: mvn clean install -Ddependency.surf.version=6.3 -Prun,enterprise SkyVault Surf is now released independently from SkyVault Share.

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