Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Aether Aand failed download

Thomas Sant'ana wrote:

1) If the artifact download fails (network problem) does trash get left
behind. Does Aether chech SHA1 or MD5SUMs? My fear is the user attempts a
download, shutdown and now a partially donwloaded artifact causes a crash
on execution.

The existing repository connectors download artifacts to a temp file first and only move it into destination after the download succeeded. This should handle the network problem case.

The other common issue are misconfigured HTTP servers which respond to missing artifacts with HTTP status 200 instead of 404, preventing proper detection of the download failure. This can be mitigated by enabling strict checksum checking, assuming all artifacts actually have accompanying checksum files in the repository.

2) Is there any way to purge the repository?

There is no first-class support at the API level to purge parts of the local repository.

What is possible is to query the path to individual artifacts and delete those if deemed corrupt, thereby forcing re-download during the next resolution attempt.


Benjamin


Back to the top