Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-70696

HTTP Authorization fails for http://cdn.repository.liferay.com Nexus repository

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 6.2.5 CE GA6
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      4

      Description

      Steps:

      1. Install a 6.2 CE Plugins SDK
      2. 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.jar

      BUILD 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 failure

      Total 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:

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              james.hinkey James Hinkey
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                2 years, 48 weeks, 6 days ago

                Packages

                Version Package