Skip to main content
Jeanmaradiaga
Level 3
Aug 31, 2021 4:31 PM UTC
Solved

AEM 6.4 Code deployment to Remote Server

If I have a remote server with AEM installed can I push my current code with something as simple as:

mvn clean install -PautoInstallDevPackage -U -Daem.host=test-author.dev.com -Daem.port=4502 -DUserName=admin-Dpassword=admin

 Or do I need to use cURL? POM? I haven't been able to find much information on how I can push my local changes to a remove server for some reason.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Singaiah_Chintalapudi
Singaiah_ChintalapudiAccepted solution
Level 7
Aug 31, 2021 4:37 PM UTC

Yes, this is one of the way.

mvn clean install -PautoInstallPackage -Daem.host=test-author.dev.com -Daem.port=4502 -Daem.author.user=admin -Daem.author.password=admin

 

10 replies

Singaiah_Chintalapudi
Singaiah_ChintalapudiAccepted solution
Level 7
Aug 31, 2021 4:37 PM UTC

Yes, this is one of the way.

mvn clean install -PautoInstallPackage -Daem.host=test-author.dev.com -Daem.port=4502 -Daem.author.user=admin -Daem.author.password=admin

 

Translate
Kishore_Kumar_
Level 9
Aug 31, 2021 5:09 PM UTC

yes using the mvn command line and providing system properties to it would be the sufficient to build to remote server without touching a code. If we make a changes in POM.xml and sometimes if we forget to revert it, it may create an unwanted issue.

Translate
BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Aug 31, 2021 6:46 PM UTC

@jeanmaradiaga,

Your maven command looks correct; can you share with us your error messages please?

Translate
Jeanmaradiaga
Level 3
Aug 31, 2021 10:56 PM UTC

@briankasingli 

 

 The requested profile "autoInstallDevPackage" could not be activated because it does not exist.
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.5.24:install (install-package) on project com.bla.bla.config: The host did not accept the connection within timeout of 5000 ms: connect timed out -> [Help 1]
Translate
Jeanmaradiaga
Level 3
Aug 31, 2021 11:05 PM UTC

Or with the following command:

clean install -PautoInstallBundle -U -Daem.host=blabla.com -Daem.port=4502 -DUserName=admin -Dpassword=admin

I get:

ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'version' contains an expression but should be a constant. @ com..:${app.version}, C:\blabla\pom.xml, line 22, column 14
[WARNING] 'version' contains an expression but should be a constant. @ com..:${app.version}, C:\blabla\pom.xml, line 22, column 14
[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.24 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.day.jcr.vault:content-package-maven-plugin:jar:0.5.24 @ 

 

Translate