Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Aem 请求http://localhost:4502/crx/packmgr/service.jsp 失败,响应=禁止_Aem - Fatal编程技术网

Aem 请求http://localhost:4502/crx/packmgr/service.jsp 失败,响应=禁止

Aem 请求http://localhost:4502/crx/packmgr/service.jsp 失败,响应=禁止,aem,Aem,我在构建项目时遇到了这个问题,当时我的office网络在通过Vault构建时被限制访问Adobe CRX packmgr The error message were as below: [WARNING] Required proxy credentials not available for BASIC <any realm>@10.XX3.X0.XX:XXXX [WARNING] Preemptive authentication requested but no defau

我在构建项目时遇到了这个问题,当时我的office网络在通过Vault构建时被限制访问Adobe CRX packmgr

The error message were as below:

[WARNING] Required proxy credentials not available for BASIC <any realm>@10.XX3.X0.XX:XXXX
[WARNING] Preemptive authentication requested but no default proxy credentials available
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Forbidden

And the Build was failed.


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.221 s
[INFO] Finished at: 2017-06-22T16:01:01+05:30
[INFO] Final Memory: 36M/459M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.24:install (install-package) on project XXXbas.ui.apps: Error while installing package. Check log for details. -> [Help 1]
错误消息如下所示:
[警告]基本@10.XX3.X0.XX:XXXX所需的代理凭据不可用
[警告]已请求抢占式身份验证,但没有可用的默认代理凭据
[错误]请求发送到http://localhost:4502/crx/packmgr/service.jsp 失败,响应=禁止
构建失败了。
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:8.221秒
[信息]完成时间:2017-06-22T16:01:01+05:30
[信息]最终内存:36M/459M
[信息]------------------------------------------------------------------------
[错误]无法执行目标com.day.jcr.vault:content package maven插件:0.0.24:在项目XXXbas.ui上安装(安装软件包)。应用程序:安装软件包时出错。查看日志了解详细信息。->[帮助1]

我通过在我的父pom.xml中添加一个简单的配置解决了这个问题:

false

代码如下:

<!-- Content Package Plugin -->
<plugin>
    <groupId>com.day.jcr.vault</groupId>
    <artifactId>content-package-maven-plugin</artifactId>
    <version>0.0.24</version>
    <configuration>
        <targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL>
        <failOnError>true</failOnError>
        <failOnMissingEmbed>true</failOnMissingEmbed>
        <useProxy>false</useProxy>
    </configuration>
</plugin>

com.day.jcr.vault
内容包maven插件
0.0.24
http://${aem.host}:${aem.port}/crx/packmgr/service.jsp
符合事实的
符合事实的
错误的

我通过在我的父pom.xml中添加一个简单的配置解决了这个问题:

false

代码如下:

<!-- Content Package Plugin -->
<plugin>
    <groupId>com.day.jcr.vault</groupId>
    <artifactId>content-package-maven-plugin</artifactId>
    <version>0.0.24</version>
    <configuration>
        <targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL>
        <failOnError>true</failOnError>
        <failOnMissingEmbed>true</failOnMissingEmbed>
        <useProxy>false</useProxy>
    </configuration>
</plugin>

com.day.jcr.vault
内容包maven插件
0.0.24
http://${aem.host}:${aem.port}/crx/packmgr/service.jsp
符合事实的
符合事实的
错误的

请您接受此答案,仅为清楚起见,这是正确的答案。请您接受此答案,仅为清楚起见,这是正确的答案。