Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAYARA-1395 Allow full server to deploy applications from a maven repository and URLs #1446

Conversation

Pandrex247
Copy link
Member

Introduces a new asadmin command, deploy-remote-archive, that allows you to deploy an artefact from a URL, or by providing comma separated GAV (GroupId, ArtefactId, VersionNumber) coordinates and Maven repositories to check and download from (similar to how the feature works in Payara Micro).

The new command takes the same parameters as the standard deploy command, with the addition of a new parameter: --additionalRepositories.
This parameter accepts a comma separated list of URLs that Payara will search for Maven artefacts in (Payara will only check in Maven Central by default).

Command usage for deploying directly from a URL (as in, without GAV conversion): asadmin deploy-remote-archive url

For example:
asadmin deploy-remote-archive https://raw.github.com/Pandrex247/Payara_PatchedProjects/Payara-Maven-Deployer/fish/payara/testing/clusterjsp/1.1/clusterjsp-1.1.war

If you don't specify a name or context root for the artefact when deploying direct from a URL, it will simply be the file name with the archive type stripped off (in the example above, it would be clusterjsp-1.1).

Command usage for deploying using GAV coordinates: asadmin deploy-remote-archive --additionalRepositories repo1,repo2,...,repoN groupId,artefactId,VersionNumber

For example:
appserver/distributions/payara/target/stage/payara41/bin/asadmin deploy-remote-archive --additionalRepositories https://google.co.uk,https://raw.github.com/Pandrex247/Payara_PatchedProjects/Payara-Maven-Deployer fish.payara.testing,clusterjsp,1.1

If you don't specify a name or context root for the artefact when deploying using GAV coordinates, it will just be the artefact name (in the example above, it would be clusterjsp).

As of this PR, the command will only deploy from HTTP or HTTPS URLs.
Please note that although the command accepts Maven GAV coordinates, it does not actually make use of Maven, and so artefacts will not be saved into your local maven repository.

@Cousjava Cousjava changed the title PAAYRA-1395 Allow full server to deploy applications from a maven repository and URLs PAYRA-1395 Allow full server to deploy applications from a maven repository and URLs Mar 9, 2017
@Cousjava Cousjava changed the title PAYRA-1395 Allow full server to deploy applications from a maven repository and URLs PAYARA-1395 Allow full server to deploy applications from a maven repository and URLs Mar 9, 2017
@Pandrex247 Pandrex247 added this to the Payara 172 milestone Mar 10, 2017
@mulderbaba
Copy link
Contributor

jenkins test please

@payara-ci
Copy link
Contributor

All tests have passed

@smillidge smillidge merged commit 861d3c8 into payara:master Mar 18, 2017
@Pandrex247 Pandrex247 deleted the PAYARA-1395-Allow-full-server-to-deploy-applications-from-a-maven-repository branch August 29, 2018 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants