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(); }* SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setValidating( false ); factory.setNamespaceAware( false ); SAXParser parser = factory.newSAXParser(); parser.parse( is, handler ); } catch (Exception e) { throw new RuntimeException("Unable to parse File '" + path + "'", e); } return handler.getPomModel(); }
However, now I'm getting the following security exception when navigating around in the workbench: Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Failure to transfer org.piercecountywa.commons:commons:pom:4.1.0 from https://vm-desktop.co.pierce.wa.us/kie-wb/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of guvnor-m2-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.piercecountywa.commons:commons:pom:4.1.0 from/to guvnor-m2-repo (https://vm-desktop.co.pierce.wa.us/kie-wb/maven2/): Access denied to: https://vm-desktop.co.pierce.wa.us/kie-wb/maven2/org/piercecountywa/commons/commons/4.1.0/commons-4.1.0.pom (401) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:237) ~[aether-impl-1.13.1.jar:na] at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:216) ~[aether-impl-1.13.1.jar:na] at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ~[aether-impl-1.13.1.jar:na] ... 75 common frames omitted I setup tomcat7 security per the following: https://github.com/droolsjbpm/kie-wb-distributions/blob/master/kie-wb/kie-wb-distribution-wars/src/main/tomcat7/README.txt <https://github.com/droolsjbpm/kie-wb-distributions/blob/master/kie-wb/kie-wb-distribution-wars/src/main/tomcat7/README.txt> Any suggestions on how to get around this security exception? Regards, Jay -- 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-module-maven-project-tp4027338p4027371.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users