mirror of
https://github.com/SonarSource/sonarqube.git
synced 2024-09-13 23:58:00 +02:00
e51e9c9eb0
* origin/branch-5.2: Improve message when trying to install a non-plugin JAR Fix enforcer rule about size of zip Fix reliability of NetworkUtils#freePort() Fix Maven warnings SONAR-6219 Fix ruby warning "don't put space before argument parentheses"
266 lines
8.1 KiB
XML
266 lines
8.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.sonarsource.sonarqube</groupId>
|
|
<artifactId>sonarqube</artifactId>
|
|
<version>5.3-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>sonar-application</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>SonarQube :: Application</name>
|
|
<description>Package the standalone distribution</description>
|
|
|
|
<properties>
|
|
<assembly.recompressZippedFiles>true</assembly.recompressZippedFiles>
|
|
<assembly.format>zip</assembly.format>
|
|
<checksum.failOnError>true</checksum.failOnError>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>sonar-process</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>sonar-process-monitor</artifactId>
|
|
<version>${project.version}</version>
|
|
</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>
|
|
<artifactId>sonar-server</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>sonar-search</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>sonar-batch-shaded</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>sonar-web</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>war</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.postgresql</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- default plugins -->
|
|
<dependency>
|
|
<groupId>org.sonarsource.java</groupId>
|
|
<artifactId>sonar-java-plugin</artifactId>
|
|
<type>sonar-plugin</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.codehaus.sonar-plugins</groupId>
|
|
<artifactId>sonar-scm-git-plugin</artifactId>
|
|
<type>sonar-plugin</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonarsource.scm.svn</groupId>
|
|
<artifactId>sonar-scm-svn-plugin</artifactId>
|
|
<type>sonar-plugin</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.sonatype.jsw-binaries</groupId>
|
|
<artifactId>jsw-binaries</artifactId>
|
|
<version>3.2.3.6</version>
|
|
<type>tar.gz</type>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<!-- do not upgrade because of licensing change -->
|
|
<groupId>tanukisoft</groupId>
|
|
<artifactId>wrapper</artifactId>
|
|
<version>3.2.3</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- unit tests -->
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>sonar-testing-harness</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.kevinsawicki</groupId>
|
|
<artifactId>http-request</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<index>true</index>
|
|
<manifest>
|
|
<addClasspath>false</addClasspath>
|
|
<mainClass>org.sonar.application.App</mainClass>
|
|
</manifest>
|
|
<manifestEntries>
|
|
<mode>distribution</mode>
|
|
<url>${project.url}</url>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
<finalName>sonarqube-${project.version}</finalName>
|
|
<descriptors>
|
|
<descriptor>assembly.xml</descriptor>
|
|
</descriptors>
|
|
<recompressZippedFiles>${assembly.recompressZippedFiles}</recompressZippedFiles>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<failOnError>${checksum.failOnError}</failOnError>
|
|
<target>
|
|
<checksum file="${project.build.directory}/sonarqube-${project.version}.zip" algorithm="md5" />
|
|
<checksum file="${project.build.directory}/sonarqube-${project.version}.zip" algorithm="sha" />
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-distribution-size</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<phase>verify</phase>
|
|
<configuration>
|
|
<rules>
|
|
<requireFilesSize>
|
|
<minsize>100000000</minsize>
|
|
<maxsize>115000000</maxsize>
|
|
<files>
|
|
<file>${project.build.directory}/sonarqube-${project.version}.zip</file>
|
|
</files>
|
|
</requireFilesSize>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skipTests>${skipServerTests}</skipTests>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<profile>
|
|
<id>release</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>dev</id>
|
|
<properties>
|
|
<assembly.recompressZippedFiles>false</assembly.recompressZippedFiles>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|