2017-06-22 45 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