Skip to main content

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

Lars Braubach wrote:

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.
[...]
<?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>

Artifacts that have been built/installed into a local Maven repository simply have no timestamped version, only remote repos use timestamped snapshots.

Using timestamped snapshots for local artifacts would require to implement your own MetadataGeneratorFactory and maybe VersionResolver.


Benjamin


Back to the top