Uploaded image for project: 'Maven Changes Plugin'
  1. Maven Changes Plugin
  2. MCHANGES-241

Failed to execute goal announcement-generate (include-announcement-file) on child project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Incomplete
    • 2.4
    • None
    • announcement
    • None

    Description

      I have a child project which has a separate changes.xml which will be included in a separate zip assembly.

      When I run it on it's own, it works fine, but when I run it as part of a multi module project I get the following error:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-changes-plugin:2.4:announcement-generate (include-announcement-file) on project <my-child-project>: Resource not found. Template not found. ( announcements/announcement.vm ) -> [Help 1]

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-changes-plugin</artifactId>
              <version>2.4</version>
              <executions>
                <execution>
                  <id>include-announcement-file</id>
                  <phase>generate-resources</phase>
                  <goals>
                    <goal>announcement-generate</goal>
                  </goals>
                  <configuration>
                    <template>announcement.vm</template>
                    <templateDirectory>announcements</templateDirectory>
                    <filteringChanges>true</filteringChanges>
                    <announcementFile>CHANGES.txt</announcementFile>
                    <outputDirectory>${project.dist.directory}</outputDirectory>
                  </configuration>
                </execution>
              </executions>
            </plugin>

      As I said, the file <my-child-project-baseDir>/src/main/resources/announcements/announcement.vm is present and it works fine, when the project is run on its own.

      I'm using Maven 3.0.3

      Attachments

        Activity

          People

            bmargulies Benson Margulies
            puce Florian Brunner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: