Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2742

karaf-maven-plugin can not include filtered resources in a custom distribution

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      Fedora 20, Oracle JDK 1.7.0_51, Maven 3.0.4

      Description

      I am trying to build a custom Karaf distribution by following http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html. I need to add a .cfg file in the karaf/etc directory. However, the maven resource filtering on that .cfg file does not work.

      The sample project looks like:

      karaf-filtering-bug
      ├── pom.xml
      ├── readme.txt
      └── src
          └── main
              └── filtered-resources
                  └── etc
                      └── filtering.bug.cfg
      

      The filtering.bug.cfg file should be filtered with maven resource plugin. I am expecting that the filtered file will get included in the karaf distribution. I can see that target/classes/etc/filtering.bug.cfg actually has the correct content but the karaf/etc/filtering.bug.cfg still has the maven variables.

      I'll upload the sample project as well.

        Attachments

        1. CreateArchiveMojo.patch
          4 kB
          Ryan Moquin
        2. karaf-filtering-bug.tar.gz
          2 kB
          Partha Roy

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              partha.guha.roy Partha Roy
            • Votes:
              5 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated: