3

仕事内からartifcatをデプロイしようとすると、次のようになります。

[ERROR] uniqueVersion == false is not anymore supported in maven 3
[INFO] Deployment in dav:https://repository-xinco.forge.cloudbees.com/snapshot (id=cloudbees-private-repository,uniqueVersion=false)
Deploying the main artifact Card-Game-Extension-1.0-SNAPSHOT.pom
Downloading: dav:https://repository-xinco.forge.cloudbees.com/snapshot/simple/server/Card-Game-Extension/1.0-SNAPSHOT/maven-metadata.xml
Uploading: https://repository-xinco.forge.cloudbees.com/snapshot/simple/server/Card-Game-Extension/1.0-SNAPSHOT/Card-Game-Extension-1.0-20120820.205113-1.pom
Uploading: https://repository-xinco.forge.cloudbees.com/snapshot/simple/server/Card-Game-Extension/1.0-SNAPSHOT/Card-Game-Extension-1.0-20120820.205113-1.pom
ERROR: Failed to deploy artifacts: Could not transfer artifact simple.server:Card-Game-Extension:pom:1.0-20120820.205113-1 from/to cloudbees-private-repository (dav:https://repository-xinco.forge.cloudbees.com/snapshot): Failed to transfer file: https://repository-xinco.forge.cloudbees.com/snapshot/simple/server/Card-Game-Extension/1.0-SNAPSHOT/Card-Game-Extension-1.0-20120820.205113-1.pom. Return code is: 401
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact simple.server:Card-Game-Extension:pom:1.0-20120820.205113-1 from/to cloudbees-private-repository (dav:https://repository-xinco.forge.cloudbees.com/snapshot): Failed to transfer file: https://repository-xinco.forge.cloudbees.com/snapshot/simple/server/Card-Game-Extension/1.0-SNAPSHOT/Card-Game-Extension-1.0-20120820.205113-1.pom. Return code is: 401
    at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)
    at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:182)
    at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:158)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:707)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:682)
    at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:997)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:629)
    at hudson.model.Run.run(Run.java:1433)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:238)
Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact simple.server:Card-Game-Extension:pom:1.0-20120820.205113-1 from/to cloudbees-private-repository (dav:https://repository-xinco.forge.cloudbees.com/snapshot): Failed to transfer file: https://repository-xinco.forge.cloudbees.com/snapshot/simple/server/Card-Game-Extension/1.0-SNAPSHOT/Card-Game-Extension-1.0-20120820.205113-1.pom. Return code is: 401
    at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:280)
    at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:211)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:443)
    at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137)
    ... 11 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact simple.server:Card-Game-Extension:pom:1.0-20120820.205113-1 from/to cloudbees-private-repository (dav:https://repository-xinco.forge.cloudbees.com/snapshot): Failed to transfer file: https://repository-xinco.forge.cloudbees.com/snapshot/simple/server/Card-Game-Extension/1.0-SNAPSHOT/Card-Game-Extension-1.0-20120820.205113-1.pom. Return code is: 401
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:950)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:837)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:467)
    at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:274)
    ... 14 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://repository-xinco.forge.cloudbees.com/snapshot/simple/server/Card-Game-Extension/1.0-SNAPSHOT/Card-Game-Extension-1.0-20120820.205113-1.pom. Return code is: 401
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:379)
    at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:287)
    at org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.java:332)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:811)
    ... 16 more
[INFO] Deployment failed after 0.74 sec
Build step 'Deploy artifacts to my Private CloudBees Repository' changed build result to FAILURE
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE

私が知らないリポジトリに設定するものはありますか?

4

3 に答える 3

1

Deploy artifacts to my Private CloudBees Repositoryパブリッシャーを使用しています。

そのプラグインAssign unique versions to snapshotsのオプションでオプションを有効にする必要があります。Advanced

これを行うと、正常にデプロイされるはずです。

于 2012-08-20T23:17:40.620 に答える
0

「uniqueVersion==falseはmaven3ではサポートされなくなりました」は、エラーとして報告されても、デプロイメントを停止しません。

これはアカウントの構成の問題のようです。https://cloudbees.zendesk.com/tickets/5055でフォローアップします

于 2012-08-21T09:46:14.313 に答える
0

これはリポジトリのアクセス許可の問題でした。

于 2012-08-21T16:20:11.150 に答える