cancel
Showing results for 
Search instead for 
Did you mean: 

Change a model deploy in an amp by a jar

jose_tristan
Champ on-the-rise
Champ on-the-rise

Hi,

We have a custom model deploy in an amp. Currently, we've join several amps in the same project and we'd like to deploy as jar. What would be the best steps to uninstall the amp and deploy the jar wihout having issues with the model?

Thanks and regards.

1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

AMPs are bundled with alfresco.war when using apply-amps tool.

I would take your alfresco.war to a separate environment and I'll undeploy the AMP and deploy the JAR. Just to test that it works. If both AMP and JAR modules have the same module.id and module.version, that would work.

Hyland Developer Evangelist

View answer in original post

5 REPLIES 5

angelborroy
Community Manager Community Manager
Community Manager

AMPs are bundled with alfresco.war when using apply-amps tool.

I would take your alfresco.war to a separate environment and I'll undeploy the AMP and deploy the JAR. Just to test that it works. If both AMP and JAR modules have the same module.id and module.version, that would work.

Hyland Developer Evangelist

Thanks Ángel.

I unistalled the amp and deploy the jar. However I get an error about the some differences found in the model. However, both projects had different module.id. I'm going to use the same module.id and module.version and I'll check it.

Hi,

I'm using the same module.id and module.version. Removed the amp through apply-amps tool and deployd the jar. However, I get the following error:

org.alfresco.error.AlfrescoRuntimeException: 00030000 GetModelsDiff return status is 404

at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1181).

Thanks.

As long as you don't make any changes to the deployed models it should work.

Did you change namespaces, type definitions or model names? 

Look carefully to the logs, because this error you showed may come from previous and more verbose errors.