-
Type:
Bug
-
Status: Verified
-
Resolution: Unresolved
-
Affects Version/s: 6.2.5 CE GA6
-
Fix Version/s: None
-
Component/s: Dev Tools, Dev Tools > Plugins SDK
-
Labels:None
-
Fix Priority:4
Steps:
- Install a 6.2 CE Plugins SDK
- In a plugin project that uses Ant/Ivy, execute an Ant task such as ant clean
Expected Results:
The task invokes Ivy to download dependencies into the cache and proceeds with its task logic.
Actual Results:
Ivy downloads fail for Liferay's CDN Nexus repo due to an authorization failure.
>ant clean
Buildfile: C:\plugins-sdks\sdk-6.2-sample-ivy-projects\portlets\sample-jsp-portlet\build.xml
[mkdir] Created dir: C:\plugins-sdks\sdk-6.2-sample-ivy-projects\.ivy
[mkdir] Created dir: C:\Users\liferay\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT
[get] Getting: http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] To: C:\Users\liferay\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Getting: http://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] To: C:\Users\liferay\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jarBUILD FAILED
C:\plugins-sdks\sdk-6.2-sample-ivy-projects\portlets\sample-jsp-portlet\build.xml:5: The following error occurred while executing this line:
C:\plugins-sdks\sdk-6.2-sample-ivy-projects\portlets\build-common-portlet.xml:5: The following error occurred while executing this line:
C:\plugins-sdks\sdk-6.2-sample-ivy-projects\build-common-plugin.xml:5: The following error occurred while executing this line:
C:\plugins-sdks\sdk-6.2-sample-ivy-projects\build-common.xml:60: The following error occurred while executing this line:
C:\plugins-sdks\sdk-6.2-sample-ivy-projects\build-common-ivy.xml:130: The following error occurred while executing this line:
C:\plugins-sdks\sdk-6.2-sample-ivy-projects\build-common-ivy.xml:81: HTTP Authorization failureTotal time: 2 seconds
Workaround:
Copy the following property into your Plugins SDK's build.username.properties file ...
{{
ivy.jar.url=https://repository.liferay.com/nexus/content/repositories/liferay-public-snapshots/com/liferay/org.apache.ivy/${ivy.version}/org.apache.ivy-${ivy.version}.jar
}}
This issue has also been reported in the forums: