简体   繁体   English

我如何打印有关您的Java项目的信息

[英]How can I print information about your Java project

Is there a command line tool or a maven plugin to easily print out information about your project? 是否有命令行工具或Maven插件可以轻松打印出有关您的项目的信息?

For example 例如

  • give me all the classes and methods with @Test annotations. 给我所有带有@Test批注的类和方法。
  • give me all the classes with @Ignore annotations. 给我所有带有@Ignore批注的类。
  • list all methods in class 列出类中的所有方法

etc.. 等等..

Currently, I keep writing maven plugins that load classes and iterate over them, but I would like to find some tool to do the job for me. 目前,我一直在编写加载类并对其进行迭代的maven插件,但是我想找到一些工具来为我完成这项工作。

Think about using jQAssistant - it scans artifacts and puts the results into a Neo4j database. 考虑使用jQAssistant-它会扫描工件并将结果放入Neo4j数据库中。 Then you can query the database for the things you mentioned (and much more). 然后,您可以查询数据库中提到的内容(以及更多)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM