Upgrading SkyVault version for a Repository AMP project.
-
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). -
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.
-
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). -
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. -
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).
-
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.
-
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). -
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. -
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
-
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.