idea在build的时候报这四个依赖怎么解决

Blade 未结 1 661
3092844924
3092844924 剑圣 2023-03-22 00:11

捕获.JPG


  • Resolve dependencies

  • Cannot resolve org.whispersystems.textsecure:service:9.25.1-dirty-SNAPSHOT

  • Cannot resolve org.whispersystems.textsecure:event-logger:9.25.1-dirty-SNAPSHOT

  • Cannot resolve org.whispersystems.textsecure:redis-dispatch:9.25.1-dirty-SNAPSHOT

  • Cannot resolve org.whispersystems.textsecure:websocket-resources:9.25.1-dirty-SNAPSHOT


maven用的是3.85版本。


pom.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>

  <packaging>pom</packaging>


  <repositories>

    <repository>

      <id>aliyun</id>

      <name>aliyun</name>

      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>

    </repository>

  </repositories>


  <pluginRepositories>

    <pluginRepository>

      <id>ossrh-snapshots</id>

      <url>https://oss.sonatype.org/content/repositories/snapshots</url>

      <releases>

        <enabled>false</enabled>

      </releases>

      <snapshots>

        <enabled>true</enabled>

      </snapshots>

    </pluginRepository>

  </pluginRepositories>


  <modules>

    <module>api-doc</module>

    <module>event-logger</module>

    <module>redis-dispatch</module>

    <module>service</module>

    <module>websocket-resources</module>

  </modules>


  <properties>

    <aws.sdk.version>1.12.376</aws.sdk.version>

    <aws.sdk2.version>2.19.8</aws.sdk2.version>

    <braintree.version>3.19.0</braintree.version>

    <commons-csv.version>1.9.0</commons-csv.version>

    <commons-io.version>2.9.0</commons-io.version>

    <dropwizard.version>2.0.34</dropwizard.version>

    <dropwizard-metrics-datadog.version>1.1.13</dropwizard-metrics-datadog.version>

    <google-cloud-libraries.version>26.1.3</google-cloud-libraries.version>

    <grpc.version>1.51.1</grpc.version> <!-- this should be kept in sync with the value from Google’s libraries-bom -->

    <gson.version>2.9.0</gson.version>

    <jackson.version>2.13.4</jackson.version>

    <jaxb.version>2.3.1</jaxb.version>

    <jedis.version>2.9.0</jedis.version>

    <kotlin.version>1.8.0</kotlin.version>

    <kotlinx-serialization.version>1.4.1</kotlinx-serialization.version>

    <lettuce.version>6.2.1.RELEASE</lettuce.version>

    <libphonenumber.version>8.12.54</libphonenumber.version>

    <logstash.logback.version>7.2</logstash.logback.version>

    <luajava.version>3.4.0</luajava.version>

    <micrometer.version>1.10.3</micrometer.version>

    <mockito.version>4.11.0</mockito.version>

    <netty.version>4.1.82.Final</netty.version>

    <opentest4j.version>1.2.0</opentest4j.version>

    <protobuf.version>3.21.7</protobuf.version>

    <pushy.version>0.15.2</pushy.version>

    <resilience4j.version>1.7.0</resilience4j.version>

    <semver4j.version>3.1.0</semver4j.version>

    <slf4j.version>1.7.30</slf4j.version>

    <stripe.version>21.2.0</stripe.version>

    <vavr.version>0.10.4</vavr.version>


    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

  </properties>


  <groupId>org.whispersystems.textsecure</groupId>

  <artifactId>TextSecureServer</artifactId>

  <version>JGITVER</version>


  <dependencyManagement>

    <dependencies>

      <dependency>

        <groupId>com.fasterxml.jackson</groupId>

        <artifactId>jackson-bom</artifactId>

        <version>${jackson.version}</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <dependency>

        <groupId>io.dropwizard</groupId>

        <artifactId>dropwizard-dependencies</artifactId>

        <version>${dropwizard.version}</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <!-- Needed for gRPC with Java 9+ -->

      <dependency>

        <groupId>org.apache.tomcat</groupId>

        <artifactId>annotations-api</artifactId>

        <version>6.0.53</version>

        <scope>provided</scope>

      </dependency>

      <dependency>

        <groupId>io.netty</groupId>

        <artifactId>netty-bom</artifactId>

        <version>${netty.version}</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <dependency>

        <groupId>com.amazonaws</groupId>

        <artifactId>aws-java-sdk-bom</artifactId>

        <version>${aws.sdk.version}</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <dependency>

        <groupId>software.amazon.awssdk</groupId>

        <artifactId>bom</artifactId>

        <version>${aws.sdk2.version}</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <dependency>

        <groupId>com.google.cloud</groupId>

        <artifactId>libraries-bom</artifactId>

        <version>${google-cloud-libraries.version}</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <dependency>

        <groupId>io.github.resilience4j</groupId>

        <artifactId>resilience4j-bom</artifactId>

        <version>${resilience4j.version}</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <dependency>

        <groupId>io.micrometer</groupId>

        <artifactId>micrometer-bom</artifactId>

        <version>${micrometer.version}</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <dependency>

        <groupId>io.projectreactor</groupId>

        <artifactId>reactor-bom</artifactId>

        <version>2022.0.3</version> <!-- 3.5.x, see https://github.com/reactor/reactor#bom-versioning-scheme -->

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <dependency>

        <groupId>org.jetbrains.kotlin</groupId>

        <artifactId>kotlin-bom</artifactId>

        <version>${kotlin.version}</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

      <dependency>

        <groupId>com.eatthepath</groupId>

        <artifactId>pushy</artifactId>

        <version>${pushy.version}</version>

      </dependency>

      <dependency>

        <groupId>com.eatthepath</groupId>

        <artifactId>pushy-dropwizard-metrics-listener</artifactId>

        <version>${pushy.version}</version>

      </dependency>

      <dependency>

        <groupId>com.google.protobuf</groupId>

        <artifactId>protobuf-java</artifactId>

        <version>${protobuf.version}</version>

      </dependency>

      <dependency>

        <groupId>com.googlecode.libphonenumber</groupId>

        <artifactId>libphonenumber</artifactId>

        <version>${libphonenumber.version}</version>

      </dependency>

      <dependency>

        <groupId>com.vdurmont</groupId>

        <artifactId>semver4j</artifactId>

        <version>${semver4j.version}</version>

      </dependency>

      <dependency>

        <groupId>commons-io</groupId>

        <artifactId>commons-io</artifactId>

        <version>${commons-io.version}</version>

      </dependency>

      <dependency>

        <groupId>io.lettuce</groupId>

        <artifactId>lettuce-core</artifactId>

        <version>${lettuce.version}</version>

      </dependency>

      <dependency>

        <groupId>io.vavr</groupId>

        <artifactId>vavr</artifactId>

        <version>${vavr.version}</version>

      </dependency>

      <dependency>

        <groupId>javax.xml.bind</groupId>

        <artifactId>jaxb-api</artifactId>

        <version>${jaxb.version}</version>

      </dependency>

      <dependency>

        <groupId>net.logstash.logback</groupId>

        <artifactId>logstash-logback-encoder</artifactId>

        <version>${logstash.logback.version}</version>

      </dependency>

      <dependency>

        <groupId>org.apache.commons</groupId>

        <artifactId>commons-csv</artifactId>

        <version>${commons-csv.version}</version>

      </dependency>

      <dependency>

        <groupId>org.coursera</groupId>

        <artifactId>dropwizard-metrics-datadog</artifactId>

        <version>${dropwizard-metrics-datadog.version}</version>

      </dependency>

      <dependency>

        <groupId>org.glassfish.jaxb</groupId>

        <artifactId>jaxb-runtime</artifactId>

        <version>${jaxb.version}</version>

        <scope>runtime</scope>

      </dependency>

      <dependency>

        <groupId>org.mockito</groupId>

        <artifactId>mockito-core</artifactId>

        <version>${mockito.version}</version>

        <scope>test</scope>

      </dependency>

      <dependency>

        <groupId>org.mockito</groupId>

        <artifactId>mockito-inline</artifactId>

        <version>${mockito.version}</version>

        <scope>test</scope>

      </dependency>

      <dependency>

        <groupId>org.opentest4j</groupId>

        <artifactId>opentest4j</artifactId>

        <version>${opentest4j.version}</version>

        <scope>test</scope>

      </dependency>

      <dependency>

        <groupId>org.slf4j</groupId>

        <artifactId>slf4j-api</artifactId>

        <version>${slf4j.version}</version>

      </dependency>

      <dependency>

        <groupId>org.slf4j</groupId>

        <artifactId>slf4j-nop</artifactId>

        <version>${slf4j.version}</version>

        <scope>test</scope>

      </dependency>

      <dependency>

        <groupId>redis.clients</groupId>

        <artifactId>jedis</artifactId>

        <version>${jedis.version}</version>

      </dependency>

      <dependency>

        <groupId>commons-logging</groupId>

        <artifactId>commons-logging</artifactId>

        <version>1.2</version>

      </dependency>

      <dependency>

        <groupId>org.ow2.asm</groupId>

        <artifactId>asm</artifactId>

        <version>9.2</version>

        <scope>test</scope>

      </dependency>

      <dependency>

        <groupId>com.stripe</groupId>

        <artifactId>stripe-java</artifactId>

        <version>${stripe.version}</version>

      </dependency>

      <dependency>

        <groupId>com.braintreepayments.gateway</groupId>

        <artifactId>braintree-java</artifactId>

        <version>${braintree.version}</version>

      </dependency>

      <dependency>

        <groupId>com.google.code.gson</groupId>

        <artifactId>gson</artifactId>

        <version>${gson.version}</version>

      </dependency>

      <dependency>

        <groupId>org.signal</groupId>

        <artifactId>embedded-redis</artifactId>

        <version>0.8.3</version>

        <scope>test</scope>

      </dependency>

      <dependency>

        <groupId>org.signal</groupId>

        <artifactId>libsignal-server</artifactId>

        <version>0.22.0</version>

      </dependency>

      <dependency>

        <groupId>org.apache.logging.log4j</groupId>

        <artifactId>log4j-bom</artifactId>

        <version>2.17.1</version>

        <type>pom</type>

        <scope>import</scope>

      </dependency>

    </dependencies>

  </dependencyManagement>


  <dependencies>

    <dependency>

      <groupId>org.hamcrest</groupId>

      <artifactId>hamcrest-all</artifactId>

      <version>1.3</version>

      <scope>test</scope>

    </dependency>

    <dependency>

      <groupId>com.github.tomakehurst</groupId>

      <artifactId>wiremock-jre8</artifactId>

      <version>2.35.0</version>

      <scope>test</scope>

      <exclusions>

        <exclusion>

          <groupId>org.hamcrest</groupId>

          <artifactId>hamcrest-core</artifactId>

        </exclusion>

        <exclusion>

          <groupId>javax.xml.bind</groupId>

          <artifactId>jaxb-api</artifactId>

        </exclusion>

      </exclusions>

    </dependency>

    <dependency>

      <groupId>org.mockito</groupId>

      <artifactId>mockito-core</artifactId>

      <version>${mockito.version}</version>

      <scope>test</scope>

    </dependency>

    <dependency>

      <groupId>org.assertj</groupId>

      <artifactId>assertj-core</artifactId>

      <scope>test</scope>

    </dependency>

    <dependency>

      <groupId>org.junit.jupiter</groupId>

      <artifactId>junit-jupiter-api</artifactId>

      <scope>test</scope>

    </dependency>

    <dependency>

      <groupId>org.junit-pioneer</groupId>

      <artifactId>junit-pioneer</artifactId>

      <version>1.9.1</version>

      <scope>test</scope>

    </dependency>


  </dependencies>


  <profiles>

    <!-- <profile>

      <id>include-spam-filter</id>

      <activation>

        <file>

          <exists>spam-filter/pom.xml</exists>

        </file>

      </activation>

      <modules>

        <module>spam-filter</module>

      </modules>

    </profile> -->


    <profile>

      <id>exclude-spam-filter</id>

      <activation>

        <file>

          <missing>spam-filter/pom.xml</missing>

        </file>

      </activation>

    </profile>

  </profiles>


  <build>

    <extensions>

      <extension>

        <groupId>kr.motd.maven</groupId>

        <artifactId>os-maven-plugin</artifactId>

        <version>1.7.0</version>

      </extension>

    </extensions>

    <plugins>


      <plugin>

        <groupId>org.xolstice.maven.plugins</groupId>

        <artifactId>protobuf-maven-plugin</artifactId>

        <version>0.6.1</version>

        <configuration>

          <checkStaleness>false</checkStaleness>

          <protocArtifact>com.google.protobuf:protoc:3.21.1:exe:${os.detected.classifier}</protocArtifact>

          <pluginId>grpc-java</pluginId>

          <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>

        </configuration>

        <executions>

          <execution>

            <goals>

              <goal>compile</goal>

              <goal>compile-custom</goal>

              <goal>test-compile</goal>

            </goals>

          </execution>

        </executions>

      </plugin>


      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-compiler-plugin</artifactId>

        <version>3.8.1</version>

        <configuration>

          <release>17</release>

            <source>16</source>

            <target>16</target>

        </configuration>

      </plugin>


      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-jar-plugin</artifactId>

        <version>3.2.0</version>

        <configuration>

          <archive>

            <manifest>

              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>

            </manifest>

          </archive>

        </configuration>

      </plugin>


      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-dependency-plugin</artifactId>

        <version>3.1.2</version>

        <executions>

          <execution>

            <id>copy</id>

            <phase>test-compile</phase>

            <goals>

              <goal>copy-dependencies</goal>

            </goals>

            <configuration>

              <includeScope>test</includeScope>

              <includeTypes>so,dll,dylib</includeTypes>

              <outputDirectory>${project.build.directory}/lib</outputDirectory>

            </configuration>

          </execution>

        </executions>

      </plugin>


      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-surefire-plugin</artifactId>

        <version>3.0.0-M5</version>

        <configuration>

          <systemProperties>

            <property>

              <name>sqlite4java.library.path</name>

              <value>${project.build.directory}/lib</value>

            </property>

          </systemProperties>

        </configuration>

      </plugin>


      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-enforcer-plugin</artifactId>

        <version>3.0.0-M3</version>

        <executions>

          <execution>

            <goals>

              <goal>enforce</goal>

            </goals>

            <configuration>

              <rules>

                <dependencyConvergence/>

                <requireMavenVersion>

                  <version>3.8.6</version>

                </requireMavenVersion>

              </rules>

            </configuration>

          </execution>

        </executions>

      </plugin>


      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-install-plugin</artifactId>

        <version>3.0.0-M1</version>

        <configuration>

          <skip>true</skip>

        </configuration>

      </plugin>


      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-deploy-plugin</artifactId>

        <version>3.0.0-M1</version>

        <configuration>

          <skip>true</skip>

        </configuration>

      </plugin>

      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-compiler-plugin</artifactId>

        <configuration>

          <source>16</source>

          <target>16</target>

        </configuration>

      </plugin>

      <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-compiler-plugin</artifactId>

        <configuration>

          <source>17</source>

          <target>17</target>

        </configuration>

      </plugin>


    </plugins>

  </build>


</project>

1条回答
  • 2023-03-23 11:03

    我看你引入的依赖是 SNAPSHOT,应该是没有推送到中央仓库吧,也许要你下载对应源码来本地install或者推送到nexus私服来依赖。

    看看有没有依赖的正式版,如果在中央仓库能搜索到,那就能依赖成功

    0 讨论(0)
提交回复