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

Infer maven: Error loading property file '****/${env}.properties #1074

Open
dreaminplus opened this issue Mar 19, 2019 · 2 comments
Open

Infer maven: Error loading property file '****/${env}.properties #1074

dreaminplus opened this issue Mar 19, 2019 · 2 comments

Comments

@dreaminplus
Copy link

@dreaminplus dreaminplus commented Mar 19, 2019

When using mvn clean compile, everything goes well.
But when using infer -- mvn clean compile, report error:
Error loading property file '****/${env}.properties

Target Project URL: https://github.com/shuzheng/zheng

@dreaminplus
Copy link
Author

@dreaminplus dreaminplus commented Mar 19, 2019

After debugging, I found that if maven doesn't specify env properties, it uses dev by default. So mvn clean compile is OK.
But Infer doesn't use this, so it failed by default. If I should specify env value by -Denv=dev, i.e. infer -- mvn clean compile -Denv=prod, everything goes well.
So here could I think it's a bug of Infer?

@martintrojer
Copy link
Contributor

@martintrojer martintrojer commented Apr 17, 2019

Hi! yes sounds like an area that could be improved. Thanks for reporting.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.