snapshots resolution, metadata and classifier

View: New views
2 Messages — Rating Filter:   Alert me  

snapshots resolution, metadata and classifier

by Julien CARSIQUE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

We encounter a new issue with snapshots resolution on Nexus 1.3.6 OSS
(waiting for a fix on LDAP authentication, we cannot upgrade to 1.4).

Some of our modules may generate various builds depending on the active
profiles. We distinguish those builds with classifiers but those various
builds are not (and cannot) be generated during the same maven execution.
Resolving the snapshot and looking for the wanted artifact, Nexus (or
Maven) looks for an artifact with the wanted artifact and classifier but
with the snapshot keyword resolution based on the last updated metadata,
corresponding to one classifier only.

Here is a sample case:
- we deploy
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-ep:zip
    =>
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10.pom
    =>
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10-nuxeo-ep.zip

- then we deploy
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-dm:zip
    =>
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11.pom
    =>
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-dm.zip

-
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/maven-metadata.xml
contains:
<metadata>
  <groupId>org.nuxeo.ecm.distribution</groupId>
  <artifactId>nuxeo-distribution-jboss</artifactId>
  <version>5.3.1-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20091029.122446</timestamp>
      <buildNumber>11</buildNumber>
    </snapshot>
    <lastUpdated>20091029122932</lastUpdated>
  </versioning>
</metadata>

Trying to build a project depending on nuxeo-ep classifier, we get the
following issue:
    Downloading:
.../org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-ep.zip
    [ERROR] BUILD ERROR
    [INFO] Failed to resolve artifact.
    Missing:
    ----------
    1)
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:zip:nuxeo-ep:5.3.1-SNAPSHOT


Do you know this issue ? Is it fixed/worked around in Nexus 1.4 ? Should
I send it at Maven mailing list ?

Best regards,
Julien

--
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform



---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-user-unsubscribe@...
For additional commands, e-mail: nexus-user-help@...


Re: snapshots resolution, metadata and classifier

by Tamás Cservenák :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I think this is a known maven issue, and was discussed on maven-user or maven-dev... search for something like "platform builds" (building same project on different platforms with different classifiers).

Thanks,
~t~

On Thu, Oct 29, 2009 at 2:50 PM, Julien CARSIQUE <jcarsique@...> wrote:
Hello,

We encounter a new issue with snapshots resolution on Nexus 1.3.6 OSS (waiting for a fix on LDAP authentication, we cannot upgrade to 1.4).

Some of our modules may generate various builds depending on the active profiles. We distinguish those builds with classifiers but those various builds are not (and cannot) be generated during the same maven execution.
Resolving the snapshot and looking for the wanted artifact, Nexus (or Maven) looks for an artifact with the wanted artifact and classifier but with the snapshot keyword resolution based on the last updated metadata, corresponding to one classifier only.

Here is a sample case:
- we deploy org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-ep:zip
  => org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10.pom
  => org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10-nuxeo-ep.zip

- then we deploy org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-dm:zip
  => org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11.pom
  => org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-dm.zip

- org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/maven-metadata.xml contains:
<metadata>
 <groupId>org.nuxeo.ecm.distribution</groupId>
 <artifactId>nuxeo-distribution-jboss</artifactId>
 <version>5.3.1-SNAPSHOT</version>
 <versioning>
  <snapshot>
    <timestamp>20091029.122446</timestamp>
    <buildNumber>11</buildNumber>
  </snapshot>
  <lastUpdated>20091029122932</lastUpdated>
 </versioning>
</metadata>

Trying to build a project depending on nuxeo-ep classifier, we get the following issue:
  Downloading: .../org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-ep.zip
  [ERROR] BUILD ERROR
  [INFO] Failed to resolve artifact.
  Missing:
  ----------
  1) org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:zip:nuxeo-ep:5.3.1-SNAPSHOT


Do you know this issue ? Is it fixed/worked around in Nexus 1.4 ? Should I send it at Maven mailing list ?

Best regards,
Julien

--
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform



---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-user-unsubscribe@...
For additional commands, e-mail: nexus-user-help@...