I have installed drools-wb-6.0.0.Final-tomcat7.0 on Tomcat 7.0 with all
default settings. The OS platform is windows 7.
I’m trying to access the internal KIE M2-Repository in order to dynamically
load (re-load with KieScanner) Kie Modules. The repository is defined in the
POM the following way:
<repository>
<id>kie-wb</id>
<url>http://kie-server:8080/drools-wb-6.0.0.Final-tomcat7.0/maven2/</url>
</repository>
The maven build fails with Unauthorized error:
Could not transfer artifact com.masterit.labs:my-model:pom:0.0.1-SNAPSHOT
from/to kie-wb
(
http://kie-server:8080/drools-wb-6.0.0.Final-tomcat7.0/maven2): Not
authorized , ReasonPhrase:Unauthorized. -> [Help 1]
If I access the maven2 repository directly in the browser the error is:
java.io.FileNotFoundException: repositories\kie (Access is denied)
java.io.RandomAccessFile.open(Native Method)
java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
org.guvnor.m2repo.backend.server.FileDownloadServlet.serveResource(FileDownloadServlet.java:166)
org.guvnor.m2repo.backend.server.FileDownloadServlet.doGet(FileDownloadServlet.java:65)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)
However, manually I can always type the path to some M2 resource in the
browser and get the result. For example the URL below returns the required
artifact:
http://kie-server:8080/drools-wb-6.0.0.Final-tomcat7.0/maven2/com/interwo...
--
View this message in context:
http://drools.46999.n3.nabble.com/KIE-Internal-M2-Repository-Access-Denie...
Sent from the Drools: User forum mailing list archive at
Nabble.com.