Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Allow specifying additional repository for download #148

Conversation

Martin-Idel-SI
Copy link
Contributor

@Martin-Idel-SI Martin-Idel-SI commented Apr 12, 2019

Resolves #147

For technical reasons, preferential download over maven central is not possible in all cases (the maven invoker always also queries maven central).

However, it is always bad style to have artifacts with same groupId, artifactId, version and classifier in different repositories which are actually different. Hence we let the user specify a classifier. The repository should then contain the artifacts with that special classifier.

Boy-Scout rule: This PR also overhauls exception handling so that no stack traces appear on the console during a successful run.

Problem:
When building the e2e tests, a lot of stack traces occur. This is due to
some ArtifactNotFound exceptions which are thrown during normal
execution of the artifact resolver. These are expected exceptions so
they should not be shown to the user.

Mitigation:
Overhaul exception strategy: Instead of throwing and recatching
exceptions, we now directly catch exceptions and log only the relevant
information. "requestFile" in IArtifactRequester may now return an empty
File. This will (as before) be communicated to the user anyway as
artifacts would be missing from the final report. Exceptions are only
thrown if the build is not recoverable.

Signed-off-by: Martin Idel <external.Martin.Idel@bosch-si.com>
Signed-off-by: Martin Idel <external.Martin.Idel@bosch-si.com>
- this allows to fill a reference repository with updated sources
- this repository can be configured in the pom
- in addition, a classifier can be configured in the workflow step

Signed-off-by: Martin Idel <external.Martin.Idel@bosch-si.com>
@Martin-Idel-SI Martin-Idel-SI force-pushed the martin-idel-si/fix_invoker_exception_handling branch from a6ff9b0 to 4d97293 Compare April 12, 2019 11:40
Copy link
Contributor

@bs-ondem bs-ondem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@bs-ondem bs-ondem merged commit b4a2e7c into eclipse-archived:master Apr 12, 2019
@blaumeiser-at-bosch blaumeiser-at-bosch deleted the martin-idel-si/fix_invoker_exception_handling branch May 16, 2019 11:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow specifying a repository for downloading cleaned sources preferentially
2 participants