coala-bears icon indicating copy to clipboard operation
coala-bears copied to clipboard

Locate Java dependencies using maven metadata

Open jayvdb opened this issue 7 years ago • 6 comments

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.

jayvdb avatar Jan 03 '17 20:01 jayvdb

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

Techievena avatar Jan 15 '17 07:01 Techievena

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.

Techievena avatar Jan 15 '17 09:01 Techievena

I've created https://gitlab.com/coala/package_manager/issues/13 for MavenRequirement.

jayvdb avatar Jan 15 '17 13:01 jayvdb

PR submitted for https://gitlab.com/coala/package_manager/issues/13

Techievena avatar Jan 16 '17 13:01 Techievena

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.

jayvdb avatar Jan 21 '17 23:01 jayvdb

#1369 didnt solve this.

jayvdb avatar May 25 '19 16:05 jayvdb