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

maven-sling-plugin ignores targetPath on resource path checking

    XMLWordPrintableJSON

Details

    Description

      the sling plugins configures and checks initial content path mappings in method AbstractBundleInstallMojo.configure.
      this does work fine with maven default mapping.

      but if the project pom defines a special resource mapping with target path like this:
      <resources>
      <!-- copy webapp resources to SLING-INF/content/apps/${project.name} -->
      <resource>
      <directory>src/main/webapp</directory>
      <targetPath>SLING-INF/content/apps/${project.name}</targetPath>
      <filtering>false</filtering>
      </resource>
      </resources>
      this does not work any longer, because the target path is ignored and the wrong path is checked.

      the patch attached solves the problem.

      Attachments

        1. targetpath-patch.patch
          1 kB
          Stefan Seifert

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sseifert Stefan Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: