<?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.codehaus.sonar</groupId> <artifactId>sonar</artifactId> <version>4.5-SNAPSHOT</version> </parent> <artifactId>sonar-application</artifactId> <packaging>jar</packaging> <name>SonarQube :: Application</name> <description>Package the standalone distribution</description> <dependencies> <dependency> <groupId>org.codehaus.sonar</groupId> <artifactId>sonar-process</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.codehaus.sonar</groupId> <artifactId>sonar-server-app</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar</groupId> <artifactId>sonar-search</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar</groupId> <artifactId>sonar-batch-maven-compat</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar</groupId> <artifactId>sonar-web</artifactId> <version>${project.version}</version> <type>war</type> <scope>runtime</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>net.sourceforge.jtds</groupId> <artifactId>jtds</artifactId> <scope>runtime</scope> </dependency> <!-- core plugins --> <dependency> <groupId>org.codehaus.sonar.plugins</groupId> <artifactId>sonar-core-plugin</artifactId> <version>${project.version}</version> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar.plugins</groupId> <artifactId>sonar-design-plugin</artifactId> <version>${project.version}</version> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar-plugins.java</groupId> <artifactId>sonar-findbugs-plugin</artifactId> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar.plugins</groupId> <artifactId>sonar-dbcleaner-plugin</artifactId> <version>${project.version}</version> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar-plugins.java</groupId> <artifactId>sonar-squid-java-plugin</artifactId> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar-plugins.java</groupId> <artifactId>sonar-surefire-plugin</artifactId> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar.plugins</groupId> <artifactId>sonar-cpd-plugin</artifactId> <version>${project.version}</version> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar.plugins</groupId> <artifactId>sonar-l10n-en-plugin</artifactId> <version>${project.version}</version> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar.plugins</groupId> <artifactId>sonar-email-notifications-plugin</artifactId> <version>${project.version}</version> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar-plugins.java</groupId> <artifactId>sonar-jacoco-plugin</artifactId> <type>sonar-plugin</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.codehaus.sonar-plugins.java</groupId> <artifactId>sonar-java-plugin</artifactId> <type>sonar-plugin</type> <scope>runtime</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>runtime</scope> </dependency> <!-- unit tests --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-all</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.easytesting</groupId> <artifactId>fest-assert</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> <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>true</recompressZippedFiles> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>package</phase> <configuration> <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>85000000</minsize> <maxsize>95000000</maxsize> <files> <file>${project.build.directory}/sonarqube-${project.version}.zip</file> </files> </requireFilesSize> </rules> </configuration> </execution> </executions> </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> </profiles> </project>