You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sylwester Lachiewicz (Jira)" <ji...@apache.org> on 2025/01/26 13:51:00 UTC
[jira] [Closed] (MSTAGE-27) DefaultRepositoryCopier throws unclassified runtime exceptions that should be checked exceptions
[ https://issues.apache.org/jira/browse/MSTAGE-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylwester Lachiewicz closed MSTAGE-27.
--------------------------------------
Resolution: Won't Do
> DefaultRepositoryCopier throws unclassified runtime exceptions that should be checked exceptions
> ------------------------------------------------------------------------------------------------
>
> Key: MSTAGE-27
> URL: https://issues.apache.org/jira/browse/MSTAGE-27
> Project: Maven Stage Plugin
> Issue Type: Bug
> Reporter: Elliotte Rusty Harold
> Priority: Major
>
> protected List<String> scanForArtifactPaths( ArtifactRepository repository )
> {
> try
> {
> Wagon wagon = wagonManager.getWagon( repository.getProtocol() );
> Repository artifactRepository = new Repository( repository.getId(), repository.getUrl() );
> wagon.connect( artifactRepository );
> List<String> collected = new ArrayList<String>();
> scan( wagon, "/", collected );
> wagon.disconnect();
> return collected;
> }
> catch ( UnsupportedProtocolException e )
> {
> throw new RuntimeException( e );
> }
> catch ( ConnectionException e )
> {
> throw new RuntimeException( e );
> }
> catch ( AuthenticationException e )
> {
> throw new RuntimeException( e );
> }
> }
--
This message was sent by Atlassian Jira
(v8.20.10#820010)