I’m trying to use “atlas-install-plugin” to install my app to a remote server, but it always uses “http://” prefix for server names. I’ve tried all the input parameters, but it always sends installation request to “http://…my-server”.
Is it possible to use “https://” prefix?
Command example:
atlas-install-plugin --server example.com --http-port 443 --plugin-key my.app.key --username admin --password secret --context-path ""
1 Like
Hi @AndreiPisklenov,
Thanks for posting to Developer Community. Looks like this is a known issue which you can see here
There are some steps about how to get around this limitation, but it I think what you want to do is try
atlas-install-plugin --server https://example.com --http-port 443 --plugin-key my.app.key --username admin --password secret --context-path ""
Most of the steps in the bug report are to ensure your local java install recognises your certificate of your server. If the server is using a certificated signed by a domain authority (e.g. it’s a purchased certificate and not self-signed) then you won’t need to import the certificate.
I suspect the reference to atlas-cli
is out of date, as the ticket is quite old.
If this doesn’t work (I don’t have a secured server instance on hand) let me know and I’ll chase this up.
Regards,
James.
Hi @jrichards,
that is exactly how I am using the atlas-install-plugin
command and it worked perfectly.
But this week I updated the AMPS version in my pom.xml
of my plugin from 8.1.2 to 8.8.1 and it stopped working. I could figure out that starting with AMPS 8.3.0 the following error occurs:
[ERROR] Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.8.1:install (default-cli) on project [...]: Unable to execute mojo: Execution null of goal com.atlassian.maven.plugins:atlassian-pdk:2.3.3:install failed: java.net.UnknownHostException: https: Unknown host https
I am using Atlassian SDK 8.2.7 with (updated to) Maven 3.8.6 and AMPS 8.8.1. The AMPS version of the toolchain has no effect on this issue. Only the AMPS version specified in the pom.xml
for the confluence-maven-plugin
matters.
Do you have any glue what was changed to make this stop working?
Greetings, Daniel
I have the same error. Did you find a solution?
If I try to use the server name only without https and port 443 I have the error:
[ERROR] Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:install (default-cli) on project testOfficePlugin: Install Plugin: Upload failed[400]: Bad Request -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:install (default-cli) on project testOfficePlugin: Install Plugin: Upload failed[400]: Bad Request
Can we use PAT token instead of user name and password ?