Skip to content

Instantly share code, notes, and snippets.

View lprimak's full-sized avatar

Lenny Primak lprimak

View GitHub Profile
@lprimak
lprimak / payara-test-warlibs
Last active February 13, 2025 18:43
How to test Payara Warlibs
get https://github.com/lprimak/apps/
cd starter-generator
mvn dependency:copy-dependencies
mvn package -Dskinny.war
cp target/dependency/* <payara_domain_dir>/lib/warlibs
(start domain)
asadmin deploy --name sg --force --properties warlibs=true target/starter-generator-1.x-SNAPSHOT.war
@lprimak
lprimak / coverage-setup
Last active December 7, 2024 20:49
Coverage setup for Payara
# (flowlogix)
mvn -ntp initialize help:evaluate '-P?payara-server-local,?coverage' \
-Dexpression=jacocoAgent -q -DforceStdout -DjacocoPort=14948 -N \
-Djacoco.destFile=target/jacoco-it.exec \
-Dmaven.build.cache.enabled=false
# (shiro)
mvn -ntp initialize help:evaluate '-P?payara-server-local,?ci,?coverage' \
-Dexpression=jacocoAgent -q -DforceStdout -DjacocoPort=14948 -pl :jakarta-ee-support \
-Djacoco.destFile=target/jacoco-it.exec \
@lprimak
lprimak / leak-check
Created October 6, 2024 16:43
Payara ClassLoader leak check
asadmin deploy ~/dev/infra/scripts/cloud/k8s/payara-deploy/ClassloaderDataAPI.war
curl http://localhost:8080/ClassloaderDataAPI/api/instance-count/webapp/
@lprimak
lprimak / maven-tips.txt
Last active September 9, 2024 00:48
Maven tips and tricks
https://gist.github.com/cstamas/6d2a96abf16fc7e25608479089e285f6
https://gist.github.com/cstamas/93ed8a49a609c0e035c1319990c78606
https://gist.github.com/cstamas/0ac04cad0b1b30d1be710e826ef4712f
mvn eu.maveniverse.maven.plugins:toolbox:0.2.4:help -Ddetail
jbang toolbox@maveniverse
> dm-tree org.springframework.boot:spring-boot-dependencies:3.3.3
-- Repo spec
@lprimak
lprimak / github-lfs-config
Last active November 12, 2023 08:41
GitHub ( and Git LFS) configuration
git config --global --add lfs.url https://nexus.hope.nyc.ny.us/repository/flowlogix-assets/info/lfs
git config --global --add core.eol lf
git config --global --add core.autocrlf false
git config --global --add credential.helper osxkeychain
The credential helper can be store on non-interactive nodes, provided the ~/.git-credentials is present
@lprimak
lprimak / jakarta-ee-api-10-maint
Last active November 6, 2023 16:57
How to recreate jakarta ee 10 maint branch
- Create 10.maint branch from master
- git revert 3d8aa9ef97055b789edcf51b596fe30e4d08e33d - Add Jakarta Annotations M1 (#142)
@lprimak
lprimak / lftp
Created October 21, 2023 23:57
lftp command line howto
lftp -u \$ftpcreds_USR --env-password -e \
'mirror -R -P7 -x .git --overwrite --delete --delete-excluded \
target/output hope_website/resume; exit top' ftp://${websiteHost()}
@lprimak
lprimak / run-ui-tests
Last active March 2, 2025 19:23
How to run UI tests
mvnd verify -Pui-test -Ddrone.browser=chrome -Dfailsafe.runOrder.random.seed=249080698557158 -Dtest=none -Dsurefire.failIfNoSpecifiedTests=false
@lprimak
lprimak / run_test_arq_suite
Last active February 9, 2024 06:57
run arquillian test suite with docker and latest JDK and payara
mvnd verify -P-payara-server-remote -Dmaven.compiler.release=21 -DimageName=payara/server-full:6.2023.12-jdk21
# start docker with host-wide networking and access to socket
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock --net=host runner
# Test with k8s Payara:
mvnd verify -Ppayara-k8s -DadminHost=10.0.62.3
@lprimak
lprimak / hazelcast-run
Last active June 23, 2023 22:01
How to run Hazelcast things
# run CacheTester
mvn -Prun test -Dhz.port=5710 -Dhz.raft=true -Dhz.discovery.spi=false
# run Hazelcast single-jvm-tests only
mvn -PparallelTest initialize surefire:test@singlejvm
# How to make multi-homed host
$ sudo ifconfig en0 alias 172.16.123.1