Deployed to my Nexus repository, the metadata for the release is:

<metadata>
  <groupId>smx3</groupId>
  <artifactId>smx3.partyresource</artifactId>
  <version>1.2.0</version>
  <versioning>
    <release>1.2.5</release>
    <versions>
      <version>1.2.0</version>
      <version>1.2.1</version>
      <version>1.2.2</version>
      <version>1.2.3</version>
      <version>1.2.4</version>
      <version>1.2.5</version>
    </versions>
    <lastUpdated>20081128050839</lastUpdated>
  </versioning>
</metadata>

and the snapshot:

<metadata>
  <groupId>smx3</groupId>
  <artifactId>smx3.partyresource</artifactId>
  <version>1.2.0-SNAPSHOT</version>
  <versioning>
    <versions>
      <version>1.2.0-SNAPSHOT</version>
      <version>1.2.6-SNAPSHOT</version>
    </versions>
    <lastUpdated>20081130055646</lastUpdated>
  </versioning>
</metadata>

Interesting - why is version 1.2.0, whilst theres a release of 1.2.5?
And the same with 1.2.0-SNAPSHOT as opposed to 1.2.6-SNAPSHOT.

In my settings.xml I have everything setup to mirror into nexus:

 <mirrors>
    <mirror>
      <id>Nexus</id>
      <name>Nexus Public Mirror</name>
      <url>http://XXX/nexus/content/groups/public</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

with two server entries declaring my user/password to deploy.

 <servers>
    <server>
      <id>smx-releases</id>
      <username>admin</username>
      <password>XXX</password>
    </server>
    <server>
      <id>smx-snapshots</id>
      <username>admin</username>
      <password>XXX</password>
    </server>
  </servers>

On Sun, Nov 30, 2008 at 6:36 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
>> In my repository I have version 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4,
>> 1.2.5, and 1.2.6-SNAPSHOT deployed.  In my pom I have [1.2.0,)
>> declared as the version range.  This resolves to 1.2.0 whereas I
>> really want 1.2.6-SNAPSHOT to be resolved and used.  My understand is
>
> When you say "deployed", are you talking about actual remote
> deployment to a Maven repo manager? If so, what software are you using
> to host the repo? What does the content of the maven-metadata.xml file
> look like on the server?
>
> Also, did you declare that your repo hosts snapshots as well as
> releases in settings.xml?
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
"It is easier to optimize correct code than to correct optimized
code." -- Bill Harlan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to