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

Need help when using infer run or capture during maven compilation #1803

Open
5 tasks done
Yuxiang-M opened this issue Dec 22, 2023 · 1 comment
Open
5 tasks done

Comments

@Yuxiang-M
Copy link

Yuxiang-M commented Dec 22, 2023

Please make sure your issue is not addressed in the FAQ.

Please include the following information:

  • The version of infer from infer --version.
    - Infer version v1.1.0
  • Your operating system and version, for example "Debian 9", "MacOS High Sierra", whether you are using Docker, etc.
    Ubuntu 22.04.3 LTS
  • Which command you ran, for example infer -- make.
  • infer capture -- mvn -DskipTests -Drat.skip=true clean compile
  • The full output in a paste, for instance a gist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project
 gson: Compilation failure -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Usage Error: *** Maven command failed:
*** mvn -DskipTests -Drat.skip=true clean compile -P infer-capture
*** exited with code 1
  • If possible, a minimal example to reproduce your problem (for instance, some code where
    infer reports incorrectly, together with the way you run infer to reproduce the incorrect
    report).
    when I was running infer on projects google-gson, it came out like
    Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project
    but when I build with maven alone, with command
    mvn -DskipTests -Drat.skip=true clean compile
    it is successful, I don't know where the problem is, and hope that someone can help solve this
    BTW, my jdk version== 17,mvn version ==3.8
@Yuxiang-M
Copy link
Author

i tried deleting .m2/repository directory, it is useless

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

1 participant