Hi @martinlloyd
- Make sure your target AEM instance is started and running normally(all bundles should be active) before you deploy your code.
- If you have changed the admin username and password of your AEM instance, you might need to update it in your pom.xml.
If you want to deploy your code to author instance running on the port 4502 then use
mvn clean install -PautoInstallPackage
If you want to deploy your code to publish instance running on the port 4503 then use
mvn clean install -PautoInstallPackagePublish
If you want to deploy your code to any other instance of AEM running of any port <port> the use
mvn clean install -PautoInstallPackage -Daem.port=<port>
Regards,
Arpit