diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2017-07-20 17:06:31 +0200 |
---|---|---|
committer | Daniel Schwarz <bartfastiel@users.noreply.github.com> | 2017-08-09 15:09:54 +0200 |
commit | 25b3258f922d8a4841f64827af81dcad07f62562 (patch) | |
tree | 60cf39e17710e8557da23b2c349aa16f429957b8 /sonar-application/pom.xml | |
parent | 29f49730e0f149eea9f01031be86b823b12e6647 (diff) | |
download | sonarqube-25b3258f922d8a4841f64827af81dcad07f62562.tar.gz sonarqube-25b3258f922d8a4841f64827af81dcad07f62562.zip |
SONAR-8798 use TransportClient to check node is operational
package org.elasticsearch.client:transport and most of its dependencies into sonar-application.jar; do not open Elasticsearch's http port by default
Diffstat (limited to 'sonar-application/pom.xml')
-rw-r--r-- | sonar-application/pom.xml | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/sonar-application/pom.xml b/sonar-application/pom.xml index dc357b09915..465de1fe104 100644 --- a/sonar-application/pom.xml +++ b/sonar-application/pom.xml @@ -30,17 +30,18 @@ <artifactId>sonar-process-monitor</artifactId> <version>${project.version}</version> </dependency> + <!--must declare this dependency of sonar-process-monitor here, again,--> + <!--to allow copying it and its dependencies into lib/common--> + <dependency> + <groupId>org.elasticsearch.client</groupId> + <artifactId>transport</artifactId> + </dependency> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> <scope>provided</scope> </dependency> - <dependency> - <groupId>org.elasticsearch</groupId> - <artifactId>elasticsearch</artifactId> - <scope>provided</scope> - </dependency> <dependency> <groupId>${project.groupId}</groupId> @@ -206,6 +207,23 @@ </goals> <configuration> <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope> + <artifactSet> + <!--excluding some transitive dependencies which are not necessary to the main process to create--> + <!--a smaller jar and use less memory--> + <excludes> + <exclude>org.apache.lucene:lucene-analyzers-common</exclude> + <exclude>org.apache.lucene:lucene-backward-codecs</exclude> + <exclude>org.apache.lucene:lucene-grouping</exclude> + <exclude>org.apache.lucene:lucene-memory</exclude> + <exclude>org.apache.lucene:lucene-misc</exclude> + <exclude>org.apache.lucene:lucene-spatial-extras</exclude> + <exclude>org.apache.lucene:lucene-spatial3d</exclude> + <exclude>org.elasticsearch.plugin:reindex-client</exclude> + <exclude>org.elasticsearch.plugin:lang-mustache-client</exclude> + <exclude>org.elasticsearch.plugin:percolator-client</exclude> + <exclude>org.elasticsearch.plugin:transport-netty3-client</exclude> + </excludes> + </artifactSet> </configuration> </execution> </executions> @@ -242,8 +260,8 @@ <configuration> <rules> <requireFilesSize> - <minsize>178000000</minsize> - <maxsize>186000000</maxsize> + <minsize>202000000</minsize> + <maxsize>210000000</maxsize> <files> <file>${project.build.directory}/sonarqube-${project.version}.zip</file> </files> |