Uploaded image for project: 'PUBLIC - Liferay Maven'
  1. PUBLIC - Liferay Maven
  2. MAVEN-146

Direct deploy for ext issue when renamming util-* jar

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.1.2 CE GA3
    • Fix Version/s: None
    • Component/s: Plugins
    • Labels:

      Description

      When you build with maven using the "direct deploy" goal, the plugin renames the util-* jars.

      But it makes a mistake when renaming, adding a "-" not required

      Ex : the artifact jar file is nammed ext-util-bridges.jar

      The goal deploys it in the WEB-INF/lib folder with the name :
      ext-pluginname-ext-util--bridges.jar
      instead of
      ext-pluginname-ext-util-bridges.jar

      So depending how you deploy, you can have both
      ext-pluginname-ext-util--bridges.jar and
      ext-pluginname-ext-util-bridges.jar

      in the lib folder

      The error is the class PluginDirectDeployerMojo.class and the line :

      String utilName = (new StringBuilder()).append("util-").append(artifactId.substring(artifactId.lastIndexOf('-'))).toString();

      Just replace this by

      String utilName = (new StringBuilder()).append("util-").append(artifactId.substring(artifactId.lastIndexOf('-')+1)).toString();

      and it would be ok

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                4 years, 36 weeks, 3 days ago

                Packages

                Version Package