You are viewing a plain text version of this content. The canonical link for it is here.
Posted to repository@apache.org by Andreas Veithen <an...@gmail.com> on 2010/10/15 21:38:23 UTC
Does Nexus correctly maintain maven-metadata.xml?
Hi,
I noticed that after a new snapshot has been deployed by Hudson, the
maven-metadata.xml file looks as follows:
<metadata>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-api</artifactId>
<version>1.2.10-SNAPSHOT</version>
<versioning>
<snapshot>
<buildNumber>1</buildNumber>
</snapshot>
<lastUpdated>20101015122432</lastUpdated>
</versioning>
</metadata>
However, Nexus periodically regenerates the maven-metadata.xml file.
In the process, it removes the versioning information, as can be seen
in the following example:
<metadata>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-parser-tests</artifactId>
<version>1.2.10-SNAPSHOT</version>
<versioning />
</metadata>
Is that the correct behavior? I'm asking this because I have troubles
with some Hudson builds that are not fetching the latest snapshot from
Nexus, and I was wondering if this may be related.
Andreas
Re: Does Nexus correctly maintain maven-metadata.xml?
Posted by "Brian E. Fox" <br...@infinity.nu>.
That is odd, we'll take a look
--Brian (mobile)
On Oct 15, 2010, at 3:38 PM, Andreas Veithen <an...@gmail.com> wrote:
> Hi,
>
> I noticed that after a new snapshot has been deployed by Hudson, the
> maven-metadata.xml file looks as follows:
>
> <metadata>
> <groupId>org.apache.ws.commons.axiom</groupId>
> <artifactId>axiom-api</artifactId>
> <version>1.2.10-SNAPSHOT</version>
> <versioning>
> <snapshot>
> <buildNumber>1</buildNumber>
> </snapshot>
> <lastUpdated>20101015122432</lastUpdated>
> </versioning>
> </metadata>
>
> However, Nexus periodically regenerates the maven-metadata.xml file.
> In the process, it removes the versioning information, as can be seen
> in the following example:
>
> <metadata>
> <groupId>org.apache.ws.commons.axiom</groupId>
> <artifactId>axiom-parser-tests</artifactId>
> <version>1.2.10-SNAPSHOT</version>
> <versioning />
> </metadata>
>
> Is that the correct behavior? I'm asking this because I have troubles
> with some Hudson builds that are not fetching the latest snapshot from
> Nexus, and I was wondering if this may be related.
>
> Andreas