You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Julien CARSIQUE <jc...@nuxeo.com> on 2013/01/09 15:41:22 UTC

Resolution of concurrent SNAPSHOT artifacts from multiple repositories

Hi,

I would like some help about the following SNAPSHOT resolution issue using Maven 2.2.1.

The artifact org.nuxeo:nuxeo-ecm:5.7-SNAPSHOT:pom has been deployed in two repositories :

  * in public-snapshot at 1h37
  * in internal-snapshots at 9h40

The issue is Maven resolves the version 5.7-20130107.013731-138 from repository public-snapshot which is older than the
5.7-20130107.094030-43 one from repository internal-snapshots. Even if the issue still looks like MNG-5008, I don't know
if it has something to do with it.

I don't know how to deeper analyze the problem. Any help is very welcome.

Here are a stacktrace extract and the two corresponding metadata files.

$ mvn validate -X

...
[DEBUG] Retrieving parent-POM: org.nuxeo:nuxeo-ecm:pom:5.7-SNAPSHOT for project: null:nuxeo-addons-parent:pom:null from
the repository.
[DEBUG] Skipping disabled repository internal-releases
*[INFO] snapshot org.nuxeo:nuxeo-ecm:5.7-SNAPSHOT: checking for updates from internal-snapshots*
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'internal-snapshots' with url:
'http://maven.in.nuxeo.com/nexus/content/groups/internal-snapshots'.
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[DEBUG] Skipping disabled repository public
*[INFO] snapshot org.nuxeo:nuxeo-ecm:5.7-SNAPSHOT: checking for updates from public-snapshot*
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'public-snapshot' with url: 'http://maven.nuxeo.org/nexus/content/groups/public-snapshot'.
[DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[DEBUG] Skipping disabled repository central
*[DEBUG] nuxeo-ecm: resolved to version 5.7-20130107.013731-138 from repository public-snapshot*
...


~/.m2/repository/org/nuxeo/nuxeo-ecm/5.7-SNAPSHOT/maven-metadata-*internal-snapshots*.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>org.nuxeo</groupId>
  <artifactId>nuxeo-ecm</artifactId>
  <version>5.7-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>*20130107.094030*</timestamp>
      <buildNumber>*43*</buildNumber>
    </snapshot>
    <lastUpdated>20130108004356</lastUpdated>
  </versioning>
</metadata>


~/.m2/repository/org/nuxeo/nuxeo-ecm/5.7-SNAPSHOT/maven-metadata-*public-snapshot*.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>org.nuxeo</groupId>
  <artifactId>nuxeo-ecm</artifactId>
  <version>5.7-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>*20130107.013731*</timestamp>
      <buildNumber>*138*</buildNumber>
    </snapshot>
    <lastUpdated>20130108004356</lastUpdated>
  </versioning>
</metadata>

Thanks,

Re: Resolution of concurrent SNAPSHOT artifacts from multiple repositories

Posted by Julien CARSIQUE <jc...@nuxeo.com>.
In case it helps, here are the remote metadata:

http://maven.in.nuxeo.com/nexus/service/local/repo_groups/internal-snapshots/content/org/nuxeo/nuxeo-ecm/5.7-SNAPSHOT/maven-metadata.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
  <groupId>org.nuxeo</groupId>
  <artifactId>nuxeo-ecm</artifactId>
  <version>5.7-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20130107.094030</timestamp>
      <buildNumber>43</buildNumber>
    </snapshot>
    <lastUpdated>20130108004356</lastUpdated>
    <snapshotVersions>
      <snapshotVersion>
        <classifier>site</classifier>
        <extension>xml</extension>
        <value>5.7-20130107.094030-43</value>
        <updated>20130107094030</updated>
      </snapshotVersion>
      <snapshotVersion>
        <extension>pom</extension>
        <value>5.7-20130107.094030-43</value>
        <updated>20130107094030</updated>
      </snapshotVersion>
    </snapshotVersions>
  </versioning>
</metadata>

https://maven.nuxeo.org/nexus/service/local/repo_groups/public-snapshot/content/org/nuxeo/nuxeo-ecm/5.7-SNAPSHOT/maven-metadata.xml
<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
  <groupId>org.nuxeo</groupId>
  <artifactId>nuxeo-ecm</artifactId>
  <version>5.7-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20130107.013731</timestamp>
      <buildNumber>138</buildNumber>
    </snapshot>
    <lastUpdated>20130108004356</lastUpdated>
    <snapshotVersions>
      <snapshotVersion>
        <classifier>site</classifier>
        <extension>xml</extension>
        <value>5.7-20130107.013731-138</value>
        <updated>20130107013731</updated>
      </snapshotVersion>
      <snapshotVersion>
        <extension>pom</extension>
        <value>5.7-20130107.013731-138</value>
        <updated>20130107013731</updated>
      </snapshotVersion>
    </snapshotVersions>
  </versioning>
</metadata>


Le 09/01/2013 15:41, Julien CARSIQUE a écrit :
> Hi,
>
> I would like some help about the following SNAPSHOT resolution issue using Maven 2.2.1.
>
> The artifact org.nuxeo:nuxeo-ecm:5.7-SNAPSHOT:pom has been deployed in two repositories :
>
>   * in public-snapshot at 1h37
>   * in internal-snapshots at 9h40
>
> The issue is Maven resolves the version 5.7-20130107.013731-138 from repository public-snapshot which is older than
> the 5.7-20130107.094030-43 one from repository internal-snapshots. Even if the issue still looks like MNG-5008, I
> don't know if it has something to do with it.
>
> I don't know how to deeper analyze the problem. Any help is very welcome.
>
> Here are a stacktrace extract and the two corresponding metadata files.
>
> $ mvn validate -X
>
> ...
> [DEBUG] Retrieving parent-POM: org.nuxeo:nuxeo-ecm:pom:5.7-SNAPSHOT for project: null:nuxeo-addons-parent:pom:null
> from the repository.
> [DEBUG] Skipping disabled repository internal-releases
> *[INFO] snapshot org.nuxeo:nuxeo-ecm:5.7-SNAPSHOT: checking for updates from internal-snapshots*
> [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] Connecting to repository: 'internal-snapshots' with url:
> 'http://maven.in.nuxeo.com/nexus/content/groups/internal-snapshots'.
> [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
> [DEBUG] Skipping disabled repository public
> *[INFO] snapshot org.nuxeo:nuxeo-ecm:5.7-SNAPSHOT: checking for updates from public-snapshot*
> [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] Connecting to repository: 'public-snapshot' with url:
> 'http://maven.nuxeo.org/nexus/content/groups/public-snapshot'.
> [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
> [DEBUG] Skipping disabled repository central
> *[DEBUG] nuxeo-ecm: resolved to version 5.7-20130107.013731-138 from repository public-snapshot*
> ...
>
>
> ~/.m2/repository/org/nuxeo/nuxeo-ecm/5.7-SNAPSHOT/maven-metadata-*internal-snapshots*.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <metadata>
>   <groupId>org.nuxeo</groupId>
>   <artifactId>nuxeo-ecm</artifactId>
>   <version>5.7-SNAPSHOT</version>
>   <versioning>
>     <snapshot>
>       <timestamp>*20130107.094030*</timestamp>
>       <buildNumber>*43*</buildNumber>
>     </snapshot>
>     <lastUpdated>20130108004356</lastUpdated>
>   </versioning>
> </metadata>
>
>
> ~/.m2/repository/org/nuxeo/nuxeo-ecm/5.7-SNAPSHOT/maven-metadata-*public-snapshot*.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <metadata>
>   <groupId>org.nuxeo</groupId>
>   <artifactId>nuxeo-ecm</artifactId>
>   <version>5.7-SNAPSHOT</version>
>   <versioning>
>     <snapshot>
>       <timestamp>*20130107.013731*</timestamp>
>       <buildNumber>*138*</buildNumber>
>     </snapshot>
>     <lastUpdated>20130108004356</lastUpdated>
>   </versioning>
> </metadata>
>
> Thanks,