[jboss-jira] [JBoss JIRA] (DROOLS-266) KIE resolving dependend artifacts issue

Mario Fusco (JIRA) jira-events at lists.jboss.org
Tue Oct 1 12:49:02 EDT 2013


     [ https://issues.jboss.org/browse/DROOLS-266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-266.
--------------------------------

    Fix Version/s: 6.0.0.CR5
       Resolution: Done

    
> KIE resolving dependend artifacts issue
> ---------------------------------------
>
>                 Key: DROOLS-266
>                 URL: https://issues.jboss.org/browse/DROOLS-266
>             Project: Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions:  6.0.0.CR3
>            Reporter: Kurt Stam
>            Assignee: Mario Fusco
>             Fix For: 6.0.0.CR5
>
>         Attachments: kie-load-from-maven-issue.tgz, kie-load-from-maven-issue.tgz
>
>
> This happens when for a dependency the scope is
> - set to 'provided' and
> - a parameter (in the case ${jbpm.version}) is used in the version field.
> So the relevant entry in the pom is:
> <dependency>
>       <groupId>org.drools</groupId>
>       <artifactId>drools-core</artifactId>
>       <version>${drools.version}</version>
>       <scope>provided</scope>
>     </dependency>
> which leads to
> 11:15:02,584  WARN Dependency artifact not found for: org.jbpm:jbpm-bpmn2:${jbpm.version}
> and then the NPE. I'm guessing the parameter is not being resolved.
> 1. it probably should resolve parameters
> 2. if a dependency is scoped as 'provided' I think it is supposed to locate it on the classpath and NOT from maven. However I'm not sure this is the way that works in testing anyway.
> 3. if the dependency  cannot be found it should probably stop and not even proceed rather then warn?
> 4. it should be interesting to see why it gets the NPE.
> If you change the dependency from 'provided' to 'test' things work fine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list