Re: [rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project

2013-12-19 Thread jguenth
I fixed the MinimalPomParser by resetting the InputStream as follows: static PomModel parse(String path, InputStream is) { MinimalPomParser handler = new MinimalPomParser(); try { *if(is.markSupported()){ is.reset(); }*

Re: [rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project

2013-12-18 Thread jguenth
Here is a simple multi-module maven project that causes the error. test-import.tar.gz Do a mvn clean install in the test-import directory and then try to upload the test-import-domain-0.0.1-SNAPSHOT.jar from your local maven re

Re: [rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project

2013-12-18 Thread Jay Guenthard
List Subject: Re: [rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project Can you provide your JAR? -- View this message in context: http://drools.46999.n3.nabble.com/kie-wb-6-0-0-tomcat7-Error-uploading-maven-jar-that-is-part-of-a-multi

Re: [rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project

2013-12-18 Thread Michael Anstis
Can you provide your JAR? On 18 December 2013 22:23, jguenth wrote: > Yes, I'm trying to upload the JAR to the kie-wb maven repository via the > kie-wb Artifact Repository page. Since the kie-ci module is already on the > webapps classpath, I assume there are no other work-arounds to try. > >

Re: [rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project

2013-12-18 Thread jguenth
Yes, I'm trying to upload the JAR to the kie-wb maven repository via the kie-wb Artifact Repository page. Since the kie-ci module is already on the webapps classpath, I assume there are no other work-arounds to try. I debugged the MinimalPomParser method below and found the InputStream passed in

Re: [rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project

2013-12-18 Thread Michael Anstis
The problem is that the OP is uploading the JAR to kie-wb. This is where the error is thrown: https://github.com/droolsjbpm/guvnor/blob/master/guvnor-m2repo-editor/guvnor-m2repo-editor-backend/src/main/java/org/guvnor/m2repo/backend/server/FileServlet.java#L154 Would this use the Maven Native Par

Re: [rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project

2013-12-18 Thread Mario Fusco
Hi, the MinimalPomParser is an xml parser we developed internally to cover the most common and straightforward cases, but very likely it is unable to parse the multi-module pom you're using. However adding the kie-ci module to your dependencies ( https://github.com/droolsjbpm/drools/tree/master/k

Re: [rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project

2013-12-17 Thread Mark Proctor
it’s hard to see what the problem is. The parser is failing, but it’s now showing where a bouts - i.e. inside of the wrapped exception. Here is the MinimalPomParser: https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kproject/xml/MinimalPomParser.jav

[rules-users] kie-wb 6.0.0 tomcat7: Error uploading maven jar that is part of a multi-module maven project

2013-12-17 Thread jguenth
I'm trying to upload a maven jar artifact using the Artifact Repository and getting the parse error below. Here is my maven project structure... parent_pom (packaging: pom) |_module1_parent_pom (packaging: pom) | |_module1a (packaging: jar) | |_module1b (packaging: jar) | |_module1c (packaging: