我检查了question,但无济于事,而且我的项目不是多模块Maven项目。 pom.xml 个文件
我的项目版本是5.5,我正在尝试将其部署到Maven存储库。但是mvn ddeploy
失败,并出现以下错误-
[ERROR]
[ERROR] Nexus Staging Rules Failure Report
[ERROR] ==================================
[ERROR]
[ERROR] Repository "comseleniumtests-1056" failures
[ERROR] Rule "RepositoryWritePolicy" failures
[ERROR] * Artifact updating: Repository ='releases:Releases'
does not allow updating artifact='/com/seleniumtests/seleniumtestsframework/5.4/seleniumtestsframework-5.4-sources.jar'
[ERROR] * Artifact updating: Repository ='releases:Releases' does not allow updating artifact='/com/seleniumtests/seleniumtestsframework/5.4/seleniumtestsframework-5.4-javadoc.jar'
[ERROR] * Artifact updating: Repository ='releases:Releases' does not allow updating artifact='/com/seleniumtests/seleniumtestsframework/5.4/seleniumtestsframework-5.4.pom'
[ERROR] * Artifact updating: Repository ='releases:Releases' does not allow updating artifact='/com/seleniumtests/seleniumtestsframework/5.4/seleniumtestsframework-5.4.jar'
[ERROR]
[ERROR]
我在Apache Maven 3.3.9
上,能够部署到5.4版,但是部署5.5版最终又要上传5.4版。我在做什么错了?
答案 0 :(得分:2)
为确保它不会命中缓存或您可以尝试mvn clean deploy
进行任何操作。
我认为maven检查源文件是否已更改。如果仅更新pom.xml,将不会重新创建target/
文件夹,并且该文件夹仍包含5.4