this repo contains examples for PoetryHook
to compile everything, run
mvn package -Pbuild-app
mvn package -Pbuild-agent
mvn package -Pbuild-injectorto run the application, run
java -jar target/PoetryHookExampleApp.jarto inject the agent, run
java -jar target/PoetryHookExampleInjector.jar <agent-path> inject <pid>with <agent-path> being the path to the agent (a good default is target/PoetryHookExampleAgent-1.0.0.jar) and <pid> being the process id on your system of the running example app. it is printed on startup by the app.
to eject the agent, run
java -jar target/PoetryHookExampleInjector.jar <agent-path> eject <pid>