You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 54KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>org.codehaus.sonar</groupId>
  6. <artifactId>sonar</artifactId>
  7. <packaging>pom</packaging>
  8. <version>5.2-SNAPSHOT</version>
  9. <name>SonarQube</name>
  10. <url>http://www.sonarqube.org/</url>
  11. <description>Open source platform for continuous inspection of code quality</description>
  12. <modules>
  13. <module>sonar-plugin-api-deps</module>
  14. <module>sonar-application</module>
  15. <module>sonar-batch</module>
  16. <module>sonar-batch-protocol</module>
  17. <module>sonar-batch-shaded</module>
  18. <module>sonar-check-api</module>
  19. <module>sonar-colorizer</module>
  20. <module>sonar-core</module>
  21. <module>sonar-db</module>
  22. <module>sonar-duplications</module>
  23. <module>sonar-home</module>
  24. <module>sonar-markdown</module>
  25. <module>sonar-plugin-api</module>
  26. <module>server</module>
  27. <module>sonar-testing-harness</module>
  28. <module>plugins/sonar-xoo-plugin</module>
  29. <module>plugins/sonar-batch-maven-plugin</module>
  30. </modules>
  31. <organization>
  32. <name>SonarSource</name>
  33. <url>http://www.sonarsource.com</url>
  34. </organization>
  35. <inceptionYear>2009</inceptionYear>
  36. <issueManagement>
  37. <system>jira</system>
  38. <url>http://jira.sonarsource.com/browse/SONAR</url>
  39. </issueManagement>
  40. <distributionManagement>
  41. <repository>
  42. <id>sonatype-nexus-staging</id>
  43. <name>Sonatype Release Repository</name>
  44. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  45. </repository>
  46. <snapshotRepository>
  47. <id>sonar-snapshots</id>
  48. <url>${sonar.snapshotRepository.url}</url>
  49. <uniqueVersion>false</uniqueVersion>
  50. </snapshotRepository>
  51. </distributionManagement>
  52. <prerequisites>
  53. <!-- Note that "prerequisites" not inherited, but used by versions-maven-plugin 1.3.1 -->
  54. <maven>${maven.min.version}</maven>
  55. </prerequisites>
  56. <properties>
  57. <sonarUpdateCenter.version>1.13</sonarUpdateCenter.version>
  58. <sonarJava.version>3.2</sonarJava.version>
  59. <sonarGit.version>1.0</sonarGit.version>
  60. <sonarSvn.version>1.0</sonarSvn.version>
  61. <h2.version>1.3.176</h2.version>
  62. <jetty.version>8.1.12.v20130726</jetty.version>
  63. <logback.version>1.1.3</logback.version>
  64. <slf4j.version>1.7.12</slf4j.version>
  65. <tomcat.version>8.0.18</tomcat.version>
  66. <elasticsearch.version>1.4.4</elasticsearch.version>
  67. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  68. <maven.min.version>3.0.5</maven.min.version>
  69. <jdk.min.version>1.7</jdk.min.version>
  70. <timestamp>${maven.build.timestamp}</timestamp>
  71. <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>
  72. <skipBatchTests>false</skipBatchTests>
  73. <skipServerTests>false</skipServerTests>
  74. <version.maven-license.plugin>1.9.0</version.maven-license.plugin>
  75. <skipSanityChecks>false</skipSanityChecks>
  76. <sonar.snapshotRepository.url>dav:https://dav.codehaus.org/snapshots.repository/sonar</sonar.snapshotRepository.url>
  77. <argLine>-Xmx512m -Djava.awt.headless=true -XX:MaxPermSize=160m</argLine>
  78. </properties>
  79. <build>
  80. <extensions>
  81. <extension>
  82. <groupId>org.apache.maven.wagon</groupId>
  83. <artifactId>wagon-webdav</artifactId>
  84. <version>1.0-beta-2</version>
  85. </extension>
  86. </extensions>
  87. <pluginManagement>
  88. <!-- Plugins ordered by shortname (assembly, antrun ...) -->
  89. <plugins>
  90. <plugin>
  91. <groupId>org.codehaus.mojo</groupId>
  92. <artifactId>animal-sniffer-maven-plugin</artifactId>
  93. <version>1.14</version>
  94. <configuration>
  95. <signature>
  96. <groupId>org.codehaus.mojo.signature</groupId>
  97. <artifactId>java17</artifactId>
  98. <version>1.0</version>
  99. </signature>
  100. <skip>${skipSanityChecks}</skip>
  101. </configuration>
  102. </plugin>
  103. <plugin>
  104. <groupId>com.github.eirslett</groupId>
  105. <artifactId>frontend-maven-plugin</artifactId>
  106. <version>0.0.20</version>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-antrun-plugin</artifactId>
  111. <version>1.7</version>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-assembly-plugin</artifactId>
  116. <version>2.4</version>
  117. <configuration>
  118. <archiverConfig>
  119. <!-- Workaround for http://jira.codehaus.org/browse/MASSEMBLY-422 -->
  120. <!-- 420(dec) = 644(oct) -->
  121. <fileMode>420</fileMode>
  122. <!-- 493(dec) = 755(oct) -->
  123. <directoryMode>493</directoryMode>
  124. <defaultDirectoryMode>493</defaultDirectoryMode>
  125. </archiverConfig>
  126. </configuration>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.codehaus.mojo</groupId>
  130. <artifactId>build-helper-maven-plugin</artifactId>
  131. <version>1.9.1</version>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.codehaus.mojo</groupId>
  135. <artifactId>buildnumber-maven-plugin</artifactId>
  136. <version>1.3</version>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-clean-plugin</artifactId>
  141. <version>2.6.1</version>
  142. </plugin>
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-compiler-plugin</artifactId>
  146. <version>3.3</version>
  147. </plugin>
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-dependency-plugin</artifactId>
  151. <version>2.10</version>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-deploy-plugin</artifactId>
  156. <version>2.8.2</version>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-enforcer-plugin</artifactId>
  161. <version>1.4</version>
  162. </plugin>
  163. <plugin>
  164. <groupId>org.apache.maven.plugins</groupId>
  165. <artifactId>maven-failsafe-plugin</artifactId>
  166. <version>2.18.1</version>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-gpg-plugin</artifactId>
  171. <version>1.6</version>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-install-plugin</artifactId>
  176. <version>2.5.2</version>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.jacoco</groupId>
  180. <artifactId>jacoco-maven-plugin</artifactId>
  181. <version>0.7.5.201505241946</version>
  182. <configuration>
  183. <excludes>
  184. <exclude>*_javassist_*</exclude>
  185. </excludes>
  186. <includes>
  187. <include>org.sonar.*</include>
  188. </includes>
  189. </configuration>
  190. </plugin>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-jar-plugin</artifactId>
  194. <version>2.6</version>
  195. </plugin>
  196. <plugin>
  197. <groupId>org.apache.maven.plugins</groupId>
  198. <artifactId>maven-javadoc-plugin</artifactId>
  199. <version>2.10.1</version>
  200. <configuration>
  201. <author>false</author>
  202. <linksource>true</linksource>
  203. </configuration>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-jxr-plugin</artifactId>
  208. <version>2.5</version>
  209. </plugin>
  210. <plugin>
  211. <groupId>com.mycila.maven-license-plugin</groupId>
  212. <artifactId>maven-license-plugin</artifactId>
  213. <version>${version.maven-license.plugin}</version>
  214. </plugin>
  215. <plugin>
  216. <groupId>org.apache.maven.plugins</groupId>
  217. <artifactId>maven-plugin-plugin</artifactId>
  218. <version>3.3</version>
  219. </plugin>
  220. <plugin>
  221. <groupId>org.apache.maven.plugins</groupId>
  222. <artifactId>maven-release-plugin</artifactId>
  223. <version>2.5.2</version>
  224. </plugin>
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-resources-plugin</artifactId>
  228. <version>2.7</version>
  229. </plugin>
  230. <plugin>
  231. <groupId>org.apache.maven.plugins</groupId>
  232. <artifactId>maven-shade-plugin</artifactId>
  233. <version>2.3</version>
  234. </plugin>
  235. <plugin>
  236. <groupId>org.apache.maven.plugins</groupId>
  237. <artifactId>maven-site-plugin</artifactId>
  238. <version>3.4</version>
  239. </plugin>
  240. <plugin>
  241. <groupId>org.apache.maven.plugins</groupId>
  242. <artifactId>maven-source-plugin</artifactId>
  243. <version>2.4</version>
  244. </plugin>
  245. <plugin>
  246. <groupId>org.apache.maven.plugins</groupId>
  247. <artifactId>maven-surefire-plugin</artifactId>
  248. <version>2.18.1</version>
  249. </plugin>
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-war-plugin</artifactId>
  253. <version>2.6</version>
  254. </plugin>
  255. <plugin>
  256. <!-- not thread safe -->
  257. <groupId>org.codehaus.sonar</groupId>
  258. <artifactId>sonar-dev-maven-plugin</artifactId>
  259. <version>1.8</version>
  260. </plugin>
  261. <plugin>
  262. <groupId>org.codehaus.sonar</groupId>
  263. <artifactId>sonar-packaging-maven-plugin</artifactId>
  264. <version>${sonarUpdateCenter.version}</version>
  265. </plugin>
  266. <plugin>
  267. <!-- declared to avoid enforcer error during SQ analysis when Clirr plugin installed -->
  268. <groupId>org.codehaus.mojo</groupId>
  269. <artifactId>clirr-maven-plugin</artifactId>
  270. <version>2.6.1</version>
  271. </plugin>
  272. <plugin>
  273. <groupId>org.owasp</groupId>
  274. <artifactId>dependency-check-maven</artifactId>
  275. <version>1.2.11</version>
  276. <configuration>
  277. <failBuildOnCVSS>8</failBuildOnCVSS>
  278. <suppressionFile>cve-false-positives.xml</suppressionFile>
  279. </configuration>
  280. </plugin>
  281. <plugin>
  282. <!--
  283. Detection of conflicts in classpath.
  284. Command line is: mvn org.basepom.maven:duplicate-finder-maven-plugin:check
  285. See https://github.com/basepom/duplicate-finder-maven-plugin
  286. -->
  287. <groupId>org.basepom.maven</groupId>
  288. <artifactId>duplicate-finder-maven-plugin</artifactId>
  289. <version>1.1.1</version>
  290. <configuration>
  291. <printEqualFiles>true</printEqualFiles>
  292. <!--
  293. <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
  294. <failBuildInCaseOfEqualContentConflict>true</failBuildInCaseOfEqualContentConflict>
  295. <failBuildInCaseOfConflict>true</failBuildInCaseOfConflict>
  296. -->
  297. <checkCompileClasspath>true</checkCompileClasspath>
  298. <checkRuntimeClasspath>true</checkRuntimeClasspath>
  299. <checkTestClasspath>false</checkTestClasspath>
  300. </configuration>
  301. </plugin>
  302. </plugins>
  303. </pluginManagement>
  304. <plugins>
  305. <plugin>
  306. <groupId>org.codehaus.mojo</groupId>
  307. <artifactId>buildnumber-maven-plugin</artifactId>
  308. <executions>
  309. <execution>
  310. <phase>validate</phase>
  311. <goals>
  312. <goal>create</goal>
  313. </goals>
  314. </execution>
  315. </executions>
  316. <configuration>
  317. <doCheck>false</doCheck>
  318. <doUpdate>false</doUpdate>
  319. <getRevisionOnlyOnce>true</getRevisionOnlyOnce>
  320. <revisionOnScmFailure>0</revisionOnScmFailure>
  321. </configuration>
  322. </plugin>
  323. <plugin>
  324. <groupId>org.apache.maven.plugins</groupId>
  325. <artifactId>maven-compiler-plugin</artifactId>
  326. <configuration>
  327. <source>${jdk.min.version}</source>
  328. <target>${jdk.min.version}</target>
  329. <encoding>${project.build.sourceEncoding}</encoding>
  330. </configuration>
  331. </plugin>
  332. <plugin>
  333. <groupId>org.apache.maven.plugins</groupId>
  334. <artifactId>maven-enforcer-plugin</artifactId>
  335. <executions>
  336. <execution>
  337. <id>enforce-rules</id>
  338. <goals>
  339. <goal>enforce</goal>
  340. </goals>
  341. <configuration>
  342. <rules>
  343. <requirePluginVersions>
  344. <message>Build reproducibility : always define plugin versions</message>
  345. <banLatest>true</banLatest>
  346. <banRelease>true</banRelease>
  347. <phases>clean,deploy</phases>
  348. </requirePluginVersions>
  349. <requireReleaseDeps>
  350. <message>No SNAPSHOT versions allowed for dependencies</message>
  351. <onlyWhenRelease>true</onlyWhenRelease>
  352. </requireReleaseDeps>
  353. <requireJavaVersion>
  354. <message>To build this project JDK ${jdk.min.version} (or upper) is required. Please install it.
  355. </message>
  356. <version>${jdk.min.version}</version>
  357. </requireJavaVersion>
  358. <requireMavenVersion>
  359. <message>Maven ${maven.min.version} to 3.2.x is required.
  360. </message>
  361. <!-- maven 3.3.1 is not supported because of frontend-maven-plugin :
  362. https://github.com/eirslett/frontend-maven-plugin/issues/184
  363. https://github.com/eirslett/frontend-maven-plugin/commit/c21b91cc91b8a4f329ad48f6fc1f6269ad0f1f5d
  364. Upgrading to frontend-m-p 0.0.23 drops support of maven 3.0, which is currently the reference version
  365. used at SonarSource.
  366. -->
  367. <version>[${maven.min.version},3.3)</version>
  368. </requireMavenVersion>
  369. <bannedDependencies>
  370. <!-- See SONAR-2512 -->
  371. <message>commons-beanutils:commons-beanutils should be used instead</message>
  372. <excludes>
  373. <exclude>commons-beanutils:commons-beanutils-core</exclude>
  374. </excludes>
  375. <searchTransitive>true</searchTransitive>
  376. </bannedDependencies>
  377. <requireNoRepositories>
  378. <message>Definition of new repositories is not allowed in order to deploy to central repository.
  379. </message>
  380. </requireNoRepositories>
  381. </rules>
  382. </configuration>
  383. </execution>
  384. </executions>
  385. </plugin>
  386. <!--
  387. Choosing a random timezone when executing tests allows to detect
  388. early the tests that are coupled with local environment.
  389. -->
  390. <plugin>
  391. <groupId>com.github.genthaler</groupId>
  392. <artifactId>beanshell-maven-plugin</artifactId>
  393. <version>1.0</version>
  394. <executions>
  395. <execution>
  396. <id>randomize-environment</id>
  397. <phase>validate</phase>
  398. <goals>
  399. <goal>run</goal>
  400. </goals>
  401. <configuration>
  402. <script>
  403. <![CDATA[
  404. String[] timezones = new String[] {"GMT-9", "UTC", "GMT+9"};
  405. String testTimezone = timezones[new java.util.Random().nextInt(timezones.length)];
  406. project.getProperties().setProperty("testTimezone", testTimezone);
  407. logger.info("Timezone used for tests: " + testTimezone);
  408. ]]>
  409. </script>
  410. </configuration>
  411. </execution>
  412. </executions>
  413. </plugin>
  414. <plugin>
  415. <groupId>org.apache.maven.plugins</groupId>
  416. <artifactId>maven-jar-plugin</artifactId>
  417. <configuration>
  418. <archive>
  419. <manifestEntries>
  420. <Version>${project.version}</Version>
  421. <!-- ${buildNumber} is the Git revision. It's generated by the buildnumber-maven-plugin -->
  422. <Implementation-Build>${buildNumber}</Implementation-Build>
  423. <Build-Time>${timestamp}</Build-Time>
  424. </manifestEntries>
  425. </archive>
  426. </configuration>
  427. </plugin>
  428. <plugin>
  429. <groupId>org.codehaus.sonar</groupId>
  430. <artifactId>sonar-packaging-maven-plugin</artifactId>
  431. <extensions>true</extensions>
  432. <configuration>
  433. <archive>
  434. <manifestEntries>
  435. <!-- ${buildNumber} is the Git revision. It's generated by the buildnumber-maven-plugin -->
  436. <Implementation-Build>${buildNumber}</Implementation-Build>
  437. <Build-Time>${timestamp}</Build-Time>
  438. </manifestEntries>
  439. </archive>
  440. </configuration>
  441. </plugin>
  442. <plugin>
  443. <groupId>org.apache.maven.plugins</groupId>
  444. <artifactId>maven-jxr-plugin</artifactId>
  445. <configuration>
  446. <aggregate>true</aggregate>
  447. <linkJavadoc>true</linkJavadoc>
  448. <javadocDir>${project.reporting.outputDirectory}/${project.version}/apidocs</javadocDir>
  449. </configuration>
  450. </plugin>
  451. <!-- check copyright/license headers -->
  452. <plugin>
  453. <inherited>false</inherited>
  454. <groupId>com.mycila.maven-license-plugin</groupId>
  455. <artifactId>maven-license-plugin</artifactId>
  456. <configuration>
  457. <header>${project.basedir}/copyright.txt</header>
  458. <failIfMissing>true</failIfMissing>
  459. <strictCheck>true</strictCheck>
  460. <aggregate>true</aggregate>
  461. <includes>
  462. <include>**/sonar-*/src/main/java/**</include>
  463. <include>**/sonar-*/src/test/java/**</include>
  464. </includes>
  465. <excludes>
  466. <exclude>tests/**</exclude>
  467. </excludes>
  468. <mapping>
  469. <java>SLASHSTAR_STYLE</java>
  470. </mapping>
  471. <skip>${skipSanityChecks}</skip>
  472. </configuration>
  473. <executions>
  474. <execution>
  475. <id>enforce-license-headers</id>
  476. <phase>validate</phase>
  477. <goals>
  478. <goal>check</goal>
  479. </goals>
  480. </execution>
  481. </executions>
  482. </plugin>
  483. <plugin>
  484. <groupId>org.codehaus.mojo</groupId>
  485. <artifactId>animal-sniffer-maven-plugin</artifactId>
  486. <executions>
  487. <execution>
  488. <id>enforce-java-api-compatibility</id>
  489. <phase>verify</phase>
  490. <goals>
  491. <goal>check</goal>
  492. </goals>
  493. </execution>
  494. </executions>
  495. </plugin>
  496. <plugin>
  497. <groupId>org.apache.maven.plugins</groupId>
  498. <artifactId>maven-release-plugin</artifactId>
  499. <configuration>
  500. <autoVersionSubmodules>true</autoVersionSubmodules>
  501. <localCheckout>true</localCheckout>
  502. <pushChanges>false</pushChanges>
  503. <mavenExecutorId>forked-path</mavenExecutorId>
  504. <preparationGoals>clean install</preparationGoals>
  505. <!-- SONAR-4189 -->
  506. <arguments>-Prelease</arguments>
  507. </configuration>
  508. </plugin>
  509. <plugin>
  510. <groupId>org.apache.maven.plugins</groupId>
  511. <artifactId>maven-source-plugin</artifactId>
  512. <executions>
  513. <execution>
  514. <id>attach-sources</id>
  515. <goals>
  516. <goal>jar-no-fork</goal>
  517. </goals>
  518. </execution>
  519. </executions>
  520. </plugin>
  521. <plugin>
  522. <groupId>org.apache.maven.plugins</groupId>
  523. <artifactId>maven-surefire-plugin</artifactId>
  524. <configuration>
  525. <runOrder>random</runOrder>
  526. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  527. <systemPropertyVariables>
  528. <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
  529. <!--
  530. See profile 'randomize-environment'
  531. -->
  532. <user.timezone>${testTimezone}</user.timezone>
  533. </systemPropertyVariables>
  534. <groups>${junitGroups}</groups>
  535. <threadCount>1</threadCount>
  536. </configuration>
  537. </plugin>
  538. <plugin>
  539. <!--
  540. This plugin is used to list the licenses of all the dependencies. The module
  541. sonar-testing-harness must be excluded. See third-party-licenses.sh
  542. -->
  543. <groupId>org.codehaus.mojo</groupId>
  544. <artifactId>license-maven-plugin</artifactId>
  545. <version>1.8</version>
  546. <configuration>
  547. <includedScopes>compile</includedScopes>
  548. <licenseMerges>
  549. <licenseMerge>Apache 2.0|The Apache Software License, Version 2.0|Apache License, Version 2.0|apache_v2</licenseMerge>
  550. <licenseMerge>CDDL 1.0|COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0|Common Development and Distribution License (CDDL) v1.0|cddl_v1</licenseMerge>
  551. <licenseMerge>GNU LGPL 2.1|GNU Lesser General Public License (LGPL), Version 2.1|GNU Lesser General Public License, version 2.1|lgpl_v2_1</licenseMerge>
  552. <licenseMerge>GNU LGPL 3|GNU LESSER GENERAL PUBLIC LICENSE, Version 3|GNU Lesser General Public Licence|GNU Lesser General Public License|GNU LESSER GENERAL PUBLIC LICENSE</licenseMerge>
  553. <licenseMerge>Dual license: CDDL 1.0 and GPL v2|Dual license consisting of the CDDL v1.0 and GPL v2|CDDL+GPLv2|CDDL+GPL|CDDL+GPL License</licenseMerge>
  554. <licenseMerge>Dual license: CDDL 1.1 and GPL v2|Dual license consisting of the CDDL v1.1 and GPL v2|CDDL1_1+GPLv2</licenseMerge>
  555. <licenseMerge>Dual License: CDDL 1.0 and GPL V2 with Classpath Exception|CDDL + GPLv2 with classpath exception</licenseMerge>
  556. </licenseMerges>
  557. </configuration>
  558. </plugin>
  559. </plugins>
  560. </build>
  561. <dependencyManagement>
  562. <dependencies>
  563. <!-- SonarQube modules -->
  564. <dependency>
  565. <groupId>org.codehaus.sonar</groupId>
  566. <artifactId>sonar-channel</artifactId>
  567. <version>4.1</version>
  568. </dependency>
  569. <dependency>
  570. <groupId>org.codehaus.sonar</groupId>
  571. <artifactId>sonar-classloader</artifactId>
  572. <version>1.0</version>
  573. </dependency>
  574. <dependency>
  575. <groupId>org.codehaus.sonar</groupId>
  576. <artifactId>sonar-markdown</artifactId>
  577. <version>${project.version}</version>
  578. </dependency>
  579. <dependency>
  580. <groupId>org.codehaus.sonar</groupId>
  581. <artifactId>sonar-check-api</artifactId>
  582. <version>${project.version}</version>
  583. </dependency>
  584. <dependency>
  585. <groupId>org.codehaus.sonar</groupId>
  586. <artifactId>sonar-colorizer</artifactId>
  587. <version>${project.version}</version>
  588. </dependency>
  589. <dependency>
  590. <groupId>org.codehaus.sonar</groupId>
  591. <artifactId>sonar-core</artifactId>
  592. <version>${project.version}</version>
  593. </dependency>
  594. <dependency>
  595. <groupId>org.codehaus.sonar</groupId>
  596. <artifactId>sonar-db</artifactId>
  597. <version>${project.version}</version>
  598. </dependency>
  599. <dependency>
  600. <groupId>org.codehaus.sonar</groupId>
  601. <artifactId>sonar-batch-protocol</artifactId>
  602. <version>${project.version}</version>
  603. </dependency>
  604. <dependency>
  605. <groupId>org.codehaus.sonar</groupId>
  606. <artifactId>sonar-duplications</artifactId>
  607. <version>${project.version}</version>
  608. </dependency>
  609. <dependency>
  610. <groupId>org.codehaus.sonar</groupId>
  611. <artifactId>sonar-home</artifactId>
  612. <version>${project.version}</version>
  613. </dependency>
  614. <dependency>
  615. <groupId>org.codehaus.sonar</groupId>
  616. <artifactId>sonar-graph</artifactId>
  617. <version>5.1</version>
  618. </dependency>
  619. <dependency>
  620. <groupId>org.codehaus.sonar</groupId>
  621. <artifactId>sonar-java-api</artifactId>
  622. <version>5.1</version>
  623. <exclusions>
  624. <exclusion>
  625. <groupId>org.codehaus.sonar</groupId>
  626. <artifactId>sonar-deprecated</artifactId>
  627. </exclusion>
  628. <exclusion>
  629. <groupId>org.codehaus.sonar</groupId>
  630. <artifactId>sonar-plugin-api</artifactId>
  631. </exclusion>
  632. </exclusions>
  633. </dependency>
  634. <dependency>
  635. <groupId>org.codehaus.sonar</groupId>
  636. <artifactId>sonar-plugin-api</artifactId>
  637. <version>${project.version}</version>
  638. </dependency>
  639. <dependency>
  640. <groupId>org.codehaus.sonar</groupId>
  641. <artifactId>sonar-update-center-common</artifactId>
  642. <version>${sonarUpdateCenter.version}</version>
  643. </dependency>
  644. <dependency>
  645. <groupId>org.codehaus.sonar</groupId>
  646. <artifactId>sonar-server</artifactId>
  647. <version>${project.version}</version>
  648. </dependency>
  649. <dependency>
  650. <groupId>org.codehaus.sonar.plugins</groupId>
  651. <artifactId>sonar-xoo-plugin</artifactId>
  652. <version>${project.version}</version>
  653. <scope>test</scope>
  654. </dependency>
  655. <dependency>
  656. <groupId>org.codehaus.sonar-plugins</groupId>
  657. <artifactId>sonar-scm-git-plugin</artifactId>
  658. <version>${sonarGit.version}</version>
  659. <type>sonar-plugin</type>
  660. </dependency>
  661. <dependency>
  662. <groupId>org.codehaus.sonar-plugins</groupId>
  663. <artifactId>sonar-scm-svn-plugin</artifactId>
  664. <version>${sonarSvn.version}</version>
  665. <type>sonar-plugin</type>
  666. </dependency>
  667. <dependency>
  668. <groupId>org.codehaus.sonar</groupId>
  669. <artifactId>sonar-testing-harness</artifactId>
  670. <version>${project.version}</version>
  671. </dependency>
  672. <dependency>
  673. <groupId>org.codehaus.sonar</groupId>
  674. <artifactId>sonar-ws-client</artifactId>
  675. <version>${project.version}</version>
  676. </dependency>
  677. <dependency>
  678. <groupId>org.codehaus.sonar-plugins.java</groupId>
  679. <artifactId>sonar-java-plugin</artifactId>
  680. <version>${sonarJava.version}</version>
  681. <type>sonar-plugin</type>
  682. <exclusions>
  683. <!-- A banned dependency is bring because java-squid is using maven-project:2.07
  684. This exclusion should be removed when the plugin will no more used maven-project -->
  685. <exclusion>
  686. <groupId>classworlds</groupId>
  687. <artifactId>classworlds</artifactId>
  688. </exclusion>
  689. </exclusions>
  690. </dependency>
  691. <dependency>
  692. <groupId>commons-collections</groupId>
  693. <artifactId>commons-collections</artifactId>
  694. <version>3.2.1</version>
  695. </dependency>
  696. <dependency>
  697. <groupId>org.elasticsearch</groupId>
  698. <artifactId>elasticsearch</artifactId>
  699. <version>${elasticsearch.version}</version>
  700. <exclusions>
  701. <exclusion>
  702. <groupId>org.apache.lucene</groupId>
  703. <artifactId>lucene-spatial</artifactId>
  704. </exclusion>
  705. <exclusion>
  706. <groupId>org.ow2.asm</groupId>
  707. <artifactId>asm</artifactId>
  708. </exclusion>
  709. <exclusion>
  710. <groupId>org.ow2.asm</groupId>
  711. <artifactId>asm-commons</artifactId>
  712. </exclusion>
  713. <exclusion>
  714. <groupId>org.antlr</groupId>
  715. <artifactId>antlr-runtime</artifactId>
  716. </exclusion>
  717. </exclusions>
  718. </dependency>
  719. <dependency>
  720. <groupId>com.github.tlrx</groupId>
  721. <artifactId>elasticsearch-test</artifactId>
  722. <version>1.2.1</version>
  723. </dependency>
  724. <dependency>
  725. <groupId>com.google.guava</groupId>
  726. <artifactId>guava</artifactId>
  727. <version>17.0</version>
  728. <exclusions>
  729. <exclusion>
  730. <!-- should be declared with scope provided -->
  731. <groupId>com.google.code.findbugs</groupId>
  732. <artifactId>jsr305</artifactId>
  733. </exclusion>
  734. </exclusions>
  735. </dependency>
  736. <dependency>
  737. <groupId>com.google.code.findbugs</groupId>
  738. <artifactId>jsr305</artifactId>
  739. <version>3.0.0</version>
  740. </dependency>
  741. <dependency>
  742. <groupId>commons-dbutils</groupId>
  743. <artifactId>commons-dbutils</artifactId>
  744. <version>1.5</version>
  745. </dependency>
  746. <dependency>
  747. <groupId>commons-io</groupId>
  748. <artifactId>commons-io</artifactId>
  749. <version>2.4</version>
  750. </dependency>
  751. <dependency>
  752. <groupId>org.apache.commons</groupId>
  753. <artifactId>commons-csv</artifactId>
  754. <version>1.0</version>
  755. </dependency>
  756. <dependency>
  757. <groupId>commons-codec</groupId>
  758. <artifactId>commons-codec</artifactId>
  759. <version>1.8</version>
  760. </dependency>
  761. <dependency>
  762. <groupId>org.apache.commons</groupId>
  763. <artifactId>commons-email</artifactId>
  764. <version>1.3.2</version>
  765. </dependency>
  766. <dependency>
  767. <groupId>commons-lang</groupId>
  768. <artifactId>commons-lang</artifactId>
  769. <version>2.6</version>
  770. </dependency>
  771. <dependency>
  772. <groupId>commons-dbcp</groupId>
  773. <artifactId>commons-dbcp</artifactId>
  774. <version>1.4</version>
  775. </dependency>
  776. <dependency>
  777. <!-- See SONAR-2512 -->
  778. <groupId>commons-beanutils</groupId>
  779. <artifactId>commons-beanutils</artifactId>
  780. <version>1.8.3</version>
  781. <exclusions>
  782. <exclusion>
  783. <groupId>commons-logging</groupId>
  784. <artifactId>commons-logging</artifactId>
  785. </exclusion>
  786. </exclusions>
  787. </dependency>
  788. <dependency>
  789. <groupId>org.apache.maven</groupId>
  790. <artifactId>maven-artifact</artifactId>
  791. <version>2.0.7</version>
  792. </dependency>
  793. <dependency>
  794. <groupId>org.apache.maven</groupId>
  795. <artifactId>maven-core</artifactId>
  796. <version>2.0.7</version>
  797. </dependency>
  798. <dependency>
  799. <groupId>com.ibm.icu</groupId>
  800. <artifactId>icu4j</artifactId>
  801. <!-- animal-sniffer doesn't work with 2.6.1 -->
  802. <version>3.4.4</version>
  803. </dependency>
  804. <dependency>
  805. <groupId>jfree</groupId>
  806. <artifactId>jfreechart</artifactId>
  807. <version>1.0.9</version>
  808. </dependency>
  809. <dependency>
  810. <groupId>com.googlecode.json-simple</groupId>
  811. <artifactId>json-simple</artifactId>
  812. <version>1.1.1</version>
  813. <exclusions>
  814. <exclusion>
  815. <groupId>junit</groupId>
  816. <artifactId>junit</artifactId>
  817. </exclusion>
  818. </exclusions>
  819. </dependency>
  820. <dependency>
  821. <groupId>org.mybatis</groupId>
  822. <artifactId>mybatis</artifactId>
  823. <version>3.2.7</version>
  824. </dependency>
  825. <dependency>
  826. <groupId>org.picocontainer</groupId>
  827. <artifactId>picocontainer</artifactId>
  828. <version>2.15</version>
  829. </dependency>
  830. <dependency>
  831. <groupId>org.slf4j</groupId>
  832. <artifactId>slf4j-api</artifactId>
  833. <version>${slf4j.version}</version>
  834. </dependency>
  835. <dependency>
  836. <groupId>org.slf4j</groupId>
  837. <artifactId>jul-to-slf4j</artifactId>
  838. <version>${slf4j.version}</version>
  839. </dependency>
  840. <dependency>
  841. <groupId>org.slf4j</groupId>
  842. <artifactId>jcl-over-slf4j</artifactId>
  843. <version>${slf4j.version}</version>
  844. </dependency>
  845. <dependency>
  846. <groupId>org.slf4j</groupId>
  847. <artifactId>log4j-over-slf4j</artifactId>
  848. <version>${slf4j.version}</version>
  849. </dependency>
  850. <dependency>
  851. <groupId>ch.qos.logback</groupId>
  852. <artifactId>logback-access</artifactId>
  853. <version>${logback.version}</version>
  854. </dependency>
  855. <dependency>
  856. <groupId>ch.qos.logback</groupId>
  857. <artifactId>logback-classic</artifactId>
  858. <version>${logback.version}</version>
  859. </dependency>
  860. <dependency>
  861. <groupId>ch.qos.logback</groupId>
  862. <artifactId>logback-core</artifactId>
  863. <version>${logback.version}</version>
  864. </dependency>
  865. <dependency>
  866. <groupId>com.h2database</groupId>
  867. <artifactId>h2</artifactId>
  868. <version>${h2.version}</version>
  869. </dependency>
  870. <dependency>
  871. <groupId>org.jruby.rack</groupId>
  872. <artifactId>jruby-rack</artifactId>
  873. <version>1.1.13.2</version>
  874. </dependency>
  875. <dependency>
  876. <groupId>mysql</groupId>
  877. <artifactId>mysql-connector-java</artifactId>
  878. <version>5.1.35</version>
  879. </dependency>
  880. <dependency>
  881. <groupId>org.postgresql</groupId>
  882. <artifactId>postgresql</artifactId>
  883. <version>9.3-1102-jdbc41</version>
  884. </dependency>
  885. <dependency>
  886. <groupId>net.sourceforge.jtds</groupId>
  887. <artifactId>jtds</artifactId>
  888. <version>1.3.1</version>
  889. </dependency>
  890. <dependency>
  891. <groupId>org.codehaus.woodstox</groupId>
  892. <artifactId>woodstox-core-lgpl</artifactId>
  893. <version>4.4.0</version>
  894. <exclusions>
  895. <exclusion>
  896. <!-- provided by Java 1.7 -->
  897. <groupId>javax.xml.stream</groupId>
  898. <artifactId>stax-api</artifactId>
  899. </exclusion>
  900. </exclusions>
  901. </dependency>
  902. <dependency>
  903. <groupId>org.codehaus.staxmate</groupId>
  904. <artifactId>staxmate</artifactId>
  905. <version>2.0.1</version>
  906. <exclusions>
  907. <!-- see SONAR-879 -->
  908. <exclusion>
  909. <groupId>org.codehaus.woodstox</groupId>
  910. <artifactId>stax2-api</artifactId>
  911. </exclusion>
  912. <exclusion>
  913. <groupId>stax</groupId>
  914. <artifactId>stax-api</artifactId>
  915. </exclusion>
  916. <exclusion>
  917. <groupId>org.codehaus.woodstox</groupId>
  918. <artifactId>woodstox-core-asl</artifactId>
  919. </exclusion>
  920. </exclusions>
  921. </dependency>
  922. <dependency>
  923. <groupId>org.mockito</groupId>
  924. <artifactId>mockito-core</artifactId>
  925. <version>1.10.19</version>
  926. <exclusions>
  927. <exclusion>
  928. <groupId>org.hamcrest</groupId>
  929. <artifactId>hamcrest-core</artifactId>
  930. </exclusion>
  931. </exclusions>
  932. </dependency>
  933. <dependency>
  934. <groupId>com.google.code.bean-matchers</groupId>
  935. <artifactId>bean-matchers</artifactId>
  936. <version>0.9</version>
  937. <scope>test</scope>
  938. <exclusions>
  939. <exclusion>
  940. <groupId>org.hamcrest</groupId>
  941. <artifactId>hamcrest-core</artifactId>
  942. </exclusion>
  943. </exclusions>
  944. </dependency>
  945. <dependency>
  946. <groupId>org.assertj</groupId>
  947. <artifactId>assertj-core</artifactId>
  948. <version>2.0.0</version>
  949. </dependency>
  950. <dependency>
  951. <groupId>org.assertj</groupId>
  952. <artifactId>assertj-guava</artifactId>
  953. <version>1.3.1</version>
  954. </dependency>
  955. <dependency>
  956. <groupId>xpp3</groupId>
  957. <artifactId>xpp3</artifactId>
  958. <version>1.1.3.3</version>
  959. </dependency>
  960. <dependency>
  961. <groupId>org.jruby</groupId>
  962. <artifactId>jruby-complete</artifactId>
  963. <!-- do not upgrade to 1.7.10, much slower at startup -->
  964. <version>1.7.9</version>
  965. </dependency>
  966. <dependency>
  967. <groupId>org.codehaus.woodstox</groupId>
  968. <artifactId>stax2-api</artifactId>
  969. <version>3.1.4</version>
  970. <exclusions>
  971. <exclusion>
  972. <groupId>stax</groupId>
  973. <artifactId>stax-api</artifactId>
  974. </exclusion>
  975. </exclusions>
  976. </dependency>
  977. <dependency>
  978. <groupId>javax.servlet</groupId>
  979. <artifactId>javax.servlet-api</artifactId>
  980. <version>3.0.1</version>
  981. </dependency>
  982. <dependency>
  983. <groupId>org.eclipse.jetty</groupId>
  984. <artifactId>jetty-server</artifactId>
  985. <version>${jetty.version}</version>
  986. </dependency>
  987. <dependency>
  988. <groupId>org.hamcrest</groupId>
  989. <artifactId>hamcrest-all</artifactId>
  990. <version>1.3</version>
  991. </dependency>
  992. <dependency>
  993. <groupId>junit</groupId>
  994. <artifactId>junit</artifactId>
  995. <version>4.12</version>
  996. </dependency>
  997. <dependency>
  998. <groupId>com.tngtech.java</groupId>
  999. <artifactId>junit-dataprovider</artifactId>
  1000. <version>1.9.2</version>
  1001. </dependency>
  1002. <dependency>
  1003. <groupId>xmlunit</groupId>
  1004. <artifactId>xmlunit</artifactId>
  1005. <version>1.4</version>
  1006. </dependency>
  1007. <dependency>
  1008. <groupId>org.dbunit</groupId>
  1009. <artifactId>dbunit</artifactId>
  1010. <version>2.4.5</version>
  1011. <exclusions>
  1012. <!-- removing commons lang 2.1 and xerces-->
  1013. <exclusion>
  1014. <groupId>commons-lang</groupId>
  1015. <artifactId>commons-lang</artifactId>
  1016. </exclusion>
  1017. <exclusion>
  1018. <groupId>xerces</groupId>
  1019. <artifactId>xmlParserAPIs</artifactId>
  1020. </exclusion>
  1021. <exclusion>
  1022. <groupId>xerces</groupId>
  1023. <artifactId>xercesImpl</artifactId>
  1024. </exclusion>
  1025. </exclusions>
  1026. </dependency>
  1027. <dependency>
  1028. <groupId>org.eclipse.jetty</groupId>
  1029. <artifactId>test-jetty-servlet</artifactId>
  1030. <version>${jetty.version}</version>
  1031. </dependency>
  1032. <dependency>
  1033. <groupId>org.reflections</groupId>
  1034. <artifactId>reflections</artifactId>
  1035. <version>0.9.9</version>
  1036. </dependency>
  1037. <dependency>
  1038. <groupId>com.google.code.gson</groupId>
  1039. <artifactId>gson</artifactId>
  1040. <version>2.3.1</version>
  1041. </dependency>
  1042. <dependency>
  1043. <groupId>org.sonarsource</groupId>
  1044. <artifactId>sonar-persistit</artifactId>
  1045. <version>3.3.2</version>
  1046. <exclusions>
  1047. <exclusion>
  1048. <groupId>commons-logging</groupId>
  1049. <artifactId>commons-logging</artifactId>
  1050. </exclusion>
  1051. </exclusions>
  1052. </dependency>
  1053. <dependency>
  1054. <groupId>com.github.kevinsawicki</groupId>
  1055. <artifactId>http-request</artifactId>
  1056. <version>5.4.1</version>
  1057. </dependency>
  1058. <dependency>
  1059. <groupId>org.codehaus.sonar.runner</groupId>
  1060. <artifactId>sonar-runner-api</artifactId>
  1061. <version>2.4</version>
  1062. </dependency>
  1063. <dependency>
  1064. <groupId>org.freemarker</groupId>
  1065. <artifactId>freemarker</artifactId>
  1066. <version>2.3.20</version>
  1067. </dependency>
  1068. <dependency>
  1069. <groupId>com.google.protobuf</groupId>
  1070. <artifactId>protobuf-java</artifactId>
  1071. <version>2.6.1</version>
  1072. </dependency>
  1073. <dependency>
  1074. <groupId>net.jpountz.lz4</groupId>
  1075. <artifactId>lz4</artifactId>
  1076. <version>1.3.0</version>
  1077. </dependency>
  1078. <dependency>
  1079. <groupId>org.subethamail</groupId>
  1080. <artifactId>subethasmtp</artifactId>
  1081. <version>3.1.7</version>
  1082. <scope>test</scope>
  1083. </dependency>
  1084. <!-- tomcat -->
  1085. <dependency>
  1086. <groupId>org.apache.tomcat.embed</groupId>
  1087. <artifactId>tomcat-embed-core</artifactId>
  1088. <version>${tomcat.version}</version>
  1089. </dependency>
  1090. <dependency>
  1091. <groupId>org.apache.tomcat.embed</groupId>
  1092. <artifactId>tomcat-embed-jasper</artifactId>
  1093. <version>${tomcat.version}</version>
  1094. <exclusions>
  1095. <exclusion>
  1096. <groupId>org.eclipse.jdt.core.compiler</groupId>
  1097. <artifactId>ecj</artifactId>
  1098. </exclusion>
  1099. </exclusions>
  1100. </dependency>
  1101. <dependency>
  1102. <groupId>org.apache.tomcat.embed</groupId>
  1103. <artifactId>tomcat-embed-logging-juli</artifactId>
  1104. <version>${tomcat.version}</version>
  1105. </dependency>
  1106. <!-- Using scope=provided to exclude from all transitive dependencies -->
  1107. <dependency>
  1108. <groupId>xml-apis</groupId>
  1109. <artifactId>xml-apis</artifactId>
  1110. <version>1.4.01</version>
  1111. <scope>provided</scope>
  1112. </dependency>
  1113. </dependencies>
  1114. </dependencyManagement>
  1115. <mailingLists>
  1116. <mailingList>
  1117. <name>SonarQube users mailing list</name>
  1118. <subscribe>http://xircles.codehaus.org/projects/sonar/lists</subscribe>
  1119. <unsubscribe>http://xircles.codehaus.org/projects/sonar/lists</unsubscribe>
  1120. <post>user@sonar.codehaus.org</post>
  1121. <archive>http://www.nabble.com/Sonar-f30151.html</archive>
  1122. </mailingList>
  1123. </mailingLists>
  1124. <scm>
  1125. <connection>scm:git:git@github.com:SonarSource/sonarqube.git</connection>
  1126. <developerConnection>scm:git:git@github.com:SonarSource/sonarqube.git</developerConnection>
  1127. <url>https://github.com/SonarSource/sonarqube</url>
  1128. <tag>HEAD</tag>
  1129. </scm>
  1130. <ciManagement>
  1131. <system>travis-ci</system>
  1132. <url>https://travis-ci.org/SonarSource/sonarqube</url>
  1133. </ciManagement>
  1134. <licenses>
  1135. <license>
  1136. <name>GNU LGPL 3</name>
  1137. <url>http://www.gnu.org/licenses/lgpl.txt</url>
  1138. <distribution>repo</distribution>
  1139. </license>
  1140. </licenses>
  1141. <!-- Developers information should not be removed as it's
  1142. required for deployment -->
  1143. <developers>
  1144. <developer>
  1145. <id>bellingard</id>
  1146. <name>Fabrice Bellingard</name>
  1147. <email>fabrice.bellingard@sonarsource.com</email>
  1148. <organization>SonarSource</organization>
  1149. <timezone>+1</timezone>
  1150. </developer>
  1151. <developer>
  1152. <id>dbolkensteyn</id>
  1153. <name>Dinesh Bolkensteyn</name>
  1154. <email>dinesh.bolkensteyn@sonarsource.com</email>
  1155. <organization>SonarSource</organization>
  1156. <timezone>+1</timezone>
  1157. </developer>
  1158. <developer>
  1159. <id>dgageot</id>
  1160. <name>David Gageot</name>
  1161. <organization>SonarSource</organization>
  1162. <timezone>+1</timezone>
  1163. </developer>
  1164. <developer>
  1165. <id>ehartmann</id>
  1166. <name>Eric Hartmann</name>
  1167. <organization>SonarSource</organization>
  1168. <timezone>+1</timezone>
  1169. </developer>
  1170. <developer>
  1171. <id>fmallet</id>
  1172. <name>Freddy Mallet</name>
  1173. <email>freddy.mallet@sonarsource.com</email>
  1174. <organization>SonarSource</organization>
  1175. <timezone>+1</timezone>
  1176. </developer>
  1177. <developer>
  1178. <id>Godin</id>
  1179. <name>Evgeny Mandrikov</name>
  1180. <email>evgeny.mandrikov@sonarsource.com</email>
  1181. <organization>SonarSource</organization>
  1182. <timezone>+3</timezone>
  1183. </developer>
  1184. <developer>
  1185. <id>henryju</id>
  1186. <name>Julien Henry</name>
  1187. <email>julien.henry@sonarsource.com</email>
  1188. <organization>SonarSource</organization>
  1189. <timezone>+1</timezone>
  1190. </developer>
  1191. <developer>
  1192. <id>jblievremont</id>
  1193. <name>Jean-Baptiste Lievremont</name>
  1194. <organization>SonarSource</organization>
  1195. <timezone>+1</timezone>
  1196. </developer>
  1197. <developer>
  1198. <id>julienlancelot</id>
  1199. <name>Julien Lancelot</name>
  1200. <email>julien.lancelot@sonarsource.com</email>
  1201. <organization>SonarSource</organization>
  1202. <timezone>+1</timezone>
  1203. </developer>
  1204. <developer>
  1205. <id>olivier.gaudin</id>
  1206. <name>Olivier Gaudin</name>
  1207. <email>olivier.gaudin@sonarsource.com</email>
  1208. <organization>SonarSource</organization>
  1209. <timezone>+1</timezone>
  1210. </developer>
  1211. <developer>
  1212. <id>simonbrandhof</id>
  1213. <name>Simon Brandhof</name>
  1214. <email>simon.brandhof@sonarsource.com</email>
  1215. <organization>SonarSource</organization>
  1216. <timezone>+1</timezone>
  1217. </developer>
  1218. <developer>
  1219. <id>sns-seb</id>
  1220. <name>Sebastien Lesaint</name>
  1221. <organization>SonarSource</organization>
  1222. <timezone>+1</timezone>
  1223. </developer>
  1224. <developer>
  1225. <id>stas-vilchik</id>
  1226. <name>Stas Vilchik</name>
  1227. <organization>SonarSource</organization>
  1228. <timezone>+1</timezone>
  1229. </developer>
  1230. <developer>
  1231. <id>teryk</id>
  1232. <name>Teryk Bellahsene</name>
  1233. <organization>SonarSource</organization>
  1234. <timezone>+1</timezone>
  1235. </developer>
  1236. </developers>
  1237. <profiles>
  1238. <profile>
  1239. <id>dev</id>
  1240. <properties>
  1241. <skipSanityChecks>true</skipSanityChecks>
  1242. <enforcer.skip>true</enforcer.skip>
  1243. </properties>
  1244. </profile>
  1245. <profile>
  1246. <id>release</id>
  1247. <build>
  1248. <plugins>
  1249. <plugin>
  1250. <groupId>org.apache.maven.plugins</groupId>
  1251. <artifactId>maven-javadoc-plugin</artifactId>
  1252. <executions>
  1253. <execution>
  1254. <id>attach-javadocs</id>
  1255. <goals>
  1256. <goal>jar</goal>
  1257. </goals>
  1258. </execution>
  1259. </executions>
  1260. </plugin>
  1261. <plugin>
  1262. <groupId>org.apache.maven.plugins</groupId>
  1263. <artifactId>maven-gpg-plugin</artifactId>
  1264. <executions>
  1265. <execution>
  1266. <id>sign-artifacts</id>
  1267. <phase>verify</phase>
  1268. <goals>
  1269. <goal>sign</goal>
  1270. </goals>
  1271. </execution>
  1272. </executions>
  1273. </plugin>
  1274. <plugin>
  1275. <groupId>org.apache.maven.plugins</groupId>
  1276. <artifactId>maven-enforcer-plugin</artifactId>
  1277. <executions>
  1278. <execution>
  1279. <id>enforce-java7</id>
  1280. <goals>
  1281. <goal>enforce</goal>
  1282. </goals>
  1283. <configuration>
  1284. <rules>
  1285. <requireJavaVersion>
  1286. <message>To release this project JDK ${jdk.min.version} is required.
  1287. </message>
  1288. <version>[1.7,)</version>
  1289. </requireJavaVersion>
  1290. </rules>
  1291. </configuration>
  1292. </execution>
  1293. </executions>
  1294. </plugin>
  1295. </plugins>
  1296. </build>
  1297. </profile>
  1298. <profile>
  1299. <id>javadoc</id>
  1300. <build>
  1301. <plugins>
  1302. <plugin>
  1303. <groupId>org.apache.maven.plugins</groupId>
  1304. <artifactId>maven-javadoc-plugin</artifactId>
  1305. <configuration>
  1306. <excludePackageNames>
  1307. net.*:org.sonar.application:org.sonar.server:org.sonar.graph:org.sonar.batch:org.sonar.channel:org.sonar.java:org.sonar.maven*:org.sonar.plugins.*:org.sonar.colorizer:org.sonar.core:org.sonar.duplications:org.sonar.markdown:com.*
  1308. </excludePackageNames>
  1309. <author>false</author>
  1310. <linksource>true</linksource>
  1311. <reportOutputDirectory>${project.reporting.outputDirectory}/${project.version}/apidocs
  1312. </reportOutputDirectory>
  1313. </configuration>
  1314. </plugin>
  1315. </plugins>
  1316. </build>
  1317. </profile>
  1318. <profile>
  1319. <id>m2e</id>
  1320. <activation>
  1321. <!-- This profile is active only when used from Eclipse m2e and is used only to store settings. -->
  1322. <property>
  1323. <name>m2e.version</name>
  1324. </property>
  1325. </activation>
  1326. <build>
  1327. <pluginManagement>
  1328. <plugins>
  1329. <plugin>
  1330. <groupId>org.eclipse.m2e</groupId>
  1331. <artifactId>lifecycle-mapping</artifactId>
  1332. <version>1.0.0</version>
  1333. <configuration>
  1334. <lifecycleMappingMetadata>
  1335. <pluginExecutions>
  1336. <pluginExecution>
  1337. <pluginExecutionFilter>
  1338. <groupId>org.codehaus.sonar</groupId>
  1339. <artifactId>sonar-packaging-maven-plugin</artifactId>
  1340. <versionRange>[1.0,)</versionRange>
  1341. <goals>
  1342. <goal>check-dependencies</goal>
  1343. </goals>
  1344. </pluginExecutionFilter>
  1345. <action>
  1346. <ignore/>
  1347. </action>
  1348. </pluginExecution>
  1349. <pluginExecution>
  1350. <pluginExecutionFilter>
  1351. <groupId>org.codehaus.sonar</groupId>
  1352. <artifactId>sonar-dev-maven-plugin</artifactId>
  1353. <versionRange>[1.0,)</versionRange>
  1354. <goals>
  1355. <goal>trim</goal>
  1356. </goals>
  1357. </pluginExecutionFilter>
  1358. <action>
  1359. <ignore/>
  1360. </action>
  1361. </pluginExecution>
  1362. <pluginExecution>
  1363. <pluginExecutionFilter>
  1364. <groupId>org.apache.maven.plugins</groupId>
  1365. <artifactId>maven-dependency-plugin</artifactId>
  1366. <versionRange>[1.0,)</versionRange>
  1367. <goals>
  1368. <goal>unpack</goal>
  1369. <goal>copy-dependencies</goal>
  1370. </goals>
  1371. </pluginExecutionFilter>
  1372. <action>
  1373. <ignore/>
  1374. </action>
  1375. </pluginExecution>
  1376. <pluginExecution>
  1377. <pluginExecutionFilter>
  1378. <groupId>org.codehaus.mojo</groupId>
  1379. <artifactId>native2ascii-maven-plugin</artifactId>
  1380. <versionRange>[1.0-alpha-1,)</versionRange>
  1381. <goals>
  1382. <goal>native2ascii</goal>
  1383. </goals>
  1384. </pluginExecutionFilter>
  1385. <action>
  1386. <ignore/>
  1387. </action>
  1388. </pluginExecution>
  1389. </pluginExecutions>
  1390. </lifecycleMappingMetadata>
  1391. </configuration>
  1392. </plugin>
  1393. </plugins>
  1394. </pluginManagement>
  1395. </build>
  1396. </profile>
  1397. <profile>
  1398. <id>coverage-per-test</id>
  1399. <activation>
  1400. <property>
  1401. <name>coveragePerTest</name>
  1402. </property>
  1403. </activation>
  1404. <dependencies>
  1405. <dependency>
  1406. <groupId>org.codehaus.sonar-plugins.java</groupId>
  1407. <artifactId>sonar-jacoco-listeners</artifactId>
  1408. <version>${sonarJava.version}</version>
  1409. <scope>test</scope>
  1410. </dependency>
  1411. </dependencies>
  1412. <build>
  1413. <plugins>
  1414. <plugin>
  1415. <groupId>org.apache.maven.plugins</groupId>
  1416. <artifactId>maven-surefire-plugin</artifactId>
  1417. <configuration>
  1418. <properties>
  1419. <property>
  1420. <name>listener</name>
  1421. <value>org.sonar.java.jacoco.JUnitListener</value>
  1422. </property>
  1423. </properties>
  1424. </configuration>
  1425. </plugin>
  1426. </plugins>
  1427. </build>
  1428. </profile>
  1429. <!--
  1430. The following profiles optimize the build for each team, according to their
  1431. stack layers (batch, server and web teams)
  1432. -->
  1433. <profile>
  1434. <!-- disable all tests -->
  1435. <id>skipTests</id>
  1436. <activation>
  1437. <property>
  1438. <name>skipTests</name>
  1439. </property>
  1440. </activation>
  1441. <properties>
  1442. <skipBatchTests>true</skipBatchTests>
  1443. <skipServerTests>true</skipServerTests>
  1444. </properties>
  1445. </profile>
  1446. <profile>
  1447. <id>batch</id>
  1448. <properties>
  1449. <skipServerTests>true</skipServerTests>
  1450. </properties>
  1451. </profile>
  1452. <profile>
  1453. <id>server</id>
  1454. <properties>
  1455. <skipBatchTests>true</skipBatchTests>
  1456. </properties>
  1457. </profile>
  1458. <profile>
  1459. <id>web</id>
  1460. <properties>
  1461. <!-- the web team does not care about java tests -->
  1462. <skipBatchTests>true</skipBatchTests>
  1463. <skipServerTests>true</skipServerTests>
  1464. <skipTests>true</skipTests>
  1465. </properties>
  1466. </profile>
  1467. <profile>
  1468. <!-- SonarSource internal use -->
  1469. <id>dbTests</id>
  1470. <activation>
  1471. <property>
  1472. <name>dbTests</name>
  1473. </property>
  1474. </activation>
  1475. <properties>
  1476. <junitGroups>org.sonar.test.DbTests</junitGroups>
  1477. </properties>
  1478. <dependencies>
  1479. <dependency>
  1480. <groupId>mysql</groupId>
  1481. <artifactId>mysql-connector-java</artifactId>
  1482. </dependency>
  1483. <dependency>
  1484. <groupId>org.postgresql</groupId>
  1485. <artifactId>postgresql</artifactId>
  1486. </dependency>
  1487. <dependency>
  1488. <groupId>net.sourceforge.jtds</groupId>
  1489. <artifactId>jtds</artifactId>
  1490. </dependency>
  1491. <dependency>
  1492. <!-- this artifact is located in the SonarSource internal repository -->
  1493. <groupId>com.oracle</groupId>
  1494. <artifactId>ojdbc6</artifactId>
  1495. <version>11.2.0.3.0</version>
  1496. <scope>test</scope>
  1497. </dependency>
  1498. </dependencies>
  1499. </profile>
  1500. <profile>
  1501. <!-- add microbenchmarks module to IDE -->
  1502. <id>includeMicrobenchmarkModule</id>
  1503. <modules>
  1504. <module>microbenchmark-template</module>
  1505. </modules>
  1506. </profile>
  1507. <profile>
  1508. <!--
  1509. check if maven dependencies have vulnerabilities listed in CVE
  1510. Standalone command: mvn org.owasp:dependency-check-maven:check
  1511. See http://jeremylong.github.io/DependencyCheck
  1512. -->
  1513. <id>securityCheck</id>
  1514. <build>
  1515. <plugins>
  1516. <plugin>
  1517. <groupId>org.owasp</groupId>
  1518. <artifactId>dependency-check-maven</artifactId>
  1519. <executions>
  1520. <execution>
  1521. <goals>
  1522. <goal>check</goal>
  1523. </goals>
  1524. </execution>
  1525. </executions>
  1526. </plugin>
  1527. </plugins>
  1528. </build>
  1529. </profile>
  1530. <profile>
  1531. <id>analysis</id>
  1532. <properties>
  1533. <coveragePerTest>true</coveragePerTest>
  1534. </properties>
  1535. </profile>
  1536. <profile>
  1537. <!-- integration tests -->
  1538. <id>it</id>
  1539. <modules>
  1540. <module>it</module>
  1541. </modules>
  1542. </profile>
  1543. </profiles>
  1544. </project>