Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1873

GenerateServiceAssemblyMojo doesn't include any files created by a build such as resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • jbi-maven-plugin-4.1
    • jbi-maven-plugin-4.2
    • tooling
    • None
    • Maven 2.1.0

    • Patch Available

    Description

      I have an SA in which I want to include a .properties file that's been modified during the build using a filter, like:

              <resources>
                      <resource>
                          <directory>${basedir}/src/main/resources</directory>
                          <filtering>true</filtering>
                          <includes>
                              <include>**/*</include>
                          </includes>
                      </resource>
              </resources>
      

      unfortunately the resulting build produces a .jar that contains my .properties file correctly filtered and a .zip that contains all my SUs. The .zip file should also contain my .properties file. Looking at the code it appears that GenerateServiceAssemblyMojo doesn't include the build output directory (target/classes) when creating the SA .zip file. I'll attach a patch for this.

      Attachments

        1. patch.txt
          1 kB
          Stanley J. Lewis

        Activity

          People

            ffang Freeman Yue Fang
            slewis Stanley J. Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: