Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] Snapshot version resolution

Hi,

I try to programmatically resolve snapshot versions (timestamp)
using aether. The base version of our snapshots always
has the form "2.1-SNAPSHOT".

Now I tried to find out the concrete timestamped version
of the artifact using the aether system session and different methods
(resolveVersion(), resolveArtifact()) but with no success.
I always get version and base version being resolved to "2.1-SNAPSHOT".

I have inspected the .m2 local repo and looked into our metadata which
looks like below.  So, in the metadata there is the timestamp recorded.

Any advice how to retrieve the timestamp would be very much appreciated.

Kind regards
Lars

<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
  <groupId>net.sourceforge.jadex</groupId>
  <artifactId>jadex-applications-bdi</artifactId>
  <version>2.1-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <localCopy>true</localCopy>
    </snapshot>
    <lastUpdated>20120203083807</lastUpdated>
    <snapshotVersions>
      <snapshotVersion>
        <extension>jar</extension>
        <value>2.1-SNAPSHOT</value>
        <updated>20120203083807</updated>
      </snapshotVersion>
      <snapshotVersion>
        <extension>pom</extension>
        <value>2.1-SNAPSHOT</value>
        <updated>20120203083807</updated>
      </snapshotVersion>
    </snapshotVersions>
  </versioning>
</metadata>



Back to the top