> how can I specify two deploy paths in pom.xml Use the snapshotRepository[1]
> or specyfing some argument to mvn deploy command? For deploy:deploy-file the arguments are in the documentation [2] Hth, Nick Stolwijk [1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_distributionManagement [2] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html -----Original Message----- From: DCVer [mailto:[EMAIL PROTECTED] Sent: Fri 2/1/2008 12:01 PM To: [email protected] Subject: RE: Snapshots aren't updated! Thanks guys, it is as you say. When I execute mvn deploy instead of mvn install I see (in output logs), that maven updates metadata. But this creates another question from me: how can I specify two deploy paths in pom.xml or specyfing some argument to mvn deploy command? In pom.xml, in <distributionManagement> section i have one destination repository specified, but when I deploy snapshots, I want them to be stored in another repository. Can I have 2 remote repositories specified in pom.xml? nicklist wrote: > > If I understand you correctly, you're using the maven-install-plugin to > install files into the remote repository? This way the metadata in the > remote repository is not correctly being updated, so that causes the > snapshot not to be updated in the local repository. Use the > maven-deploy-plugin for the deployment of artifacts into the remote > repository. This is the only way the metadata would be correct. > > Hth, > > Nick Stolwijk > > > -----Original Message----- > From: DCVer [mailto:[EMAIL PROTECTED] > Sent: Mon 1/28/2008 1:03 PM > To: [email protected] > Subject: Re: Snapshots aren't updated! > > > But I install the jar from the remote server and the jar is installed > directly to the Maven repository, which is in fact the remote repository > to > my local machine and the repository from where snapshots are downloaded > (but > not updated...) > > > Jeff MAURY wrote: >> >> The install plugin updates your local repo and not the remote ones. You >> should use the deploy plugin if you want. >> >> Jeff >> >> >> On Jan 26, 2008 6:11 PM, DCVer <[EMAIL PROTECTED]> wrote: >> >>> >>> Hi, >>> >>> Why Maven doesn't update snapshot dependencies, although all of my >>> repositories have defined update policy to always? I try adding -U while >>> building, but it looks, like only Maven plugins are updated - snapshots >>> not. >>> >>> I have added new class to one of the dependency jar, installed the jar >>> with >>> mvn install on the remote repository (from where my snapshots are >>> downloaded). So the jar has definitely changed, but Maven hasn't updated >>> my >>> local repository... >>> >>> I was thinking a lot, but haven't found any solution. How Maven decides >>> whether to update or not the snapshot jar? If it compares dates, what if >>> the >>> remote repository has earlier hour (other time region), as it is in my >>> situation? >>> >>> Hope there is simple solution for that... >>> -- >>> View this message in context: >>> http://www.nabble.com/Snapshots-aren%27t-updated%21-tp15110146s177p15110146.html >>> Sent from the Maven - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> -- >> La mélancolie c'est communiste >> Tout le monde y a droit de temps en temps >> La mélancolie n'est pas capitaliste >> C'est même gratuit pour les perdants >> La mélancolie c'est pacifiste >> On ne lui rentre jamais dedans >> La mélancolie oh tu sais ça existe >> Elle se prend même avec des gants >> La mélancolie c'est pour les syndicalistes >> Il faut juste sa carte de permanent >> >> Miossec (2006) >> >> http://www.jeffmaury.com >> http://riadiscuss.jeffmaury.com >> >> > > -- > View this message in context: > http://www.nabble.com/Snapshots-aren%27t-updated%21-tp15110146s177p15133912.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- View this message in context: http://www.nabble.com/Snapshots-aren%27t-updated%21-tp15110146s177p15224519.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
