Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win10下同一个段代码,eclipse、maven插件检测不出问题,idea可以。 #645

Open
amogege opened this issue Feb 20, 2020 · 2 comments

Comments

@amogege
Copy link

amogege commented Feb 20, 2020

Describe the bug
环境:window10 1909
JDK: 1.8.0_181 64位
插件 :2.0.1
扫描如下代码:
private void refreshZuulProperties(ConfigChangeEvent changeEvent) {
log.info("Refreshing gateway properties!");
this.publisher.publishEvent(new EnvironmentChangeEvent(changeEvent.changedKeys()));
//this.applicationContext.publishEvent(new RefreshScopeRefreshedEvent(routeLocator));
this.publisher.publishEvent(new RefreshRoutesEvent(routeLocator));
log.info("gateway properties refreshed!");
}
IDEA扫描出 及时清理不再使用的代码段或配置信息
eclipse 扫描没问题
mvn verify 扫描没问题(但在linux下 扫描出 及时清理不再使用的代码段或配置信息)

@amogege
Copy link
Author

amogege commented Feb 20, 2020

还有 阿里规约扫描插件把resources目录下templates内容(controller.java.vm)也扫描了,提示下面错误
后台输送给页面的变量必须加感叹号,${var}——中间加感叹号!

最后,怎样设置只让它扫描java文件呢

@XenoAmess
Copy link

插件 他们 好像没做exclude功能。
不过maven plugin他们倒是有做excluse功能。。。
感觉一套exclude方案的话还是比较有必要的
建议官方加上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants