maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <>
Subject Re: Using maven properties inside .java inside annotation in a clean way
Date Thu, 17 Jan 2013 09:29:14 GMT

Stephen Connolly wrote:

> I would put such template source files in src/main/java-templates and
> knock together a plugin that filters while copying the source to
> target/generated-sources/template and then adds that as a source root in
> one step.
> I would suggest to knock sth together at mojo since a lot if people seem
> to want this and an actual plugin will simplify their poms... And for test
> sources it can actually make sense. But there will be pain... For one the
> templates themselves will not be on the IDE source path so will not face
> IDE completion... But then templates will not be syntax correct anyway, so
> no bad thing

in his case, the templates are valid Java classes, with just some string 
constants containing the wrong value. As long as he configures the IDE not 
to put the compiled version into target/classes, he can still have the 
refactoring support ...

- Jörg

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message