Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3380

Utilize Maven Central Rest API in place of Aether API dependencies to reduce Archetype Portlet WAR size and deploy time

    Details

      Description

      This task involves removing Aether API dependencies in the Archetype Portlet and instead relying on Maven Central's Rest API.

      The list of all Archetypes can be found with a URL like this one:

      https://search.maven.org/solrsearch/select?q=g:%22com.liferay.faces.archetype%22&rows=100&wt=json
      

      The list of all archetypes versions for a particular artifact id can be found with a URL like this one:

      https://search.maven.org/solrsearch/select?q=g:%22com.liferay.faces.archetype%22+AND+a:%22com.liferay.faces.archetype.primefaces.portlet%22&rows=100&wt=json&core=gav
      

      Once all versions are obtained, they can be compared with the given range to determine if they are the highest version with custom code instead of the Aether API. Then the JAR can be obtained with a URL like the following:

      http://search.maven.org/remotecontent?filepath=com/liferay/faces/archetype/com.liferay.faces.archetype.primefaces.portlet/5.0.5/com.liferay.faces.archetype.primefaces.portlet-5.0.5.jar
      

      Finally confirm the JAR is correct by checking its SHA1 against the one provided at a URL like this one:

      https://repo1.maven.org/maven2/com/liferay/faces/archetype/com.liferay.faces.archetype.primefaces.portlet/5.0.5/com.liferay.faces.archetype.primefaces.portlet-5.0.5.jar.sha1
      

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann (Inactive)
              Reporter:
              kyle.stiemann Kyle Stiemann (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                archetype-portlet-3.0.5