2017-11-24 28 views
0

내 로컬 서버가 Maven 중앙 리포지토리 (https://repo.maven.apache.org/maven2)에 액세스 할 수 없으므로 아티팩트를 업로드 할 때 아래 문제를 충족합니다. KIE 워크 벤치, 그리고 난jboss kie workbench : 어떻게하면 maven 중앙 리포지토리 URL을 Kie 워크 벤치의 로컬 로컬 repo URL로 바꿀 수 있습니까

SEVERE: Servlet.service() for servlet [M2Servlet] in context with path [/kie-drools-wb] threw exception 
java.lang.RuntimeException: org.apache.maven.project.ProjectBuildingException: 1 problem was encountered while building the effective model for org.mybatis:mybatis:3.2.8 
[FATAL] Non-resolvable parent POM: Failure to transfer org.mybatis:mybatis-parent:pom:21 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.mybatis:mybatis-parent:pom:21 from/to central (https://repo.maven.apache.org/maven2): connect timed out @ line 20, column 11 
for project org.mybatis:mybatis:3.2.8 
at org.guvnor.m2repo.backend.server.GuvnorM2Repository.getDistributionManagement(GuvnorM2Repository.java:462) 
at org.guvnor.m2repo.backend.server.GuvnorM2Repository.deployArtifact(GuvnorM2Repository.java:373) 
at org.guvnor.m2repo.backend.server.GuvnorM2Repository.deployArtifact(GuvnorM2Repository.java:178) 
at org.guvnor.m2repo.backend.server.GuvnorM2Repository$Proxy$_$$_WeldClientProxy.deployArtifact(GuvnorM2Repository$Proxy$_$$_WeldClientProxy.java) 
at org.guvnor.m2repo.backend.server.M2RepoServiceImpl.deployJar(M2RepoServiceImpl.java:55) 
at org.guvnor.m2repo.backend.server.M2RepoServiceImpl$Proxy$_$$_WeldClientProxy.deployJar(M2RepoServiceImpl$Proxy$_$$_WeldClientProxy.java) 
at org.guvnor.m2repo.backend.server.helpers.HttpPostHelper.uploadJar(HttpPostHelper.java:168) 
at org.guvnor.m2repo.backend.server.helpers.HttpPostHelper.upload(HttpPostHelper.java:122) 
at org.guvnor.m2repo.backend.server.helpers.HttpPostHelper.handle(HttpPostHelper.java:62) 
at org.guvnor.m2repo.backend.server.M2Servlet.doPost(M2Servlet.java:58) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 
at org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureHeadersFilter.java:69) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 
at org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(SecurityIntegrationFilter.java:57) 
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) 
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110) 
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:615) 
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) 
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 
at org.kie.integration.tomcat.JACCValve.invoke(JACCValve.java:101) 
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962) 
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445) 
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115) 
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) 
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) 
+1

jboss kie workbench working dir의 setting.xml을 검색하지만 아무 것도 얻을 수 없으므로 maven 서버 내부의 kie workbench를 maven 중앙 저장소 (https : //repo.maven.apache)와 함께 사용하는 방법을 알지 못합니다. org/maven2) –

답변

0

는 그것을 자신을 해결 내 회사 소호에 받는다는 중앙 저장소의 URL을 대체 할 수있는 방법 : 받는다는 모델 빌더-3.2.5.jar의 갱신 치어 4.0.0.xml 파일 설정을 kie-drools-wb의 lib 디렉토리에서 myselft로 저장소의 설정을 바꾸고 kie-drools-wb의 lib jar 파일을 저장하고 바꾼 다음 캐시를 정리하고 서버를 다시 시작한 다음 서버를 다시 시작하십시오

<repositories> 
    <repository> 
     <id>central</id> 
     <name>Central Repository</name> 
     <url>https://repo.maven.apache.org/maven2</url> 
     <layout>default</layout> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
    </repository> 
    </repositories> 

    <pluginRepositories> 
    <pluginRepository> 
     <id>central</id> 
     <name>Central Repository</name> 
     <url>https://repo.maven.apache.org/maven2</url> 
     <layout>default</layout> 
     <snapshots> 
     <enabled>false</enabled> 
     </snapshots> 
     <releases> 
     <updatePolicy>never</updatePolicy> 
     </releases> 
    </pluginRepository> 
    </pluginRepositories>