Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Tycho + Sonar: No coverage on SonarQube due to missing javax.annotation.Nullable

Hi again,

> I hope this is the right mailing list for this kind of question, as it
> relates to Tycho and Sonar as used in our Hudson build jobs.

still not sure whether this is the right mailing list (if not:
apologies), but for the record, I found out what the root problem is:

Tycho correctly exposes the javax.annotation JAR on the classpath:

> [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ org.eclipse.recommenders.constructors.rcp.tests ---
> [INFO] org.eclipse.recommenders:org.eclipse.recommenders.constructors.rcp.tests:eclipse-test-plugin:2.2.0-SNAPSHOT
> [INFO] +- p2.eclipse-plugin:com.google.guava:jar:15.0.0.v201403281430:system
> [INFO] +- p2.eclipse-plugin:com.google.inject:jar:3.0.0.v201312141243:system
> [INFO] +- p2.eclipse-plugin:javax.inject:jar:1.0.0.v20091030:system
> [INFO] +- p2.eclipse-plugin:javax.annotation:jar:1.2.0.v201401042248:system
> [INFO] +- p2.eclipse-plugin:javax.xml:jar:1.3.4.v201005080400:system

but the javax.annotation JAR (AFAIK, also correctly) does not contain
javax.annotation.Nullable.

So, everything works as expected *but* that doesn't mean that this is
satisfactory; for us, SonarQube reports wrong coverage data.

Can anyone can think of any workarounds?

Best wishes,

Andreas

-- 
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top