2017-06-22 47 views
1

当我的办公室网络受限制访问Adobe CRX packmgr而通过保险库进行构建时,在构建项目时遇到此问题。请求http:// localhost:4502/crx/packmgr/service.jsp失败,响应=禁止

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] 

回答

3

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

<useProxy>false</useProxy>

下面是代码:

<!-- 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> 
+2

请你接受这个答案只是为了清楚,这是正确的答案。 – Jens