You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Florian Brunner (JIRA)" <ji...@codehaus.org> on 2011/05/12 18:23:22 UTC

[jira] Created: (MCHANGES-241) Failed to execute goal announcement-generate (include-announcement-file) on child project

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

                 Key: MCHANGES-241
                 URL: http://jira.codehaus.org/browse/MCHANGES-241
             Project: Maven 2.x Changes Plugin
          Issue Type: Bug
          Components: announcement
    Affects Versions: 2.4
            Reporter: Florian Brunner
            Priority: Blocker


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHANGES-241) Failed to execute goal announcement-generate (include-announcement-file) on child project

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHANGES-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266525#action_266525 ] 

Dennis Lundberg commented on MCHANGES-241:
------------------------------------------

Where is maven-changes-plugin configured, in the child project or the parent or perhaps both?

> Failed to execute goal announcement-generate (include-announcement-file) on child project
> -----------------------------------------------------------------------------------------
>
>                 Key: MCHANGES-241
>                 URL: http://jira.codehaus.org/browse/MCHANGES-241
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 2.4
>            Reporter: Florian Brunner
>            Priority: Blocker
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MCHANGES-241) Failed to execute goal announcement-generate (include-announcement-file) on child project

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCHANGES-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MCHANGES-241:
-------------------------------------

    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]


{code:xml}      <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>{code}

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

  was:
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]


{code:xml}                              <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>
{code}

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


> Failed to execute goal announcement-generate (include-announcement-file) on child project
> -----------------------------------------------------------------------------------------
>
>                 Key: MCHANGES-241
>                 URL: http://jira.codehaus.org/browse/MCHANGES-241
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 2.4
>            Reporter: Florian Brunner
>            Priority: Blocker
>
> 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]
> {code:xml}      <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>{code}
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHANGES-241) Failed to execute goal announcement-generate (include-announcement-file) on child project

Posted by "Florian Brunner (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHANGES-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=266548#action_266548 ] 

Florian Brunner commented on MCHANGES-241:
------------------------------------------

Only in the child project.

Note that the multi-module project is not the parent project!

Layout:
/pom.xml (multi-module project)
/my-parent/pom.xml (parent POM)
/my-child-project/... (child project)


> Failed to execute goal announcement-generate (include-announcement-file) on child project
> -----------------------------------------------------------------------------------------
>
>                 Key: MCHANGES-241
>                 URL: http://jira.codehaus.org/browse/MCHANGES-241
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 2.4
>            Reporter: Florian Brunner
>            Priority: Blocker
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MCHANGES-241) Failed to execute goal announcement-generate (include-announcement-file) on child project

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCHANGES-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MCHANGES-241:
-------------------------------------

    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]


{code:xml}                              <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>
{code}

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

  was:
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


> Failed to execute goal announcement-generate (include-announcement-file) on child project
> -----------------------------------------------------------------------------------------
>
>                 Key: MCHANGES-241
>                 URL: http://jira.codehaus.org/browse/MCHANGES-241
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 2.4
>            Reporter: Florian Brunner
>            Priority: Blocker
>
> 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]
> {code:xml}                              <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>
> {code}
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCHANGES-241) Failed to execute goal announcement-generate (include-announcement-file) on child project

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCHANGES-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296980#comment-296980 ] 

Benson Margulies commented on MCHANGES-241:
-------------------------------------------

It's been nearly a year and no word back. Closing as no repro.
                
> Failed to execute goal announcement-generate (include-announcement-file) on child project
> -----------------------------------------------------------------------------------------
>
>                 Key: MCHANGES-241
>                 URL: https://jira.codehaus.org/browse/MCHANGES-241
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 2.4
>            Reporter: Florian Brunner
>            Priority: Blocker
>
> 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]
> {code:xml}      <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>{code}
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCHANGES-241) Failed to execute goal announcement-generate (include-announcement-file) on child project

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHANGES-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=267008#action_267008 ] 

Dennis Lundberg commented on MCHANGES-241:
------------------------------------------

Can you please put together a complete sample project that we can use to test this?

> Failed to execute goal announcement-generate (include-announcement-file) on child project
> -----------------------------------------------------------------------------------------
>
>                 Key: MCHANGES-241
>                 URL: http://jira.codehaus.org/browse/MCHANGES-241
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 2.4
>            Reporter: Florian Brunner
>            Priority: Blocker
>
> 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]
> {code:xml}      <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>{code}
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCHANGES-241) Failed to execute goal announcement-generate (include-announcement-file) on child project

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCHANGES-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies closed MCHANGES-241.
-------------------------------------

    Resolution: Incomplete
      Assignee: Benson Margulies
    
> Failed to execute goal announcement-generate (include-announcement-file) on child project
> -----------------------------------------------------------------------------------------
>
>                 Key: MCHANGES-241
>                 URL: https://jira.codehaus.org/browse/MCHANGES-241
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 2.4
>            Reporter: Florian Brunner
>            Assignee: Benson Margulies
>            Priority: Blocker
>
> 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]
> {code:xml}      <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>{code}
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira