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 49KB

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