- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我尝试过:
mvn clean install -DskipTests -DdownloadSources=true
用于建筑https://github.com/OhadR/Authentication-Flows.git
我有:
...Failed to execute goal on project client: Could not resolve dependencies for project com.ohadr.auth-flows:client:war:1.0.0-SNAPSHOT: Could not find artifact com.ohadr:authentication-flows:jar:1.6.2-SNAPSHOT... The POM for com.ohadr:authentication-flows:jar:1.6.2-SNAPSHOT is missing, no dependency information available...
接下来,我尝试添加此存储库:
<repository>
<id>central-maven</id>
<name>Central Maven</name>
<url>http://central.maven.org/maven2</url>
</repository>
以及下载 jar ( http://central.maven.org/maven2/com/ohadr/authentication-flows/1.6.0-RELEASE/authentication-flows-1.6.2-RELEASE.jar ) 并手动安装:
mvn install:install-file -DgroupId=com.ohadr \
-DartifactId=authentication-flows \
-Dversion=1.6.2-SNAPSHOT \
-Dpackaging=jar -Dfile=authentication-flows-1.6.2-RELEASE.jar
现在我有:
...Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project client: Compilation failure: Compilation failure:...impl/CustomCreateAccountEndpoint.java:[6,38] package com.ohadr.auth_flows.endpoints does not exist
我做错了什么?谢谢。
最佳答案
客户端应用程序的最新版本(主分支)取决于authentication-flows
JAR 的“最新”版本 - SNAPSHOT 版本。 maven-repository 中不存在快照,这就是您收到错误的原因。
您也可以克隆身份验证流程项目并在本地构建它,或者更改依赖项将 client-pom 更新为 1.6.1-RELEASE 版本。
HTH
关于java - 如何解决 "Could not find artifact com.ohadr:authentication-flows"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31036369/
对于 Nexus 中的 Artifact ,我想找出类路径,即该 Artifact 是针对哪个 Artifact 的哪个版本构建的。当然,解析pom会给出一些提示,但由于我们有父POM、依赖管理等,这
我想将库部署到公司的远程存储库。 这是我第一次要将库项目部署到远程存储库。 我收到以下错误消息: org.sonatype.aether.transfer.ArtifactNotFoundExcept
在我们的 Artifact 上,我们有POM文件为 commons-lang commons-lang 2.6 4.0.0 commons-lang commons-la
我们使用 Maven 来构建我们的项目,并使用 Nexus 作为存储库管理器。 有没有办法知道一个 Artifact 在哪里是另一个 Artifact 的依赖项? 例如,我们想知道我们的发布存储库中的
我已经重新初始化了我的 pom.xml,但是我得到了: ArtifactDescriptorException: Failed to read artifact descriptor for org.
将maven Android 项目导入eclipse 时出现以下错误: Could not update project assistance configuration me.gladwell.
假设,ArtifactA 依赖于 ArtifactB,ArtifactC 也依赖于 ArtifactB 我知道“mvn dependency plugin”可以帮助列出项目/Artifact 的依赖项
在我的 Maven 构建结束时,一个用于此明确目的的模块从各种其他模块收集 Artifact ,并使用 Assembly 插件将它们压缩到一个存档中。完成后,它会使用 Deploy 插件将它们部署到
我有一个我正在尝试构建的相对较新的项目。 Gradle 同步正常,但每当我尝试构建时,都会收到如下错误: Execution failed for task ':app:kaptGenerateStu
我在 Azure DevOps 中设置了 Gradle 构建,它在 Azure DevOps git 存储库中编译代码,然后将生成的 JAR(作为 Maven Artifact )发布到 Azure
提出这个问题的另一种方式是: 如何验证maven使用 Azure 进行项目 personal access token这样Maven构建就可以下载artifacts发表于Azure Artifacts
提出这个问题的另一种方式是: 如何验证maven使用 Azure 进行项目 personal access token这样Maven构建就可以下载artifacts发表于Azure Artifacts
这与具有类似错误的现有问题有点不同 - 我不认为这是重复的。 我有项目 A,我使用 mvn clean install 在本地成功构建并安装了该项目。 我验证了director中存在jar和pom~/
我有一个包含此存储库的 Artifact 服务器 发布 锁定版本 我必须将一些 Artifact (大约 50.000 个)从版本移至锁定版本... 我需要识别具有精确版本的 Artifact : 例
我正在升级一个拥有 3000 多个 java maven 项目和 repos 的庞大系统,从 Java 7 部署到 Java 8。我们将尝试一次迁移部分系统,这意味着一些 Artifact 会使用 j
所以我遇到了一个错误 Failed to read artifact descriptor对于已部署到我本地 Nexus 的插件。我检查了 Nexus 上的 pom。 这个插件依赖于 Maven 2.
在 Azure DevOps 中,我们有 Download/Publish构建工件任务和 Download/Publish管道工件任务。 构建工件任务和管道工件任务之间有什么区别,我们什么时候会选择一
我有一个由 Maven 管理的原始 java webapp(因此会生成一个 WAR 文件),我们称它为 webapp。 我喜欢保持其 Maven 配置不变,但有时我需要通过操作其内容(或以任何方式对其
我有一个 Artifact abc,它有一些测试。我的存储库中有不同版本的 abc。我现在希望能够针对项目的“旧版本”运行最新的测试。 我试图将 Artifact 本身添加到测试依赖项中,但这(当然)
我目前有一个用 Maven 构建的 Java 测试库,并作为 jar 分发。我的项目依赖于一个非常常见的库 (Objectweb ASM),而且我遇到了一些问题,即类路径中已经存在较早且不兼容的 AS
我是一名优秀的程序员,十分优秀!