sonarqube - Sonar Maven plugin is failing because of a newer maven assembler plugin, how can I get the new plugin to pass properties correctly? -


had update our maven assembler version 1.1.8 1.1.6. it's change happened , sonar maven plugin throwing exception:

[error] failed execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar      (default) on project reconcoverage: java.util.arraylist cannot cast java.lang.string -> 

plugins:

<groupid>org.codehaus.mojo</groupid> <artifactid>sonar-maven-plugin</artifactid> <version>2.7</version>  <groupid>com.corpname.raptor.build</groupid> <artifactid>assembler-maven-plugin</artifactid> <version>1.1.8</version> 

i have been looking week, upgrading assembler version required. no other teams experiencing issue upgrade because using sonar through jenkins. i'm using maven plugin because our project has many modules, , structures coverage results match it.

i have looked through sonar's code , seems happening in sonar.batch.bootstrap.userproperties. i'm guessing happening when sonar properties being passed in, items like: sonar.language, sonar.java.coverageplugin, sonar.host.url, etc. etc.

example of coverage properties:

<sonar.language>java</sonar.language> <sonar.java.coverageplugin>jacoco</sonar.java.coverageplugin> <sonar.host.url>http://corp.sonar.url/</sonar.host.url> <sonar.jdbc.url>jdbc:oracle:thin:@sonardb.corp.com:0000:sonardb</sonar.jdbc.url> <sonar.jdbc.username>username</sonar.jdbc.username> <sonar.jdbc.password>password</sonar.jdbc.password> <sonar.jdbc.driver>oracle.jdbc.driver.oraceldriver</sonar.jdbc.driver> 

according sonar's code, takes properties through map. , throws exception when 1 of strings array list. there anyway configure properties new maven assembler pass these values correctly?

we have implemented workaround in version 3.1.1 circumvent buggy plugins injecting non string properties: https://jira.sonarsource.com/browse/msonar-145

to use update pom.xml use:

<groupid>org.sonarsource.scanner.maven</groupid> <artifactid>sonar-maven-plugin</artifactid> <version>3.1.1</version> 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -