Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Problem accessing snapshot artifacts

On 11/29/15 17:24 PM, Paolo Di Tommaso wrote:
> For example: 
> 
>     maven-metadata.xml
>     maven-metadata.xml.md5
>     maven-metadata.xml.sha1
>     nextflow-0.16.3-20151129.152629-1.jar
>     nextflow-0.16.3-20151129.152629-1.jar.md5
>     nextflow-0.16.3-20151129.152629-1.jar.sha1
>     nextflow-0.16.3-20151129.152629-1.pom
>     nextflow-0.16.3-20151129.152629-1.pom.md5
>     nextflow-0.16.3-20151129.152629-1.pom.sha1  
> 
> 
> 
> As a consequence of this aether fails to find the required jar, that in
> this example would be `nextflow-0.16.3-SNAPSHOT.jar`. Is this a bug on
> the gradle maven plugin side or a problem with Aether which is unable to
> recognize the snapshot archive format?  

AFAIK, the maven-metadata.xml contains the information which timestamp
corresponds to "SNAPSHOT". So, check whether this is the case for you.
If not, the Gradle Maven plugin is likely to blame. If it does contain
plausible-looking mapping information, however, then you have
misconfigured Aether in some way, as it should first download the
maven-metadata.xml and then, based on the mapping info therein, the
correct timestamped JAR. Only if that fails, Aether tries -SNAPSHOT as a
fallback.

Hope that helps.

Andreas

-- 
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top