04-28-2022 03:08 AM
Hi,
I have some problems with SDK 3.1.
Currently, I have already created an SDK project and module packages for alfresco-rm-enterprise-share and alfresco-rm-enterprise-repo installed. but my problem is I want to create a site for record management but on Type selection, I don't see the selection for Record Management.
- Type selection did not appear Record Management
- Module packages for alfresco-rm-enterprise-share and alfresco-rm-enterprise-repo is installed
04-28-2022 01:27 PM
It should work unless you have not included the amps on the right place in SDK. These amps are not enough to be added just as dependencies.
They need to included under alfresco-maven-plugin's modules to load and apply them while launching from SDK. See example below.
<plugin> <groupId>org.alfresco.maven.plugin</groupId> <artifactId>alfresco-maven-plugin</artifactId> <version>${alfresco.sdk.version}</version> <configuration> <!-- We need the flat file H2 database to run the Repo --> <enableH2>true</enableH2> <!-- We always need the Platform/Repo webapp - alfresco.war --> <enablePlatform>true</enablePlatform> <!-- Enable Solr webapp so we can use search --> <enableSolr>true</enableSolr> <!-- We need Share webapp, so we got a UI for working with the Repo --> <enableShare>true</enableShare> <!-- Enable the REST API Explorer --> <enableApiExplorer>true</enableApiExplorer> <!-- JARs and AMPs that should be overlayed/applied to the Platform/Repository WAR (i.e. alfresco.war) --> <platformModules> <!-- Share Services will be ignored if you are on Platform earlier than 5.1 --> <moduleDependency> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-share-services</artifactId> <version>${alfresco.share.version}</version> <type>amp</type> </moduleDependency> <!-- Bring in custom Modules --> <moduleDependency> <groupId>${project.groupId}</groupId> <artifactId>governance-services-demo-platform-jar</artifactId> <version>${project.version}</version> </moduleDependency> <!-- Bring governance services (aka records-management) --> <moduleDependency> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-rm-community-repo</artifactId> <version>2.7.b</version> <type>amp</type> </moduleDependency> <!-- Bring in the integration tests --> <moduleDependency> <groupId>${project.groupId}</groupId> <artifactId>integration-tests</artifactId> <version>${project.version}</version> <classifier>tests</classifier> </moduleDependency> </platformModules> <!-- JARs and AMPs that should be overlayed/applied to the Share WAR (i.e. share.war) --> <shareModules> <!-- Bring in custom Modules --> <moduleDependency> <groupId>${project.groupId}</groupId> <artifactId>governance-services-demo-share-jar</artifactId> <version>${project.version}</version> </moduleDependency> <!-- Bring governance services (aka records-management) --> <moduleDependency> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-rm-community-share</artifactId> <version>2.7.b</version> <type>amp</type> </moduleDependency> </shareModules> </configuration> </plugin>
Here is demo project for reference: https://github.com/abhinavmishra14/governance-services-demo
This thread may also be helpful: https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-install-records-management-in-all...
Explore our Alfresco products with the links below. Use labels to filter content by product module.