Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
ON issue SONARPLUGINS-1320 it was suggested to add
-Djavascript.sourceDirectory=src/main/webapp/resources/javascript
to override the project's pom's sourceDirectory. (we cannot update the pom as it is a java project that contains javascript... a pretty common occurrence SONAR-926.
Anyway that property is ignored altogether by the plugin, and still tries to analyze the java directory.
mvn sonar:sonar -Dsonar.host.url=http://hostname:8092/sonar -Dsonar.jdbc.url=jdbc:mysql://hostname:3306/sonar -Dsonar.jdbc.username=sonar -Dsonar.jdbc.password={aes}secrethash== -Dsonar.language=js -Dsonar.branch=js-branch -Djavascript.sourceDirectory=src/main/webapp/resources/javascript -DskipTests=true -DskipITs=true -Dsonar.skipDesign=true -Dtest=false -Dsonar.dynamicAnalysis=falsebut once executed it still says:
[INFO] [10:30:33.682] Source directories:
[INFO] [10:30:33.682] C:\usr\workspaces\myproject\src\main\java
[INFO] [10:30:33.682] Test directories:
[INFO] [10:30:33.682] C:\usr\workspaces\myproject\src\test\java