You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2010/12/15 22:29:58 UTC
[jira] Commented: (MCHANGES-154) Using an URL for the email
template instead of the proiect local file
[ http://jira.codehaus.org/browse/MCHANGES-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=248639#action_248639 ]
Dennis Lundberg commented on MCHANGES-154:
------------------------------------------
You can do this today using the standard Maven way of sharing resources.
First create a separate Maven project called maven-build-tools to house your shared reqources. It can consist of only 2 files: a pom.xml and the template itself at /src/main/resources/your/org/plugins/announcement/announcement.vm
Put this in your project's POM:
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changes-plugin</artifactId>
<version>2.3</version>
<configuration>
...
<templateDirectory>your/org/plugins/announcement</templateDirectory>
</configuration>
<dependencies>
<dependency>
<groupId>your.org</groupId>
<artifactId>maven-build-tools</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
{code}
> Using an URL for the email template instead of the proiect local file
> ---------------------------------------------------------------------
>
> Key: MCHANGES-154
> URL: http://jira.codehaus.org/browse/MCHANGES-154
> Project: Maven 2.x Changes Plugin
> Issue Type: New Feature
> Components: announcement
> Affects Versions: 2.1
> Environment: Maven 2.0.9
> Java 6
> WinXP
> Reporter: Jean-Paul GUIGUI
>
> Today the plugin needs a local templateOutputDirectoy which is under the basedir of the project.
> Actually, I'd like to share the same template for all my projects.
> The template should be an URL so it will be possible to share it.
--
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