Provide Maven integration instruction
See original GitHub issueSee a well explained Gradle integration example. Would be good
- To confirm if the tool would work with
maven
- If yes, a sample project would help.
BTW, tried on my maven project and struck with below error. Any help would be appreciated.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project myapp: Compilation failure [ERROR] javac: invalid flag: -Xep:PatchChecks:Piranha [ERROR] Usage: javac <options> <source files> [ERROR] use --help for a list of possible options
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Maven in 5 Minutes
Maven is a Java tool, so you must have Java installed in order to proceed. First, download Maven and follow the installation instructions....
Read more >Jenkins Maven Configuration - Tools QA
The Maven Plugin is a plugin that provides the capabilities to configure, build, and run Maven-based projects in Jenkins.
Read more >Using Maven within the Eclipse IDE - Tutorial - Vogella.com
1. Using Maven with the Eclipse IDE. The Eclipse IDE provides support for the Maven build. This support is developed in the M2Eclipse...
Read more >Mule Maven Plugin - MuleSoft Documentation
Each goal accepts parameters that are unique to the desired plugin behavior. To provide a parameter from the command line, prepend -D to...
Read more >Maven in Eclipse: step by step installation - Stack Overflow
Open Eclipse · Go to Help -> Eclipse Marketplace · Search by Maven · Click "Install" button at "Maven Integration for Eclipse" section...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sivacoder I have updated instructions for Maven. See here.
There were a few typos in your
pom.xml
.-Xep:PatchChecks:Piranha -Xep:PatchLocation:IN_PLACE
should have been-XepPatchChecks:Piranha -XepPatchLocation:IN_PLACE
.It works for the example given for PiranhaJava. For the specific example given by you, since the flag name is a string literal (“dummy-flag”) as opposed to some symbol, Piranha fails to refactor. If this is a blocker, let us know. It will be a simple fix to the check here.
I think you need to combine all the error prone arguments into a single Maven compiler
arg
when Error Prone is used as a plugin. See the example here:https://github.com/google/error-prone/issues/1242#issuecomment-554964390