coala-bears
coala-bears copied to clipboard
Locate Java dependencies using maven metadata
There are at least two Java dependencies where the Fedora and Ubuntu packages provide maven metadata that could be used to find the jar files
- pmd : https://github.com/coala/coala-bears/issues/804
- checkstyle : https://github.com/coala/coala-bears/issues/1250 (https://github.com/coala/coala-bears/issues/626)
We probably need a new
MavenRequirement
in http://gitlab.com/coala/package_manager/ , which then needs to be used by the bears implemented in Java.
Getting these .jar
files from maven metadata
https://repo.maven.apache.org/maven2/com/puppycrawl/tools/checkstyle/6.15/checkstyle-6.15.jar
https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd/5.0.1/pmd-5.0.1.jar
or we can use suitable version if we wish for
Please tell me the use of install_command( ). Does it installs the package or returns a string displaying how to install the package? I am a bit confused.
I've created https://gitlab.com/coala/package_manager/issues/13 for MavenRequirement.
PR submitted for https://gitlab.com/coala/package_manager/issues/13
You may need to do a quick PR like https://github.com/coala/coala-bears/pull/1300 , to bring in the latest coala, or you could include a commit like that in your PR for this or for https://github.com/coala/coala-bears/issues/1250.
#1369 didnt solve this.