You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sankaran, Nambi" <ns...@ebay.com> on 2013/12/13 18:00:00 UTC

maven deploy plugin fails with artifact-not-found

I’m trying to deploy a snapshot version of the artifact for the first time.
Maven deploy fails with error “could not find artifact in the remote repository”
Obviously the artifact was never deployed in the remote repository, so it is not available in the remote repository.

Tried with various versions of “deploy” plugin, the issue happens in all of them.

How to deploy a snapshot version on an empty repository?


$mvn  org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.ebay.platform:platform-root:pom:2.0.0.RC3-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.servlet:jstl:jar -> version 1.2 vs 1.2_1 @ line 515, column 16
[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.sun.xml.bind:jaxb-impl:jar -> duplicate declaration of version 2.2.3.20110115 @ line 536, column 16
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building platform root pom 2.0.0.RC3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-deploy-plugin:2.8.1:deploy (default-cli) @ platform-root ---
Downloading: http://repocorp.com/content/repositories/snapshots/com/ebay/platform/platform-root/2.0.0.RC3-SNAPSHOT/maven-metadata.xml
Uploading: http://repocorp.com/content/repositories/snapshots/com/ebay/platform/platform-root/2.0.0.RC3-SNAPSHOT/platform-root-2.0.0.RC3-20131213.165021-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.576s
[INFO] Finished at: Fri Dec 13 08:50:21 PST 2013
[INFO] Final Memory: 9M/156M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy (default-cli) on project platform-root: Failed to deploy artifacts: Could not find artifact com.platform:platform-root:pom:2.0.0.RC3-20131213.165021-1 in snapshots (http://repocorp.com/content/repositories/snapshots/) -> [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


Re: maven deploy plugin fails with artifact-not-found

Posted by "Sankaran, Nambi" <ns...@ebay.com>.
Yes, did try ³mvm deploy². But it fails in an empty repo.

This is a parent pom file ( packaging = pom ).
This pom contains <dependencyManagement> section and
<distributionManagement> section that¹s all.



On 12/13/13, 10:07 AM, "Thorsten Heit" <th...@vkb.de> wrote:

>Hi,
>
>> I¹m trying to deploy a snapshot version of the artifact for the first
>time.
>> Maven deploy fails with error ³could not find artifact in the remote
>> repository²
>> Obviously the artifact was never deployed in the remote repository,
>> so it is not available in the remote repository.
>> 
>> Tried with various versions of ³deploy² plugin, the issue happens in
>> all of them.
>> 
>> How to deploy a snapshot version on an empty repository?
>> 
>> 
>> $mvn  org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy
>
>You try to deploy something that has to be built first, a step that is
>skipped in your case. Try "mvn deploy" instead.
>
>
>HTH
>
>Thorsten


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven deploy plugin fails with artifact-not-found

Posted by Thorsten Heit <th...@vkb.de>.
Hi,

> I’m trying to deploy a snapshot version of the artifact for the first 
time.
> Maven deploy fails with error “could not find artifact in the remote
> repository”
> Obviously the artifact was never deployed in the remote repository, 
> so it is not available in the remote repository.
> 
> Tried with various versions of “deploy” plugin, the issue happens in
> all of them.
> 
> How to deploy a snapshot version on an empty repository?
> 
> 
> $mvn  org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy

You try to deploy something that has to be built first, a step that is 
skipped in your case. Try "mvn deploy" instead.


HTH

Thorsten