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

Cannot analyze maven project? #21

Closed
MichaelScofield opened this issue Jun 12, 2015 · 6 comments
Closed

Cannot analyze maven project? #21

MichaelScofield opened this issue Jun 12, 2015 · 6 comments
Assignees

Comments

@MichaelScofield
Copy link

I have a maven project with multiple modules, like the following structure:

MyProject
|- MyModule1
|- MyModule2
|- pom.xml

I ran "infer -- mvn package", but it just printing

TODO: print error message
There was nothing to analyze, exiting

@martinoluca
Copy link
Contributor

could you please report your version of java/javac?
java -version
javac -version

@ericdcobb
Copy link

When I run infer with mvn package I get the same error I reported here

@monkeytest15
Copy link

I get the same error in the mvn project

ec2-54-67-1-102:biz monkey$ infer -- mvn install
TODO: print error message
There was nothing to analyze, exiting

and java info

java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

@MichaelScofield
Copy link
Author

@martinoluca This is my java and javac version:

java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

javac -version
javac 1.8.0_05

@martinoluca
Copy link
Contributor

@monkeytest15 is the install target also re-building your source code? Usually targets like compile are doing the compilation itself (which is what Infer needs to perform the analysis). Alternatively, have you tried cleaning your build with mvn clean?

@irpap irpap added java and removed java labels Jun 15, 2015
@jvillard
Copy link
Contributor

Closing as a probable duplicate of #30. A workaround for now is to install java and javac at version 1.7.

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

7 participants