123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <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">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.sonarsource.parent</groupId>
- <artifactId>parent</artifactId>
- <version>28</version>
- </parent>
-
- <groupId>org.sonarsource.scanner.cli</groupId>
- <artifactId>sonar-scanner-cli</artifactId>
- <version>2.6-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>SonarQube Scanner</name>
- <url>http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner</url>
- <inceptionYear>2011</inceptionYear>
-
- <organization>
- <name>SonarSource</name>
- <url>http://www.sonarsource.com</url>
- </organization>
-
- <licenses>
- <license>
- <name>GNU LGPL 3</name>
- <url>http://www.gnu.org/licenses/lgpl.txt</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
-
- <scm>
- <connection>scm:git:git@github.com:SonarSource/sonar-scanner-cli.git</connection>
- <developerConnection>scm:git:git@github.com:SonarSource/sonar-scanner-cli.git</developerConnection>
- <url>https://github.com/SonarSource/sonar-scanner-cli</url>
- <tag>HEAD</tag>
- </scm>
-
- <issueManagement>
- <system>JIRA</system>
- <url>https://jira.sonarsource.com/browse/SQSCANNER</url>
- </issueManagement>
-
- <properties>
- <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
-
- <!-- used for deployment to SonarSource Artifactory -->
- <gitRepositoryName>sonar-scanner-cli</gitRepositoryName>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.sonarsource.sonar-runner</groupId>
- <artifactId>sonar-runner-api</artifactId>
- <version>2.5.1</version>
- </dependency>
- <dependency>
- <groupId>com.google.code.findbugs</groupId>
- <artifactId>jsr305</artifactId>
- <version>2.0.1</version>
- <scope>provided</scope>
- </dependency>
-
- <!-- Unit tests -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.11</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.easytesting</groupId>
- <artifactId>fest-assert</artifactId>
- <version>1.4</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- <version>1.9.5</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.jayway.awaitility</groupId>
- <artifactId>awaitility</artifactId>
- <version>1.6.3</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>org/sonar/runner/commonsio/*</exclude>
- </excludes>
- <archive>
- <manifest>
- <addClasspath>false</addClasspath>
- <mainClass>org.sonar.runner.cli.Main</mainClass>
- </manifest>
- </archive>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>2.3</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <createDependencyReducedPom>true</createDependencyReducedPom>
- <minimizeJar>true</minimizeJar>
- <filters>
- <!-- Remove signatures from SQ Runner API -->
- <filter>
- <artifact>org.sonarsource.sonar-runner:sonar-runner-api</artifact>
- <excludes>
- <exclude>META-INF/*.SF</exclude>
- <exclude>META-INF/*.DSA</exclude>
- <exclude>META-INF/*.RSA</exclude>
- </excludes>
- </filter>
- </filters>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <finalName>sonar-scanner-${project.version}</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- <escapeString>\</escapeString>
- <descriptors>
- <descriptor>${project.basedir}/assembly.xml</descriptor>
- </descriptors>
- </configuration>
- </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>510000</minsize>
- <maxsize>520000</maxsize>
- <files>
- <file>${project.build.directory}/sonar-scanner-${project.version}.zip</file>
- </files>
- </requireFilesSize>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>it</id>
- <modules>
- <module>it</module>
- </modules>
- </profile>
- </profiles>
- </project>
|