Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-dev] maven-metadata.xml file not updating correctly.

On Jan 22, 2015, at 12:59 AM, Ren Jith <sachrenj@xxxxxxxxx> wrote:

> Hi,
> 
> I tried to push some artifact to nexus using aether api programmatically.  I have pushed different versions of an artifact. I saw in maven-metadata.xml file, there is only release tag but not the latest tag for the last artifact i have pushed. 
> 

Can you paste the code you're using as you should have metadata files that look like the following:

http://repo1.maven.org/maven2/org/apache/maven/apache-maven/maven-metadata.xml

But you need to setup Aether the same way Maven setups Aether for deployments.

> Second case is when I deleted an artifact from nexus remote repository, the maven-metadata file is not updated correctly. 
> 

This is a Nexus issue and its up to Nexus to update metadata on the server side. Maven only knows how to retrieve the file that is present and updating it with the version Maven is currently deploying. Maven has no knowledge of what is actually on the server.

> Is there any way I can update the metadata file. If I can do that by programmatically, it would be better. 
> 
> Thanks
> _______________________________________________
> aether-dev mailing list
> aether-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/aether-dev

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder, Takari and Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
---------------------------------------------------------

happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...

-- Thoreau 














Back to the top