sonarlint-backend-cli
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.sonarsource.sonarlint.core</groupId> <artifactId>sonarlint-backend-cli</artifactId> <version>10.21.0.81131</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-core-parent</artifactId> <version>10.21.0.81131</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-17.0.9+9-jre</jre.dirname.linux> <jre.dirname.windows>jdk-17.0.9+9-jre</jre.dirname.windows> <jre.dirname.macosx>jdk-17.0.9+9-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/temurin17-binaries/releases/download/jdk-17.0.9%2B9.1/OpenJDK17U-jre_x64_windows_hotspot_17.0.9_9.zip</url> <unpack>true</unpack> <outputDirectory>${unpack.dir}/windows_x64</outputDirectory> <sha256>6c491d6f8c28c6f451f08110a30348696a04b009f8c58592191046e0fab1477b</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/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jre_x64_linux_hotspot_17.0.9_9.tar.gz</url> <unpack>true</unpack> <outputDirectory>${unpack.dir}/linux_x64</outputDirectory> <sha256>c37f729200b572884b8f8e157852c739be728d61d9a1da0f920104876d324733</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/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jre_aarch64_linux_hotspot_17.0.9_9.tar.gz</url> <unpack>true</unpack> <outputDirectory>${unpack.dir}/linux_aarch64</outputDirectory> <sha256>05b192f81ed478178ba953a2a779b67fc5a810acadb633ad69f8c4412399edb8</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/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jre_x64_mac_hotspot_17.0.9_9.tar.gz</url> <unpack>true</unpack> <outputDirectory>${unpack.dir}/macosx_x64</outputDirectory> <sha256>ba214f2217dc134e94432085cff4fc5a97e964ffc211d343725fd535f3cd98a0</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/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jre_aarch64_mac_hotspot_17.0.9_9.tar.gz</url> <unpack>true</unpack> <outputDirectory>${unpack.dir}/macosx_aarch64</outputDirectory> <sha256>89831d03b7cd9922bd178f1a9c8544a36c54d52295366db4e6628454b01acaef</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.6</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>