- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我刚刚清理了一年前正在开发的一个旧项目,并尝试对 Sonatpye Nexus 存储库部署修复程序,但不断遇到我不明白的规则故障。这是一个在 IntelliJ IDE 中开发的 Maven 项目。
我的错误是:
[ERROR] Nexus Staging Rules Failure Report
[ERROR] ==================================
[ERROR]
[ERROR] Repository "comgithubmuseadmin-1055" failures
[ERROR] Rule "sources-staging" failures
[ERROR] * Missing: no sources jar found in folder '/com/github/museadmin/infinite-state-machine/1.1.9'
[ERROR] Rule "javadoc-staging" failures
[ERROR] * Missing: no javadoc jar found in folder '/com/github/museadmin/infinite-state-machine/1.1.9'
[ERROR] Rule "signature-staging" failures
[ERROR] * Missing Signature: '/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.jar.asc' does not exist for 'infinite-state-machine-1.1.9.jar'.
[ERROR] * Missing Signature: '/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.pom.asc' does not exist for 'infinite-state-machine-1.1.9.pom'.
我假设它引用的 /com/xxx
路径位于我的 .m2 目录下,因为项目中不存在它。但是 /Users/atkinsb/.m2/repository/com/github/museadmin/infinite-state-machine/1.1.9
下该目录的内容是:
Bradleys-MacBook-Pro:1.1.9 atkinsb$ ll
total 624
-rw-r--r-- 1 atkinsb staff 461 3 Apr 16:31 _remote.repositories
-rw-r--r-- 1 atkinsb staff 40624 3 Apr 13:53 infinite-state-machine-1.1.9-javadoc.jar
-rw-r--r-- 1 atkinsb staff 473 3 Apr 13:54 infinite-state-machine-1.1.9-javadoc.jar.asc
-rw-r--r-- 1 atkinsb staff 121951 3 Apr 13:53 infinite-state-machine-1.1.9-sources.jar
-rw-r--r-- 1 atkinsb staff 473 3 Apr 13:54 infinite-state-machine-1.1.9-sources.jar.asc
-rw-r--r-- 1 atkinsb staff 123349 3 Apr 16:29 infinite-state-machine-1.1.9.jar
-rw-r--r-- 1 atkinsb staff 473 3 Apr 13:53 infinite-state-machine-1.1.9.jar.asc
-rw-r--r-- 1 atkinsb staff 3360 3 Apr 13:35 infinite-state-machine-1.1.9.pom
-rw-r--r-- 1 atkinsb staff 473 3 Apr 13:53 infinite-state-machine-1.1.9.pom.asc
在继续查看签名错误之前,我想了解为什么它会提示没有源或 java 文档 jar,而实际上它们似乎存在。
有任何 Java 向导能够启发我,让我知道我做错了什么吗?
干杯
布拉德
PS我的settings.xml:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>xxxxxxxxxx</gpg.passphrase>
</properties>
</profile>
</profiles>
<servers>
<server>
<id>ossrh</id>
<username>steadyonabix</username>
<password>xxxxxxx</password>
</server>
</servers>
</settings>
这是完整的日志输出:
Bradleys-MacBook-Pro:infinite-state-machine atkinsb$ mvn deploy
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building com.github.museadmin:infinite-state-machine 1.1.9
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ infinite-state-machine ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ infinite-state-machine ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ infinite-state-machine ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/atkinsb/GitRepos/infinite-state-machine/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ infinite-state-machine ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ infinite-state-machine ---
[INFO] Surefire report directory: /Users/atkinsb/GitRepos/infinite-state-machine/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.github.museadmin.infinite_state_machine.unit.tests.core.TestMessagingFramework
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions prior to 1.8.
SLF4J: Ignoring binding found at [jar:file:/Users/atkinsb/.m2/repository/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#ignoredBindings for an explanation.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.173 sec
Running com.github.museadmin.infinite_state_machine.unit.tests.core.TestInfiniteStateMachine
NO ACTIONS IMPORTED
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.073 sec
Running com.github.museadmin.infinite_state_machine.unit.tests.core.TestPropertyCache
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Results :
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ infinite-state-machine ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ infinite-state-machine ---
[INFO] Installing /Users/atkinsb/GitRepos/infinite-state-machine/target/infinite-state-machine-1.1.9.jar to /Users/atkinsb/.m2/repository/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.jar
[INFO] Installing /Users/atkinsb/GitRepos/infinite-state-machine/pom.xml to /Users/atkinsb/.m2/repository/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.pom
[INFO]
[INFO] --- nexus-staging-maven-plugin:1.6.8:deploy (injected-nexus-deploy) @ infinite-state-machine ---
[INFO] Performing local staging (local stagingDirectory="/Users/atkinsb/GitRepos/infinite-state-machine/target/nexus-staging/staging")...
[INFO] + Using server credentials "ossrh" from Maven settings.
[INFO] * Connected to Nexus at https://oss.sonatype.org:443/, is version 2.14.16-01 and edition "Professional"
[INFO] * Using staging profile ID "5958335c79f727" (matched by Nexus).
[INFO] Installing /Users/atkinsb/GitRepos/infinite-state-machine/target/infinite-state-machine-1.1.9.jar to /Users/atkinsb/GitRepos/infinite-state-machine/target/nexus-staging/staging/5958335c79f727/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.jar
[INFO] Installing /Users/atkinsb/GitRepos/infinite-state-machine/pom.xml to /Users/atkinsb/GitRepos/infinite-state-machine/target/nexus-staging/staging/5958335c79f727/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.pom
[INFO] Performing remote staging...
[INFO]
[INFO] * Remote staging into staging profile ID "5958335c79f727"
[INFO] * Created staging repository with ID "comgithubmuseadmin-1058".
[INFO] * Staging repository at https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubmuseadmin-1058
[INFO] * Uploading locally staged artifacts to profile com.github.museadmin
Uploading: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubmuseadmin-1058/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.jar
Uploaded: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubmuseadmin-1058/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.jar (121 KB at 94.4 KB/sec)
Uploading: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubmuseadmin-1058/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.pom
Uploaded: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubmuseadmin-1058/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.pom (4 KB at 8.3 KB/sec)
Downloading: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubmuseadmin-1058/com/github/museadmin/infinite-state-machine/maven-metadata.xml
Uploading: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubmuseadmin-1058/com/github/museadmin/infinite-state-machine/maven-metadata.xml
Uploaded: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubmuseadmin-1058/com/github/museadmin/infinite-state-machine/maven-metadata.xml (322 B at 0.5 KB/sec)
[INFO] * Upload of locally staged artifacts finished.
[INFO] * Closing staging repository with ID "comgithubmuseadmin-1058".
Waiting for operation to complete...
......
[ERROR] Rule failure while trying to close staging repository with ID "comgithubmuseadmin-1058".
[ERROR]
[ERROR] Nexus Staging Rules Failure Report
[ERROR] ==================================
[ERROR]
[ERROR] Repository "comgithubmuseadmin-1058" failures
[ERROR] Rule "javadoc-staging" failures
[ERROR] * Missing: no javadoc jar found in folder '/com/github/museadmin/infinite-state-machine/1.1.9'
[ERROR] Rule "sources-staging" failures
[ERROR] * Missing: no sources jar found in folder '/com/github/museadmin/infinite-state-machine/1.1.9'
[ERROR] Rule "signature-staging" failures
[ERROR] * Missing Signature: '/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.jar.asc' does not exist for 'infinite-state-machine-1.1.9.jar'.
[ERROR] * Missing Signature: '/com/github/museadmin/infinite-state-machine/1.1.9/infinite-state-machine-1.1.9.pom.asc' does not exist for 'infinite-state-machine-1.1.9.pom'.
[ERROR]
[ERROR]
[ERROR] Cleaning up local stage directory after a Rule failure during close of staging repositories: [comgithubmuseadmin-1058]
[ERROR] * Deleting context 5958335c79f727.properties
[ERROR] Cleaning up remote stage repositories after a Rule failure during close of staging repositories: [comgithubmuseadmin-1058]
[ERROR] * Dropping failed staging repository with ID "comgithubmuseadmin-1058" (Rule failure during close of staging repositories: [comgithubmuseadmin-1058]).
Waiting for operation to complete...
...
[ERROR] Remote staging finished with a failure: Staging rules failure!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55.331 s
[INFO] Finished at: 2020-04-03T19:12:13+01:00
[INFO] Final Memory: 31M/340M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (injected-nexus-deploy) on project infinite-state-machine: Remote staging failed: Staging rules failure! -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
顺便说一句,我刚刚删除了 .m2 目录下的项目并执行了另一个 man install
和 man javadoc:jar
但 javadoc jar 还没有在那里被替换。
最佳答案
终于!真是令人沮丧的一天。
我发现了一些我放在一边的旧笔记,并发现将此配置文件添加到命令行是有效的。还是不知道为什么...
mvn clean deploy -Pdeploy
感谢大家的帮助。
关于java - 部署到 sonatype nexus 存储库失败并缺少资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61015866/
我想为这 4 台设备提供 2 种不同的布局。我希望 Nexus4 (1280x720) 和 Nexus7(1024x600) 使用 layoutA,而 NexusOne/NexusS(均为 800x4
我遇到了无法解决的问题。 我买了一个便宜的vps,用ubuntu 12.10然后安装了tomcat7、maven和nexus。所有这些都是最新的。这是一个全新的安装。我启动并部署了nexus,cata
我可以使用HTTP header 中的HTTP基本身份验证凭据从Sonatype Nexus下载文件。 但是我无法通过将凭据作为url的一部分来实现这一点-像这样: http://admin:admi
当我将 Nexus war 安装到我的 tomcat 服务器 Nexus 时,在 Win 主目录中创建其文件夹等。我想将此重定向到我的不同目录。 含义..我希望nexus将其存储库存储在用户定义的文件
在我的内部 Sonatype Nexus 中,存储库(例如 Codehaus 快照)的路由选项卡上写着 --- Publishing --- | Status: Not published |
我安装了 Sonatype Nexus,我有默认用户 admin/admin123。现在我将 Authenticating Realm 更改为 LDAP 并删除了 XML Authenticating
我使用的是 Sonatype Nexus OSS 3.2 版。谁能指导我如何自定义 Nexus 运行的端口? 我找不到任何配置文件来自定义端口和自定义上下文路径? 目前 Nexus 正在运行 http
我正在尝试通过 nexus 3 api 删除存储库中的一些组件 我已按照以下问题中的说明进行操作 Using the Nexus3 API how do I get a list of artifac
我使用 Nexus 3,我想删除我的旧版本。在 Nexus 2 中有一个名为 Remove Releases From Repository 的计划任务。 . Nexus 3 中似乎缺少此任务。 我们
如何在 Nexus 3 中获取特定存储库的大小? 例如,Artifactory 通过 UI 显示存储库“磁盘上的大小”。 Nexus有类似的东西吗?如果不是 - 我如何通过脚本获取此信息? 最佳答案
我有一个生成版本化构建工件的非 Java 项目,我想将其上传到 Nexus 存储库。由于该项目不是 Java,因此它不使用 Maven 进行构建。而且我不想引入 Maven/POM 文件只是为了将文件
我最近将我们的存储库服务器升级到 nexus-3.0.0-M5,我注意到它存在两个问题。 我创建的任何存储库(托管)都会陷入远程连接挂起状态,并且无论我做什么它都不会改变。 我已经有一个巨大的存储/索
我想将一组工件从一个 Nexus 移动到另一个(下载并稍后上传)。我只能一个一个下载神器, ¿有没有办法下载整个文件夹? ¿是否有任何其他类型的操作,如导出/导入? 谢谢! 编辑: 我可以访问用户文件
我正在从 Nexus2 迁移到 Nexus3,并尝试在此过程中进行一些清理。 我真的很想重命名我正在迁移的一些存储库,因为 repositoryID 不如存储库名称那么清晰。在 Nexus 3 中,r
我操作一些 Docker 服务。其中一些是使用 Dockerfiles 自制的。我现在想将它们存储到 Sonatype Nexus 私有(private)存储库中,以将它们发布到我网络中的另一台服务器
首先,我是 Nexus 的新手。因此,如果这是一个太菜鸟的问题,请多多包涵。让我首先解释一下我们当前的构建/部署过程是如何工作的。 我们目前的做法: 我们有一个基于 Maven 的项目。有一个父 PO
我下载了一个解压的 Sonatype Nexus OSS。但不知道如何安装它。有一个自述文件。所有教程都会过时。 nexus.exe没有消息就立即完成。没有日志出现。与 nexus.exe insta
在研究 CI 工具时,我发现许多 CI 安装也集成到 Artifactory 存储库,如 SonaType Nexus 和 JFrog Artifactory。 这些工具听起来与 Maven 高度集成
我们在一些磁盘空间有限的旧硬件上运行 nexus,并希望删除超过某个阈值的工件。 除了 find 和 curl 的组合之外,还有什么办法可以做到这一点吗? ? 最佳答案 有一个计划任务可以自动删除旧的
在 Nexus Repository Manager 2 中,您可以将服务器上已删除的 Assets /组件从 .trash-folder 移动到存储库,以恢复您可能已删除的任何内容。这是因为 Nex
我是一名优秀的程序员,十分优秀!