Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sonar keeps downloading plugins for every analysis

 
Ken White
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a bit of a problem. I have installed, setup and configured sonar (version 2.12) per teh instructions, and have added a bunch of plugins via the configuration panel accessed from my local sonar web site. Running each build seems to take alot of time so digging further I noticed that it seems to be downloading the every time I run a sonar task even though all of the plugins already exist in my sonar-2.12/extensions/plugins directory. Anyone got a clue how I can stop this download? It adds TONS of time to my sonar analysis and will preclude me from running sonar when I am not connected to the internet.

Here is the ant output using "ant -v":

Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Detected Java version: 1.6 in: C:\Program Files (x86)\Java\jdk1.6.0_29\jre
Detected OS: Windows 7
parsing buildfile C:\MYPROJECT\sonar\build.xml with URI = file:/C:/MYPROJECT/sonar/build.xml
Project base dir set to: C:\MYPROJECT\sonar
[antlibrg.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
[echo] ------------------------------------------------------------------------------------------------------------------
[echo] Executing sonar on all of MYPROJECT products
[echo] ------------------------------------------------------------------------------------------------------------------
[property] Loading Environment env.
parsing buildfile jar:file:/C:/apache-ant-1.7.0/lib/sonar-ant-task-1.3.jar!/org/sonar/ant/antlib.xml with URI = jar:file:/C:/apache-ant-1.7.0/lib/sonar-ant-task-1.3.jar!/org/sonar/ant/antlib.xml
parsing buildfile jar:file:/C:/sonar-2.12/lib/sonar-ant-task-1.3.jar!/org/sonar/ant/antlib.xml with URI = jar:file:/C:/sonar-2.12/lib/sonar-ant-task-1.3.jar!/org/sonar/ant/antlib.xml
Build sequence for target(s) `all' is [clean, sonar, all]
Complete build sequence is [clean, sonar, all, ]

clean:
------- Clean sonar cache here Removed the debug statements to decrease this listing. -------

sonar:
Project base dir set to: C:\MYPROJECT\sonar
[ant] calling target(s) [default] in build file C:\MYPROJECT\sonar\App_appshared.xml
parsing buildfile C:\MYPROJECT\sonar\App_appshared.xml with URI = file:/C:/MYPROJECT/sonar/App_appshared.xml
Project base dir set to: C:\MYPROJECT\sonar
[ant] Entering C:\MYPROJECT\sonar\App_appshared.xml...
Build sequence for target(s) `sonar' is [sonar]
Complete build sequence is [sonar, ]

sonar:
[echo] ------------------------------------------------------------------------------------------------------------------
[echo] App Shared Sonar
[echo] ------------------------------------------------------------------------------------------------------------------
parsing buildfile jar:file:/C:/apache-ant-1.7.0/lib/sonar-ant-task-1.3.jar!/org/sonar/ant/antlib.xml with URI = jar:file:/C:/apache-ant-1.7.0/lib/sonar-ant-task-1.3.jar!/org/sonar/ant/antlib.xml
[sonar:sonar] Apache Ant version 1.7.0 compiled on December 13 2006
[sonar:sonar] Sonar Ant Task version: 1.3
[sonar:sonar] Loaded from: file:/C:/apache-ant-1.7.0/lib/sonar-ant-task-1.3.jar
[sonar:sonar] Sonar work directory: C:\MYPROJECT\sonar\.sonar
[sonar:sonar] Sonar server: http://localhost:9000
[sonar:sonar] Sonar version: 2.12
[sonar:sonar] 15:35:02.760 DEBUG Temporary directory: C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285
[sonar:sonar] 15:35:02.762 DEBUG Downloading JDBC driver to C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\jdbc-driver.jar
[sonar:sonar] 15:35:02.762 DEBUG Download: http://localhost:9000/deploy/jdbc-driver.jar (no proxy)
[sonar:sonar] 15:35:03.394 INFO Create JDBC datasource
[sonar:sonar] 15:35:03.716 DEBUG Logging initialized using 'org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
[sonar:sonar] 15:35:03.726 INFO Initializing Hibernate
[sonar:sonar] 15:35:03.728 DEBUG hibernate.generate_statistics: false
[sonar:sonar] 15:35:03.728 DEBUG hibernate.dialect: org.sonar.jpa.dialect.MySql$MySqlWithDecimalDialect
[sonar:sonar] 15:35:03.728 DEBUG hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider
[sonar:sonar] 15:35:03.728 DEBUG hibernate.hbm2ddl.auto: validate
[sonar:sonar] 15:35:04.785 DEBUG Downloading index of plugins
[sonar:sonar] 15:35:04.785 DEBUG Download: http://localhost:9000/deploy/plugins/index.txt (no proxy)
[sonar:sonar] 15:35:04.792 DEBUG Downloading plugin findbugs into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\findbugs
[sonar:sonar] 15:35:04.792 DEBUG Download: http://localhost:9000/deploy/plugins/findbugs/sonar-findbugs-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:35:28.839 DEBUG Downloading plugin clirr into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\clirr
[sonar:sonar] 15:35:28.839 DEBUG Download: http://localhost:9000/deploy/plugins/clirr/sonar-clirr-plugin-1.1.jar (no proxy)
[sonar:sonar] 15:35:28.884 DEBUG Downloading plugin jmeter into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\jmeter
[sonar:sonar] 15:35:28.885 DEBUG Download: http://localhost:9000/deploy/plugins/jmeter/sonar-jmeter-plugin-0.2.jar (no proxy)
[sonar:sonar] 15:35:39.929 DEBUG Downloading plugin l10nen into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\l10nen
[sonar:sonar] 15:35:39.929 DEBUG Download: http://localhost:9000/deploy/plugins/l10nen/sonar-l10n-en-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:35:41.851 DEBUG Downloading plugin taglist into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\taglist
[sonar:sonar] 15:35:41.851 DEBUG Download: http://localhost:9000/deploy/plugins/taglist/sonar-taglist-plugin-1.0.jar (no proxy)
[sonar:sonar] 15:35:41.883 DEBUG Downloading plugin pdfreport into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\pdfreport
[sonar:sonar] 15:35:41.884 DEBUG Download: http://localhost:9000/deploy/plugins/pdfreport/sonar-pdfreport-plugin-1.2.1.jar (no proxy)
[sonar:sonar] 15:35:41.917 DEBUG Downloading plugin cpd into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\cpd
[sonar:sonar] 15:35:41.917 DEBUG Download: http://localhost:9000/deploy/plugins/cpd/sonar-cpd-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:35:45.647 DEBUG Downloading plugin switchoffviolations into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\switchoffviolations
[sonar:sonar] 15:35:45.647 DEBUG Download: http://localhost:9000/deploy/plugins/switchoffviolations/sonar-switch-off-violations-plugin-1.0.jar (no proxy)
[sonar:sonar] 15:35:45.677 DEBUG Downloading plugin fbcontrib into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\fbcontrib
[sonar:sonar] 15:35:45.677 DEBUG Download: http://localhost:9000/deploy/plugins/fbcontrib/sonar-fb-contrib-plugin-1.1.jar (no proxy)
[sonar:sonar] 15:35:46.634 DEBUG Downloading plugin totalquality into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\totalquality
[sonar:sonar] 15:35:46.634 DEBUG Download: http://localhost:9000/deploy/plugins/totalquality/sonar-total-quality-plugin-1.0.2.jar (no proxy)
[sonar:sonar] 15:35:46.696 DEBUG Downloading plugin pmd into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\pmd
[sonar:sonar] 15:35:46.697 DEBUG Download: http://localhost:9000/deploy/plugins/pmd/sonar-pmd-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:35:53.121 DEBUG Download: http://localhost:9000/deploy/plugins/pmd/README.txt (no proxy)
[sonar:sonar] 15:35:59.472 DEBUG Downloading plugin squidjava into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\squidjava
[sonar:sonar] 15:35:59.473 DEBUG Download: http://localhost:9000/deploy/plugins/squidjava/sonar-squid-java-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:36:03.799 DEBUG Downloading plugin uselesscodetracker into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\uselesscodetracker
[sonar:sonar] 15:36:03.799 DEBUG Download: http://localhost:9000/deploy/plugins/uselesscodetracker/sonar-useless-code-tracker-plugin-0.4.jar (no proxy)
[sonar:sonar] 15:36:07.538 DEBUG Downloading plugin emailnotifications into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\emailnotifications
[sonar:sonar] 15:36:07.538 DEBUG Download: http://localhost:9000/deploy/plugins/emailnotifications/sonar-email-notifications-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:36:09.139 DEBUG Downloading plugin javascript into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\javascript
[sonar:sonar] 15:36:09.140 DEBUG Download: http://localhost:9000/deploy/plugins/javascript/sonar-javascript-plugin-0.3.jar (no proxy)
[sonar:sonar] 15:36:12.179 DEBUG Downloading plugin violationdensity into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\violationdensity
[sonar:sonar] 15:36:12.179 DEBUG Download: http://localhost:9000/deploy/plugins/violationdensity/sonar-violationdensity-plugin-1.2.jar (no proxy)
[sonar:sonar] 15:36:12.218 DEBUG Downloading plugin web into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\web
[sonar:sonar] 15:36:12.218 DEBUG Download: http://localhost:9000/deploy/plugins/web/sonar-web-plugin-1.1.jar (no proxy)
[sonar:sonar] 15:36:13.687 DEBUG Downloading plugin xml into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\xml
[sonar:sonar] 15:36:13.687 DEBUG Download: http://localhost:9000/deploy/plugins/xml/sonar-xml-plugin-0.1.jar (no proxy)
[sonar:sonar] 15:36:13.907 DEBUG Downloading plugin jacoco into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\jacoco
[sonar:sonar] 15:36:13.908 DEBUG Download: http://localhost:9000/deploy/plugins/jacoco/sonar-jacoco-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:36:15.373 DEBUG Downloading plugin radiator into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\radiator
[sonar:sonar] 15:36:15.373 DEBUG Download: http://localhost:9000/deploy/plugins/radiator/sonar-radiator-plugin-1.1.jar (no proxy)
[sonar:sonar] 15:36:15.415 DEBUG Downloading plugin flex into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\flex
[sonar:sonar] 15:36:15.415 DEBUG Download: http://localhost:9000/deploy/plugins/flex/sonar-flex-plugin-0.4.jar (no proxy)
[sonar:sonar] 15:36:15.523 DEBUG Downloading plugin csvexport into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\csvexport
[sonar:sonar] 15:36:15.524 DEBUG Download: http://localhost:9000/deploy/plugins/csvexport/sonar-csv-export-plugin-1.2.jar (no proxy)
[sonar:sonar] 15:36:15.551 DEBUG Downloading plugin surefire into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\surefire
[sonar:sonar] 15:36:15.551 DEBUG Download: http://localhost:9000/deploy/plugins/surefire/sonar-surefire-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:36:15.588 DEBUG Downloading plugin jira into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\jira
[sonar:sonar] 15:36:15.589 DEBUG Download: http://localhost:9000/deploy/plugins/jira/sonar-jira-plugin-0.3.jar (no proxy)
[sonar:sonar] 15:36:20.597 DEBUG Downloading plugin checkstyle into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\checkstyle
[sonar:sonar] 15:36:20.597 DEBUG Download: http://localhost:9000/deploy/plugins/checkstyle/sonar-checkstyle-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:36:22.323 DEBUG Download: http://localhost:9000/deploy/plugins/checkstyle/README.txt (no proxy)
[sonar:sonar] 15:36:23.990 DEBUG Downloading plugin core into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\core
[sonar:sonar] 15:36:23.990 DEBUG Download: http://localhost:9000/deploy/plugins/core/sonar-core-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:36:24.878 DEBUG Downloading plugin artifactsize into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\artifactsize
[sonar:sonar] 15:36:24.878 DEBUG Download: http://localhost:9000/deploy/plugins/artifactsize/sonar-artifact-size-plugin-0.3.jar (no proxy)
[sonar:sonar] 15:36:24.905 DEBUG Downloading plugin dbcleaner into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\dbcleaner
[sonar:sonar] 15:36:24.905 DEBUG Download: http://localhost:9000/deploy/plugins/dbcleaner/sonar-dbcleaner-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:36:24.983 DEBUG Downloading plugin cobertura into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\cobertura
[sonar:sonar] 15:36:24.983 DEBUG Download: http://localhost:9000/deploy/plugins/cobertura/sonar-cobertura-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:36:25.016 DEBUG Downloading plugin buildbreaker into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\buildbreaker
[sonar:sonar] 15:36:25.016 DEBUG Download: http://localhost:9000/deploy/plugins/buildbreaker/sonar-build-breaker-plugin-1.0.jar (no proxy)
[sonar:sonar] 15:36:25.035 DEBUG Downloading plugin design into C:\Users\KENNET~1.WHI\AppData\Local\Temp\1\sonar-batch287635515292874715319595480958285\plugins\design
[sonar:sonar] 15:36:25.035 DEBUG Download: http://localhost:9000/deploy/plugins/design/sonar-design-plugin-2.12.jar (no proxy)
[sonar:sonar] 15:36:27.001 INFO ------------- Analyzing MYPROJECT - AppShared

------- Analysis continues and is successful including the plugins downloaded --------
 
Ken White
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK I partialy answered my own question. It seems sonar donloads the its own copy of the plugins from the sonar-2.12/extensions/plugins directory to the temp folders then executes them from their. is there a way of configuring sonar not to do this, make it expect to find the plugins localy? This adds a minute and a half to each sonar run and I am running sonar to analize 20 projects (so about 30 minutes added to my analysis).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic