Skip to content

Instantly share code, notes, and snippets.

@lprimak
Last active July 30, 2023 09:20
Show Gist options
  • Save lprimak/4c0ef39647c6def0b4b0aa676eb7f493 to your computer and use it in GitHub Desktop.
Save lprimak/4c0ef39647c6def0b4b0aa676eb7f493 to your computer and use it in GitHub Desktop.
How-to-run Payara things
# run Payara instance w/no connection to DAS
asadmin start-local-instance --nodedir $PAYARA_DOMAINDIR/payara/nodes —sync none inst1
# Build Payara w/Alpha Hazelcast
mvn -PskipTests,QuickBuild,deploy-internals -T6 -Dhazelcast.version=4.2-PALPHA-2 clean install
# What to put into glassfish/config/asenv.conf
export JAVA_TOOL_OPTIONS="-Djdk.util.zip.disableZip64ExtraFieldValidation=true --add-opens=java.base/java.io=ALL-UNNAMED"
AS_DEF_DOMAINS_PATH="${HOME}/var/payara-domains"
AS_DEF_NODES_PATH="${HOME}/var/payara-nodes"
# run Payara QuickLook tests
# assume domain in <payara_stage> not outside
# domain is started
# asadmin start-database is ran
mvn -f appserver/tests/quicklook/pom.xml -Dglassfish.home=$PAYARA_STAGE -Ddomain.name=quicklook test -Pall
# run individual test
ant -Dglassfish.home=$PAYARA_STAGE -Ddomain.name=quicklook all
# run quicklook cluster tests
ant -Dglassfish.home=$PAYARA_STAGE -Ddomain.name=quicklook cluster
# Payara Samples
mvn -Ppayara-server-remote,deploy-internals -Dhazelcast.version=4.2-PALPHA-2 -Dpayara.home=$PAYARA_STAGE/..
# Deploy Arquillian Containers (OMIT ::default:: in maven deploy 3.0.0-M1 plugin)
mvn deploy -PskipTests,-payara-community -DskipStaging \
-DaltDeploymentRepository=payara-nexus-artifacts::default::https://nexus.payara.fish/repository/payara-artifacts
# GAV
pmicro --deployfromgav com.flowlogix,jee-examples,4.0.1-SNAPSHOT --additionalrepository file:${HOME}/.m2/repository
# Payara Micro Deploy
pmicro --deployFromGAV fish.payara.arquillian,payara-micro-deployer,2.3.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment