You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2020/12/18 15:08:00 UTC

[jira] [Created] (MSTAGE-27) DefaultRepositoryCopier throws unclassified runtime exceptions that should be checked exceptions

Elliotte Rusty Harold created MSTAGE-27:
-------------------------------------------

             Summary: 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


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.3.4#803005)