我不知道我们可以在您的桌面应用程序中使用Firebase吗,所以我开始在我的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>
<groupId>com.mycompany</groupId>
<artifactId>system</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.google.firebase</groupId>
<artifactId>firebase-core</artifactId>
<version>16.0.1</version>
</dependency>
</dependencies>
</project>
无法在项目系统上执行目标:无法解析项目com.mycompany:system:jar:1.0-SNAPSHOT的依赖项:无法在{{中找到com.google.firebase:firebase-core:jar:16.0.1 3}}已缓存在本地存储库中,直到中心的更新间隔过去或强制执行更新-> [帮助1]
要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 使用-X开关重新运行Maven以启用完整的调试日志记录。