2016-08-26 2 views
0

설명서에 지정된 핫픽스와 서비스 팩을 사용하여 작성자와 게시자 모두에게 AEM 6.1 설치를 완료했습니다. 또한 내 프로젝트 번들을 작성자에게 배포했습니다. 그러나 게시자에게 동일한 프로젝트를 배포하는 동안이 오류가 발생합니다.AEM 6.1 게시자의 피어 간 연결 재설정

오류 : -

[ERROR] Failed to execute goal org.apache.sling:maven-sling-plugin:2.0.6:install (install-bundle) on project Myproject-services: Installation on http://localhost:5503/apps/myproject/install failed, cause: Connection reset by peer: socket write error -> [Help 1] 

의 pom.xml : -

<profile> 
     <id>autoInstallBundlePublish</id> 
     <build> 
      <plugins> 
       <!-- Use the sling plugin to automatically deploy the bundle to the 
        JCR tree --> 
       <plugin> 
        <groupId>org.apache.sling</groupId> 
        <artifactId>maven-sling-plugin</artifactId> 
        <executions> 
         <execution> 
          <id>install-bundle</id> 
          <goals> 
           <goal>install</goal> 
          </goals> 
          <configuration> 
           <slingUrl>http://localhost:5503</slingUrl> 
           <slingUrlSuffix>/apps/myproject/install</slingUrlSuffix> 
           <user>admin</user> 
           <password>admin</password> 
           <!-- <usePut>true</usePut> 
           <failOnError>true</failOnError> --> 
          </configuration> 
         </execution> 
        </executions> 
       </plugin> 

      </plugins> 

     </build> 
    </profile> 

메이븐 명령 : - 기본적으로

mvn clean install -DskipTests=true -PautoInstallBundlePublish 
+0

아마도 바보 같은 질문 일지 모르지만 기본 사항을 다룰 수는 있습니다. 폴더/apps/myproject/install이 게시 인스턴스에 실제로 있습니까? OOTB 4503 대신에 5503으로 출판을한다고 가정 해 봅시다. – 3xil3

답변

0

은 당신의 패키지를 배포 할 수있는 "웹 콘솔"방법을 사용하여 그러므로 당신은 호스트를 가리킬 필요가 있습니다 : PORT/system/console 다른 것들이 필요합니다. deploymentMethod "SlingPostServlet *"에 대한 설정. https://sling.apache.org/documentation/development/sling.html

최신 받는다는 - 슬링 - 플러그인 버전 2.1.8으로 업데이트하는 것이 필요합니다 자세한 내용은

은 받는다는 - 슬링 - 플러그인의 "설치"를 목표 설명서를 참조하십시오.

+0

솔루션을 제공해 주셔서 감사합니다. maven-sling-plugin 및 deploymentMethod 구성의 버전을 변경 한 후 이제 작동합니다. –

+0

의견을 보내 주셔서 감사합니다. 답변이 "유용함"으로 설정되어 명확하게 표시되도록하십시오. – olibur

관련 문제