On Tue, Apr 27, 2010 at 17:33, Yoav Landman <[email protected]> wrote:

> Glad you managed, and yes - mysql/fs is a better option overall.
>

Hi again, Yoav.

As I changed the subject, let me explain again what I'm doing here. I'm
trying export the whole 2.0.1 system and import in a 2.2.3 fresh install. So
I went to web interface of the old instance and did a full system export.
After, I did a full system import on the new instance and all Seemed ok
until I tryied to download a snapshot. The new instance is NOT giving me the
latest snapshot. If I change my cliente to grab from the old instance, the
latest snapshot is downloaded.

After some tests, I discovered that the maven-metadata.xml is wrong.

Actually, we have two problems. I will describe the problems and will use an
artifact to example.

*1. Import problem *- When I did the export, I checked the option to export
de .m2 metadata. I checked in the export folder and the maven-metada.xml is
there, as folows:
*File*:
/old/20100427.103500/20100427.103424/repositories/libs-snapshots-local/br/com/company/jcompany_business/0.3.0-SNAPSHOT/maven-metadata.xml
*Content*:
<metadata>
  <groupId>br.com.company</groupId>
  <artifactId>jcompany_business</artifactId>
  <version>0.3.0-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20100419.121542</timestamp>
      <buildNumber>7</buildNumber>
    </snapshot>
    <lastUpdated>20100419121542</lastUpdated>
  </versioning>
</metadata>

But in the import log, I found that:
2010-04-27 22:21:38,789 [art-exec-249] [WARN ] (o.a.j.f.JcrFsItem   :741) -
No metadata files found for
'/old/20100427.103500/20100427.103424/repositories/libs-snapshots-local/br/com/company/jcompany_business'
during import into libs-snapshots-local:br/com/company/jcompany_business

*2. Metadata generation problem* - Despite of the import problem,
artifactory should regenerate the metadata correctly, but it is not
happening. The generated metadata does not have the latest build (7), but an
old build (5) Let's see on the example:

*Request*:
http://dev.company.com.br/maven2/repo/br/com/company/jcompany_business/0.3.0-SNAPSHOT/
*Response*:
jcompany_business-0.3.0-20100105.212015-1-sources.jar
jcompany_business-0.3.0-20100105.212015-1.jar
jcompany_business-0.3.0-20100105.212015-1.pom
jcompany_business-0.3.0-20100106.225315-2-sources.jar
jcompany_business-0.3.0-20100106.225315-2.jar
jcompany_business-0.3.0-20100106.225315-2.pom
jcompany_business-0.3.0-20100401.181049-3-sources.jar
jcompany_business-0.3.0-20100401.181049-3.jar
jcompany_business-0.3.0-20100401.181049-3.pom
jcompany_business-0.3.0-20100406.230749-4-sources.jar
jcompany_business-0.3.0-20100406.230749-4.jar
jcompany_business-0.3.0-20100406.230749-4.pom
jcompany_business-0.3.0-20100406.231809-5.jar
jcompany_business-0.3.0-20100406.232113-5-sources.jar
jcompany_business-0.3.0-20100406.232113-5.jar
jcompany_business-0.3.0-20100406.232113-5.pom
jcompany_business-0.3.0-20100416.134906-6-sources.jar
jcompany_business-0.3.0-20100416.134906-6.jar
jcompany_business-0.3.0-20100416.134906-6.pom
jcompany_business-0.3.0-20100419.121542-7-sources.jar
jcompany_business-0.3.0-20100419.121542-7.jar
jcompany_business-0.3.0-20100419.121542-7.pom

But if I request the metadata, the wrong one is returned:

*Request*:
http://dev.company.com.br/maven2/repo/br/com/company/jcompany_business/0.3.0-SNAPSHOT/maven-metadata.xml

*Response*:

<metadata>
  <groupId>br.com.company</groupId>
  <artifactId>jcompany_business</artifactId>
  <version>0.3.0-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20100406.232113</timestamp>
      <buildNumber>5</buildNumber>
    </snapshot>
    <lastUpdated>20100428004828</lastUpdated>
  </versioning>
</metadata>


The build in the metadata should be the latest (7), as in the original
metadata in the export. The same requests on the old system returns the
right result.

I hope you could help me. If you want more information, just let me now.
Thanks in advance,

-- 
BrunoJCM
------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to