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

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