You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David Pilato (Jira)" <ji...@apache.org> on 2025/03/06 18:44:00 UTC

[jira] [Updated] (MCHANGES-468) custom template can not be loaded anymore

     [ https://issues.apache.org/jira/browse/MCHANGES-468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Pilato updated MCHANGES-468:
----------------------------------
    Description: 
Hey team

I noticed few things about the mail generation when using a custom template.

First the default one moved from 

{{src/main/resources/org/apache/maven/plugin/announcement/announcement.vm}}

to

{{src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm}}

But the [documentation|https://maven.apache.org/plugins/maven-changes-plugin/examples/using-a-custom-announcement-template.html] proposes to download the default one that is included in the plugin from [https://github.com/apache/maven-changes-plugin/blob/master/src/main/resources/org/apache/maven/plugins/announcement/announcement.vm] although the file moved to [https://github.com/apache/maven-changes-plugin/blob/master/src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm.|https://github.com/apache/maven-changes-plugin/blob/master/src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm]

Then when trying to use my own template by either overloading the default one in my project:

{{src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm}}

Or by setting the following configuration:

{{<template>announcement.vm</template>}}
{{<templateDirectory>announcements</templateDirectory>}}
 
And creating my template in:
 
{{src/main/resources/announcements/announcement.vm}}

As suggested by [the documentation|https://maven.apache.org/plugins/maven-changes-plugin/examples/using-a-custom-announcement-template.html].

When running:

{{mvn changes:announcement-generate}}

I'm getting:

{{[ERROR] Failed to execute goal org.apache.maven.plugins:maven-changes-plugin:3.0.0-M2:announcement-generate (default-cli) on project elasticsearch-beyonder: Resource not found.: Template not found. ( announcements/announcement.vm ): Unable to find resource 'announcements/announcement.vm' -> [Help 1]}}

Although my file does exist:

{{> ls -l src/main/resources/announcements/announcement.vm}}
{{-rw-r--r--@ 1 david  staff  3535 Mar  6 19:28 src/main/resources/announcements/announcement.vm}}

 
 

  was:
Hey team

I noticed few things about the mail generation when using a custom template.

First the default one moved from 

{{ src/main/resources/org/apache/maven/plugin/announcement/announcement.vm}}

to

{{src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm}}

But the [documentation|https://maven.apache.org/plugins/maven-changes-plugin/examples/using-a-custom-announcement-template.html] proposes to download the default one that is included in the plugin from [https://github.com/apache/maven-changes-plugin/blob/master/src/main/resources/org/apache/maven/plugins/announcement/announcement.vm] although the file moved to [https://github.com/apache/maven-changes-plugin/blob/master/src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm.|https://github.com/apache/maven-changes-plugin/blob/master/src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm]

Then when trying to use my own template by either overloading the default one in my project:

{{src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm}}

Or by setting the following configuration:

{{<template>announcement.vm</template>}}
{{<templateDirectory>announcements</templateDirectory>}}
 
And creating my template in:
 
{{src/main/resources/announcements/announcement.vm}}

As suggested by [the documentation|https://maven.apache.org/plugins/maven-changes-plugin/examples/using-a-custom-announcement-template.html].

When running:

{{mvn changes:announcement-generate}}

I'm getting:

{{[ERROR] Failed to execute goal org.apache.maven.plugins:maven-changes-plugin:3.0.0-M2:announcement-generate (default-cli) on project elasticsearch-beyonder: Resource not found.: Template not found. ( announcements/announcement.vm ): Unable to find resource 'announcements/announcement.vm' -> [Help 1]}}

Although my file does exist:

{{> ls -l src/main/resources/announcements/announcement.vm}}
{{-rw-r--r--@ 1 david  staff  3535 Mar  6 19:28 src/main/resources/announcements/announcement.vm}}

 
 


> custom template can not be loaded anymore
> -----------------------------------------
>
>                 Key: MCHANGES-468
>                 URL: https://issues.apache.org/jira/browse/MCHANGES-468
>             Project: Maven Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 3.0.0-M2
>            Reporter: David Pilato
>            Priority: Major
>
> Hey team
> I noticed few things about the mail generation when using a custom template.
> First the default one moved from 
> {{src/main/resources/org/apache/maven/plugin/announcement/announcement.vm}}
> to
> {{src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm}}
> But the [documentation|https://maven.apache.org/plugins/maven-changes-plugin/examples/using-a-custom-announcement-template.html] proposes to download the default one that is included in the plugin from [https://github.com/apache/maven-changes-plugin/blob/master/src/main/resources/org/apache/maven/plugins/announcement/announcement.vm] although the file moved to [https://github.com/apache/maven-changes-plugin/blob/master/src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm.|https://github.com/apache/maven-changes-plugin/blob/master/src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm]
> Then when trying to use my own template by either overloading the default one in my project:
> {{src/main/resources/org/apache/maven/plugins/changes/announcement/announcement.vm}}
> Or by setting the following configuration:
> {{<template>announcement.vm</template>}}
> {{<templateDirectory>announcements</templateDirectory>}}
>  
> And creating my template in:
>  
> {{src/main/resources/announcements/announcement.vm}}
> As suggested by [the documentation|https://maven.apache.org/plugins/maven-changes-plugin/examples/using-a-custom-announcement-template.html].
> When running:
> {{mvn changes:announcement-generate}}
> I'm getting:
> {{[ERROR] Failed to execute goal org.apache.maven.plugins:maven-changes-plugin:3.0.0-M2:announcement-generate (default-cli) on project elasticsearch-beyonder: Resource not found.: Template not found. ( announcements/announcement.vm ): Unable to find resource 'announcements/announcement.vm' -> [Help 1]}}
> Although my file does exist:
> {{> ls -l src/main/resources/announcements/announcement.vm}}
> {{-rw-r--r--@ 1 david  staff  3535 Mar  6 19:28 src/main/resources/announcements/announcement.vm}}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)