Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10061

slingUrl configuration parameter is ignored during install-bundle step

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Sling Maven Plugin 2.4.0, Sling Maven Plugin 2.4.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      I have a pom.xml file with the following dependency in it:

       

      <!-- Apache Sling Plugin -->
       <plugin>
        <groupId>org.apache.sling</groupId>
        <artifactId>maven-sling-plugin</artifactId>
        <version>2.3.8</version> <!-- Use 2.4.0 or later seems to cause the slingUrl to be ignored. -->
        <configuration>
          <slingUrl>http://${aem.host}:${aem.port}/system/console</slingUrl>
          <deploymentMethod>WebConsole</deploymentMethod>
        </configuration>
       </plugin>
      

      ${aem.host} is set to localhost and ${aem.port} is set to 4502.

      It works fine when the version is set to 2.3.8 but when I moved to 2.4.0 or 2.4.2 I get the following message on the console:

      [INFO] --- sling-maven-plugin:2.4.0:install (install-bundle) @ fluentforms.core ---
      [INFO] Installing Bundle com._4point.aem.fluentforms.core(C:\Users\Rob.McDougall\OneDrive - 4Point Solutions Ltd\Documents\Eclipse FluentAPI Workspace\fluentforms\core\target\fluentforms.core-0.0.2-SNAPSHOT.jar) to http://localhost:8080/system/console via WebConsole
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 22.770 s
      [INFO] Finished at: 2021-01-12T16:58:35-05:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.sling:sling-maven-plugin:2.4.0:install (install-bundle) on project fluentforms.core: Installation on http://localhost:8080/system/console failed, cause: Installation failed, cause: Not Found -> [Help 1]

      I have tried manipulating the value in <slingUrl> but the plugin appears to be ignoring that setting completely and using the default value.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              RobMcDougall Rob McDougall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: