And the reason for adding it as a Resource in a separate folder is so that
IDE's can recognise that the file is a source file but generated source.

For example IntelliJ IDEA will give auto-completion of property names from
.properties files if the property file is listed as a generated source root
by using the Resource mechanism

On 6 December 2010 09:14, fhomasp <[email protected]> wrote:

>
>
> Ah I see, thanks
>
>
> Antonio Petrelli wrote:
> >
> > 2010/12/6 fhomasp <[email protected]>:
> >>
> >>
> >> If the File has already been written to the target folder (whatever that
> >> may
> >> be ^^ ) why would I need to add it as a Resource Object to the project?
> >
> > It's not in the target/classes folder, but in a folder of target,
> > sibling of classes.
> > You have to add it to the resources to be packaged together.
> >
> > Antonio
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> >
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/possible-expressions-on-MOJO-parameters-tp3290963p3293739.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to