[英]How to search for a word inside all the Java classes from target in Intellij generated after mvn build?
I'm learning Java with Maven projects using Intellij, and when I run mvn clean install
, it creates the target directory and inside target, there is WEB-INF...我正在使用 Intellij 学习 Java 和 Maven 项目,当我运行
mvn clean install
时,它会创建目标目录和内部目标,有 WEB-INF ...
I want to ask you how can I search for a word inside all the classes from target directory, inside all the WEB-INF.我想问你如何在目标目录的所有类中,在所有 WEB-INF 中搜索一个单词。
To search for a word in Intellij inside src\main\java I'm using CTRL + SHIFT +F, but this command doesn't work to search inside target\WEB-INF...要在 src\main\java 内的 Intellij 中搜索单词,我使用的是 CTRL + SHIFT +F,但此命令无法在 target\WEB-INF 内搜索...
I have a lot of classes generated from mvn build, and these classes aren't int the src\main\java and I want to ask you how to search inside them?我有很多从 mvn build 生成的类,这些类不在 src\main\java 中,我想问你如何在它们里面搜索?
Thank you!谢谢!
Remember that a development enviroment are just folders.请记住,开发环境只是文件夹。
If you are using linux you can use:如果您使用的是 linux,您可以使用:
grep -R "content_to_search" /path/to/directory
A quick search on windows should find you the answer.快速搜索 windows 应该会找到答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.