[forge-issues] [JBoss JIRA] (FORGE-2532) testing an addon having org.eclipse:osgi dependecy failed

ludovic Bertin (JIRA) issues at jboss.org
Tue Dec 15 12:18:00 EST 2015


    [ https://issues.jboss.org/browse/FORGE-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141466#comment-13141466 ] 

ludovic Bertin commented on FORGE-2532:
---------------------------------------

Hi Georges,

sorry for the delay, I had no access to environment in which error occured.
Indeed, I was not able to reproduce error anywhere else.

So I investigated a bit, and the reason was an incorrect artifact in the nexus...

In these lines 
{code:title=ProjectHelper.java|borderStyle=solid}
        ProjectBuildingRequest request = getBuildingRequest(plexus);
         request.setResolveDependencies(true);
         ProjectBuilder builder = plexus.lookup(ProjectBuilder.class);
         ProjectBuildingResult build = builder.build(pomFile, request);
         result = build.getDependencyResolutionResult().getDependencies();
{code}

build.getDependencyResolutionResult().getDependencies() is returning zero dependency if one of dependency resolutions failed.
I think it should warn but return all others dependencies...
What do you think about it ?

Thanks
Ludovic

> testing an addon having org.eclipse:osgi dependecy failed
> ---------------------------------------------------------
>
>                 Key: FORGE-2532
>                 URL: https://issues.jboss.org/browse/FORGE-2532
>             Project: Forge
>          Issue Type: Bug
>    Affects Versions: 2.19.2.Final, 2.20.0.Final, 2.20.1.Final
>            Reporter: ludovic Bertin
>            Assignee: George Gastaldi
>         Attachments: example.zip
>
>
> I have implemented an Forge2 addon with org.eclipse:osgi as dependency.
> I have written a simple test with Arquillian : it fails. If I remove osgi dependency, test pass.
> But my relevant test need this dependency, as my addon to be tested is using it.
>  
> Please find attach a dummy project to reproduce the problem.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the forge-issues mailing list