You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dobri Kitipov <kd...@googlemail.com> on 2008/04/21 18:06:49 UTC
Trying to deploy an artifact with all its dependencies from local to remote repository with maven-deploy plugin.
Hi all,
I want to ask how to update my mirror repository.
The case is the following. I want to use the latest maven-assembly-plugin. I
succeeded to download it locally in my local repository. Now I want to share
this plugin and all its dependencies with my team. To do so I need to deploy
this plugin and its dependencies to our team repository. What I am trying is
to use another plugin: deploy plugin. I am trying with:
mvn deploy:deploy-file
-Durl=file://G:\Development\MY_TEAM\m2repo\m2\internal\official\
-DrepositoryId=my-team-repo
-Dfile=D:\Maven\my_team\org\apache\maven\plugins\maven-assembly-plugin\2.2-beta-2\maven-assembly-plugin-2.2-beta-2.jar
-DpomFile=D:\Maven\my_team\org\apache\maven\plugins\maven-assembly-plugin\2.2-beta-2\maven-assembly-plugin-2.2-beta-2.pom
-DgeneratePom=false
The problem is that first of all the specified pom file is deleted before
uploaded. There is a post
http://www.mail-archive.com/users@maven.apache.org/msg33530.html that
explains how this can be hacked.
Anyway I can see that only the plugin is deployed without the dependencies
specified into the pom. How I can update the repo? One solution is to
resolve all the dependencies and upload them manualy, but this is a very
hard task to be done.
Any comments, ideas are welcomed.
Thank you in advance!
Dobri