-
Notifications
You must be signed in to change notification settings - Fork 18
[Changes Requested] Maven plugin for appmap java recorder #46
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
[Changes Requested] Maven plugin for appmap java recorder #46
Conversation
|
Is there a spec for this @ptrdvrk ? My understanding was that we wanted to have the maven plugin add the Java agent to the jvm args. A command to make a recording could be interesting but the primary means for making recordings is running tests. |
|
@marcuss It seems that a part of this PR would be to publish to maven central? Or a related PR. |
|
@kgilpin the functional spec is here: https://docs.google.com/document/d/147EDYpBh1xdEw6KUaC1L2W3qmemC0mJPE5GgrK_iwmo/edit#heading=h.14ya0r1ubmbk |
|
@ptrdvrk this is still a work in progress, I will check the functional spec I had lost the link to it and make the necessary adjustments. |
|
@kgilpin @ptrdvrk |
appmap-java-maven-plugin/src/main/java/com/appland/appmap/LoadJavaAppMapAgentMojo.java
Show resolved
Hide resolved
…cal spec document demands.
|
First working version using console commands to load the agent. (needs a lot of refactoring) |
|
As per yesterday, I changed the project to work without any EPL portion of code and made all the options work as expected including one for skip execution of the agent. |
appmap-java-maven-plugin/src/main/java/com/appland/appmap/LoadJavaAppMapAgentMojo.java
Outdated
Show resolved
Hide resolved
Fixed issue with preexistent command line. Minor Refactor.
|
Added requested changes on xbootclasspath issue. |
dustinbyrne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great @marcuss, thank you for the hard work you've put into this. I've added a few naming related comments, then we're good to merge!
appmap-java-maven-plugin/src/main/java/com/appland/appmap/AppMapAgentMojo.java
Outdated
Show resolved
Hide resolved
|
@dustinbyrne is a bigger change, but... should I also change the folder name from to appmap-agent-maven-plugin ? |
…t is a maven plugin.
854fecf to
aded373
Compare
marcuss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went down the rabbit hole for 2 hours, still not even compiling in my machine.
researching could be related to java 8 and adding new dependencies to the pom
the fact that I could use it during all this time may be related to maven repo cache..
I will continue to work on this tomorrow.
appmap-java-maven-plugin/pom.xml
Outdated
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <groupId>org.appland</groupId> | ||
| <artifactId>appmap-java-maven-plugin</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dustinbyrne appmap-maven-plugin ?
removed java 8 dependencies, now the project can be compiled with java 1.7
dustinbyrne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
feat: AppMap Maven plugin (getappmap#46)
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
# 1.0.0 (2021-04-13) ### Bug Fixes * **gradle:** add debugging output ([8b63cfa](8b63cfa)) * **gradle:** add debugging output ([e577d30](e577d30)) * **gradle:** alternative way of specifying nexus credentials ([2df78dd](2df78dd)) * **gradle:** alternative way of specifying nexus credentials ([a018510](a018510)) * **gradle:** broken gradle directives ([b529ea2](b529ea2)) * **gradle:** fix typo ([7d11ffa](7d11ffa)) * **gradle:** troubleshoot testenv ([80e7b29](80e7b29)) * **gradle:** troubleshoot testenv ([5c16f70](5c16f70)) * Allow classes compiled without locals to be hooked ([0e0a0d3](0e0a0d3)) * Capture exceptions thrown from SQL interfaces ([9d1e66f](9d1e66f)) * disable http client requests ([getappmap#60](https://github.com/hleb-rubanau/appmap-java/issues/60)) ([2131d82](2131d82)) * Don't append System path to class pools ([681d74e](681d74e)) * improve path and package resolution ([getappmap#62](https://github.com/hleb-rubanau/appmap-java/issues/62)) ([c3ba3df](c3ba3df)) * Provide better error message when encountering an unknown event ([c69a877](c69a877)) ### Features * **docs:** improve CI documentation and also trigger the relase ([e6b5a8e](e6b5a8e)) * AppMap Maven plugin ([getappmap#46](https://github.com/hleb-rubanau/appmap-java/issues/46)) ([1798df2](1798df2)) * appmap.yml errors are logged to stderr ([e746253](e746253))
No description provided.