You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sameer chandekar <sa...@gmail.com> on 2014/10/04 21:57:22 UTC

isssue with the deploy plugin

Hi ,

I am in process of implementing continuous integration. I amUsing GIT
repository to manage source code.
I've created a project using apache maven . In POM.xml file I've included
distribution management tag and specified the path to remote repository
where I want to store my builds generated by maven.

<distributionManagement>
    <repository>
      <id>GIT</id>
      <name>GIT repository</name>
      <url>https://github.com/sameerchandekar/deploy.git</url>
    </repository>
 </distributionManagement>

now when I execute the deploy goal i get following error

INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ KEDB ---
Downloading:
https://github.com/sameerchandekar/deploy.git/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml
Uploading:
https://github.com/sameerchandekar/deploy.git/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.131802-1.war
Uploading:
https://github.com/sameerchandekar/deploy.git/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.131802-1.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 13.868s
[INFO] Finished at: Sun Oct 05 01:18:09 GMT-12:00 2014
[INFO] Final Memory: 8M/21M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
project KEDB: Failed to deploy artifacts: Could not find artifact
com.kedb:KEDB:war:0.0.1-20141005.131802-1 in GIT (
https://github.com/sameerchandekar/deploy.git) -> [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

Here it is  unable to download maven-metadata.xml and unable to upload war
and pom files.
Here the repository I created i.e
https://github.com/sameerchandekar/deploy.git is not comtaining any files.


This same goal if I execute by specifying the path of repository as local
file system path it will work fine.
see the logs below for successfull cases where the repository specified is
file system path

[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ KEDB ---
Downloading:
file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml
Downloaded:
file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml (762
B at 74.4 KB/sec)
Uploading:
file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.132612-2.war
Uploaded:
file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.132612-2.war
(123 KB at 1205.4 KB/sec)
Uploading:
file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.132612-2.pom
Uploaded:
file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.132612-2.pom
(2 KB at 1418.9 KB/sec)
Downloading: file:///E:/itworkshere/com/kedb/KEDB/maven-metadata.xml
Downloaded: file:///E:/itworkshere/com/kedb/KEDB/maven-metadata.xml (272 B
at 66.4 KB/sec)
Uploading:
file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml
Uploaded:
file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml (762
B at 372.1 KB/sec)
Uploading: file:///E:/itworkshere/com/kedb/KEDB/maven-metadata.xml
Uploaded: file:///E:/itworkshere/com/kedb/KEDB/maven-metadata.xml (272 B at
265.6 KB/sec)
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.082s
[INFO] Finished at: Sun Oct 05 01:26:12 GMT-12:00 2014
[INFO] Final Memory: 7M/20M
[INFO]
------------------------------------------------------------------------


Please help to resolve this issue .

Thanks ,
Sameer Chandekar

Re: isssue with the deploy plugin

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,

first question. Why would you like to use git as a Maven repository ? 
git is not intended to use that way (neither other version control tools 
as well).

There serveral alternatives like Artifactory, Nexus and Archiva...

Kind regards
karl-Heinz Marbaise

On 10/4/14 9:57 PM, sameer chandekar wrote:
> Hi ,
>
> I am in process of implementing continuous integration. I amUsing GIT
> repository to manage source code.
> I've created a project using apache maven . In POM.xml file I've included
> distribution management tag and specified the path to remote repository
> where I want to store my builds generated by maven.
>
> <distributionManagement>
>      <repository>
>        <id>GIT</id>
>        <name>GIT repository</name>
>        <url>https://github.com/sameerchandekar/deploy.git</url>
>      </repository>
>   </distributionManagement>
>
> now when I execute the deploy goal i get following error
>
> INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ KEDB ---
> Downloading:
> https://github.com/sameerchandekar/deploy.git/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml
> Uploading:
> https://github.com/sameerchandekar/deploy.git/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.131802-1.war
> Uploading:
> https://github.com/sameerchandekar/deploy.git/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.131802-1.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 13.868s
> [INFO] Finished at: Sun Oct 05 01:18:09 GMT-12:00 2014
> [INFO] Final Memory: 8M/21M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
> project KEDB: Failed to deploy artifacts: Could not find artifact
> com.kedb:KEDB:war:0.0.1-20141005.131802-1 in GIT (
> https://github.com/sameerchandekar/deploy.git) -> [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
>
> Here it is  unable to download maven-metadata.xml and unable to upload war
> and pom files.
> Here the repository I created i.e
> https://github.com/sameerchandekar/deploy.git is not comtaining any files.
>
>
> This same goal if I execute by specifying the path of repository as local
> file system path it will work fine.
> see the logs below for successfull cases where the repository specified is
> file system path
>
> [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ KEDB ---
> Downloading:
> file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml
> Downloaded:
> file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml (762
> B at 74.4 KB/sec)
> Uploading:
> file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.132612-2.war
> Uploaded:
> file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.132612-2.war
> (123 KB at 1205.4 KB/sec)
> Uploading:
> file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.132612-2.pom
> Uploaded:
> file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/KEDB-0.0.1-20141005.132612-2.pom
> (2 KB at 1418.9 KB/sec)
> Downloading: file:///E:/itworkshere/com/kedb/KEDB/maven-metadata.xml
> Downloaded: file:///E:/itworkshere/com/kedb/KEDB/maven-metadata.xml (272 B
> at 66.4 KB/sec)
> Uploading:
> file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml
> Uploaded:
> file:///E:/itworkshere/com/kedb/KEDB/0.0.1-SNAPSHOT/maven-metadata.xml (762
> B at 372.1 KB/sec)
> Uploading: file:///E:/itworkshere/com/kedb/KEDB/maven-metadata.xml
> Uploaded: file:///E:/itworkshere/com/kedb/KEDB/maven-metadata.xml (272 B at
> 265.6 KB/sec)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2.082s
> [INFO] Finished at: Sun Oct 05 01:26:12 GMT-12:00 2014
> [INFO] Final Memory: 7M/20M
> [INFO]
> ------------------------------------------------------------------------
>
>
> Please help to resolve this issue .
>
> Thanks ,
> Sameer Chandekar
>


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