我已为作者和出版商安装了AEM 6.1,其中包含文档中指定的修补程序和Service Pack。还将我的项目包部署到作者中。但是在将同一个项目部署到发布者时,我收到了这个错误。
错误: -
[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>
Maven命令: -
mvn clean install -DskipTests=true -PautoInstallBundlePublish
答案 0 :(得分:0)
默认情况下,它使用&#34; WebConsole&#34;部署程序包的方法,因此您需要指向 HOST:PORT / system / console ,否则您需要将 deploymentMethod 配置设置为&#34; SlingPostServlet *。 / p>
有关详细信息,请参阅&#34;安装&#34; maven-sling-plugin的目标文档: https://sling.apache.org/documentation/development/sling.html
您还需要更新到最新的maven-sling-plugin版本2.1.8。