[
https://issues.jboss.org/browse/DROOLS-266?page=com.atlassian.jira.plugin...
]
Kurt Stam commented on DROOLS-266:
----------------------------------
expected output:
------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.overlord.dtgov.dtgovworkflows.KieTest
Reading your .m2 repo
artifact=org.overlord.dtgov.issue266:dtgov-workflows:jar:2.0.0-SNAPSHOT
0 [main] WARN org.kie.scanner.MavenClassLoaderResolver - Dependency artifact not
found for: org.jbpm:jbpm-bpmn2:${jbpm.version}
413 [main] WARN org.kie.scanner.MavenClassLoaderResolver - Dependency artifact not
found for: org.jbpm:jbpm-shared-services:${jbpm.version}
753 [main] WARN org.kie.scanner.MavenClassLoaderResolver - Dependency artifact not
found for: org.jbpm:jbpm-persistence-jpa:${jbpm.version}
1097 [main] WARN org.kie.scanner.MavenClassLoaderResolver - Dependency artifact not
found for: org.jbpm:jbpm-runtime-manager:${jbpm.version}
1416 [main] WARN org.kie.scanner.MavenClassLoaderResolver - Dependency artifact not
found for: org.drools:drools-core:${drools.version}
1751 [main] WARN org.kie.scanner.MavenClassLoaderResolver - Dependency artifact not
found for: org.drools:drools-compiler:${drools.version}
2108 [main] WARN org.kie.scanner.MavenClassLoaderResolver - Dependency artifact not
found for: org.kie:kie-api:${drools.version}
2458 [main] WARN org.kie.scanner.MavenClassLoaderResolver - Dependency artifact not
found for: org.jboss.netty:netty:${drools.version}
java.lang.NullPointerException
at sun.net.util.URLUtil.urlNoFragString(URLUtil.java:47)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:321)
at sun.misc.URLClassPath.access$000(URLClassPath.java:62)
at sun.misc.URLClassPath$1.next(URLClassPath.java:221)
at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:232)
at java.net.URLClassLoader$3$1.run(URLClassLoader.java:583)
at java.net.URLClassLoader$3$1.run(URLClassLoader.java:581)
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
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