-
Notifications
You must be signed in to change notification settings - Fork 111
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
Incorrect warning about unused declared dependencies causes build failure #782
Comments
I have tested it on Win7, Maven 3.3.9, Java 1.8.0_77 and I have same behavior. |
@TheJavaGuy interesting, we usually didn't have problems if it wasn't annotation |
@TheJavaGuy thanks for the report |
@davvd valid bug |
@davvd this is postponed |
@krzyk for the record, this is caused by the fact that annotations are not taken into account by bytecode analysis. This is a known problem with
|
@krzyk just to add to @victornoel's comment above, this will also apply when only constants are referenced from the jar. ( |
Unused declared dependencies found: can anyone please help me out with this one? |
+1 |
In some situations Qulice incorrectly reports "Unused declared dependencies found" which causes build failure. In reality, the dependency is used in code. Maven dependency plugin 2.10 reports "No dependency problems found" on the same project. This could maybe be due to Qulice using version 1.5 of Apache Maven Dependency Analyzer while version 1.6 exists (http://mvnrepository.com/artifact/org.apache.maven.shared/maven-dependency-analyzer)
Steps to reproduce:
After step 4 Qulice will report [WARNING] Unused declared dependencies found:
org.thejavaguy:rng:jar:0.0.2:compile and fail the build. More detailed log is attached here bug_qulice_dependency_log.txt
When you try
mvn -e clean dependency:analyze -PNoQulice
you'll see that all dependencies are OK: [INFO] No dependency problems foundEnvironment used: Ubuntu 14.04LTS, Maven 3.3.9, Java 1.8.0_91
The text was updated successfully, but these errors were encountered: