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.

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