Error "cannot download non-project artifact" for artifact dependencies
----------------------------------------------------------------------

                 Key: IVYDE-232
                 URL: https://issues.apache.org/jira/browse/IVYDE-232
             Project: IvyDE
          Issue Type: Bug
          Components: workspace resolver
    Affects Versions: 2.1.0
         Environment: linux ubuntu 9.10 x64 /  eclipse 3.4.2 / jre 1.6.018
            Reporter: Damien Chambe


When  using artifact restrictions dependencies, the workspace resolver is 
falsly reporting an error:

ivy.xml :
<dependencies>
  <dependency org="asis" name="connector" rev="1.03" conf="connector" >
    <artifact name="socketserver" type="lib/export/connector" ext="jar"/>
   </dependency>                        
</dependencies>

when resolving, the following error is reported:

[Eclipse Workspace resolver] cannot download non-project artifact: 
asis#connector;1.03!socketserver.jar(lib/export/connector)
WARN:   [FAILED     ] 
asis#connector;1.03!socketserver.jar(lib/export/connector):  (0ms)
no failure report implemented by exc-SocketServer-LM-ivyde-workspace-resolver

:: problems summary ::
:::: WARNINGS
                [FAILED     ] 
asis#connector;1.03!socketserver.jar(lib/export/connector):  (0ms)

                ::::::::::::::::::::::::::::::::::::::::::::::

                ::              FAILED DOWNLOADS            ::

                :: ^ see resolution messages for details  ^ ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: asis#connector;1.03!socketserver.jar(lib/export/connector)

                ::::::::::::::::::::::::::::::::::::::::::::::

In this case, the workspace resolver should set the download status to NO 
instead of FAIL:

 // Only report java projects as downloaded
            if (artifacts[i].getType().equals(ECLIPSE_PROJECT_TYPE)) {
                Message.verbose("\t[IN WORKSPACE] " + artifacts[i]);
                adr.setDownloadStatus(DownloadStatus.NO);
                adr.setSize(0);
            } else {
                Message.verbose("\t[Eclipse Workspace resolver] "
                        + "cannot download non-project artifact: " + 
artifacts[i]);
                adr.setDownloadStatus(DownloadStatus.NO);
            }

The resolution works with this fix

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to