Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept URL for templatePath #184

Open
driew12 opened this issue Jun 5, 2024 · 3 comments
Open

Accept URL for templatePath #184

driew12 opened this issue Jun 5, 2024 · 3 comments

Comments

@driew12
Copy link

driew12 commented Jun 5, 2024

It would be nice to be able to use a template located by a URL.

For example, when we need to use the same template in multiple projects. And it would help to easily maintain changes to the template without copying it to all projects after every change.

In my case, I use git-changelog-lib with the maven plugin. And i want to use something like that:

...
						<configuration>
							<templateFile>https://raw.githubusercontent.com/tomasbjerre/git-changelog-lib/master/src/main/resources/changelog.mustache</templateFile>
						</configuration>
...
@tomasbjerre
Copy link
Owner

I would put the plugin configuration in a parent pom and reuse that in different projects. Something like what I have done here: https://github.com/tomasbjerre/bjurr-bom/blob/8d16cfdd4fc29c230afd701f2c540e19dc33f33d/pom.xml#L141

@driew12
Copy link
Author

driew12 commented Jun 5, 2024

Unfortunately, in my case, it is impossible to edit the parent pom file :(
What do you think about this solution? - #185

@tomasbjerre
Copy link
Owner

tomasbjerre commented Jun 5, 2024

If you cannot change the parent, you can add it as a dependency: https://github.com/tomasbjerre/bjurr-bom/tree/8d16cfdd4fc29c230afd701f2c540e19dc33f33d?tab=readme-ov-file#import-the-bom

I think that is the solution for this kind of issue. It solves all other configuration that you may want to have for all your projects within your organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants