sonarlint-backend-cli
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.sonarsource.sonarlint.core</groupId>
<artifactId>sonarlint-backend-cli</artifactId>
<version>11.3.0.85510</version>
</dependency><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.sonarlint.core</groupId>
<artifactId>sonarlint-backend-parent</artifactId>
<version>11.3.0.85510</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>sonarlint-backend-cli</artifactId>
<name>SonarLint Core - Backend CLI</name>
<description>SonarLint backend as a standalone CLI</description>
<properties>
<unpack.dir>${project.build.directory}/unpack</unpack.dir>
<jre.dirname.linux>jdk-21.0.10+7-jre</jre.dirname.linux>
<jre.dirname.windows>jdk-21.0.10+7-jre</jre.dirname.windows>
<jre.dirname.macosx>jdk-21.0.10+7-jre/Contents/Home</jre.dirname.macosx>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.sonarsource.sonarlint.core.backend.cli.SonarLintServerCli</mainClass>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dist-no-arch</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble-no-arch</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<escapeString>\</escapeString>
<descriptors>
<descriptor>src/main/assembly/dist-no-arch.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<id>dist-windows_x64</id>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>unpack-windows_x64</id>
<phase>package</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.10%2B7/OpenJDK21U-jre_x64_windows_hotspot_21.0.10_7.zip</url>
<unpack>true</unpack>
<outputDirectory>${unpack.dir}/windows_x64</outputDirectory>
<sha256>a6ac6789e51a2c245f41430c42e72b39ec706a449812fc5e4cbfc55ceed1e5ae</sha256>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble-windows_x64</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<escapeString>\</escapeString>
<descriptors>
<descriptor>src/main/assembly/dist-windows_x64.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<id>dist-linux_x64</id>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>unpack-linux_x64</id>
<phase>package</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.10%2B7/OpenJDK21U-jre_x64_linux_hotspot_21.0.10_7.tar.gz</url>
<unpack>true</unpack>
<outputDirectory>${unpack.dir}/linux_x64</outputDirectory>
<sha256>991be6ac6725e76109ecbd131d658f992dcbeacba3a8b4b6650302c8012b52fb</sha256>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble-linux_x64</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<escapeString>\</escapeString>
<descriptors>
<descriptor>src/main/assembly/dist-linux_x64.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>dist-linux_aarch64</id>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>unpack-linux_aarch64</id>
<phase>package</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.10%2B7/OpenJDK21U-jre_aarch64_linux_hotspot_21.0.10_7.tar.gz</url>
<unpack>true</unpack>
<outputDirectory>${unpack.dir}/linux_aarch64</outputDirectory>
<sha256>3ca84da7c4f57eee8d7e7f0645dc904a3a06456d32b37a4dd57a5e7527245250</sha256>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble-linux_aarch64</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<escapeString>\</escapeString>
<descriptors>
<descriptor>src/main/assembly/dist-linux_aarch64.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>dist-macosx_x64</id>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>unpack-macosx_x64</id>
<phase>package</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.10%2B7/OpenJDK21U-jre_x64_mac_hotspot_21.0.10_7.tar.gz</url>
<unpack>true</unpack>
<outputDirectory>${unpack.dir}/macosx_x64</outputDirectory>
<sha256>008d2bb904c0e07500b92bf4b0f8d434d694b13d5189f06358a52d46b1351f37</sha256>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble-macosx_x64</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<escapeString>\</escapeString>
<descriptors>
<descriptor>src/main/assembly/dist-macosx_x64.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>dist-macosx_aarch64</id>
<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<id>unpack-macosx_aarch64</id>
<phase>package</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.10%2B7/OpenJDK21U-jre_aarch64_mac_hotspot_21.0.10_7.tar.gz</url>
<unpack>true</unpack>
<outputDirectory>${unpack.dir}/macosx_aarch64</outputDirectory>
<sha256>c3be8c87f1a5cdc727903546eb810e112f94cd7222dac6a9d3f3146ee932008d</sha256>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble-macosx_aarch64</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<escapeString>\</escapeString>
<descriptors>
<descriptor>src/main/assembly/dist-macosx_aarch64.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
<version>4.7.7</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>sonarlint-rpc-impl</artifactId>
<version>${project.version}</version>
</dependency>
<!-- unit tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>