You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by lukewpatterson <lu...@gmail.com> on 2010/01/13 15:10:53 UTC

generated sources/resources path conventions

It seems like 
  ${project.build.directory}/generated-sources/<generator-name>
and 
  ${project.build.directory}/generated-resources/<generator-name>
have been mentioned [1][2], but I wonder if something like this
  ${project.build.directory}/generated/<generator-name>
is more consistent.

With ${project.build.directory}/generated/<generator-name>, I could have
good consistency like:
${project.build.directory}/generated/<generator-name>/src/main/java
${project.build.directory}/generated/<generator-name>/src/test/scala
${project.build.directory}/generated/<generator-name>/src/main/resources


[1]
http://old.nabble.com/generated-sources-convention-td14430527.html#a14430527
[2]
http://old.nabble.com/maven-antrun-plugin%3A-Java-classes-don%27t-compile-after-an-Ant-task-td24300991.html#a24301576
-- 
View this message in context: http://old.nabble.com/generated-sources-resources-path-conventions-tp27145545p27145545.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Maven timestamp with 2.0.10

Posted by "Peter Hecht (hechtmail)" <pe...@hechtmail.com>.
Hello,

While 2.1 seems to have a timestamp, how do I get a timestamp using 2.0.10?

Thanks!

Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: generated sources/resources path conventions

Posted by Milos Kleint <mk...@gmail.com>.
On Fri, Jan 15, 2010 at 3:43 PM, Mark Hobson <ma...@gmail.com> wrote:

> 2010/1/13 lukewpatterson <lu...@gmail.com>:
> > It seems like
> >  ${project.build.directory}/generated-sources/<generator-name>
> > and
> >  ${project.build.directory}/generated-resources/<generator-name>
> > have been mentioned [1][2], but I wonder if something like this
> >  ${project.build.directory}/generated/<generator-name>
> > is more consistent.
> >
> > With ${project.build.directory}/generated/<generator-name>, I could have
> > good consistency like:
> > ${project.build.directory}/generated/<generator-name>/src/main/java
> > ${project.build.directory}/generated/<generator-name>/src/test/scala
> > ${project.build.directory}/generated/<generator-name>/src/main/resources
>
> Sounds reasonable enough, although I'd probably also ditch 'src' since
> 'generated' conceptually replaces this.  Any new standard would have
> to be applied across all Apache and Mojo plugins though.
>
>
and it would break IDE integrations, at least netbeans which relies on the
current convention.

Milos


> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: generated sources/resources path conventions

Posted by Mark Hobson <ma...@gmail.com>.
2010/1/15 lukewpatterson <lu...@gmail.com>:
> Good point, updated example:
>
> ${project.build.directory}/generated/<generator-name>/main/java
> ${project.build.directory}/generated/<generator-name>/test/scala
> ${project.build.directory}/generated/<generator-name>/main/resources
>
> A question about the current standard: are generated *test* sources placed
> in
> ${project.build.directory}/generated-test-sources/<generator-name> ?
>
> And for *test resources*, is it
> ${project.build.directory}/generated-test-resources/<generator-name> ?
>
> I couldn't find any examples (haven't exhaustively search though) of
> generators that produce on both main and test sides.

Yep, that's right.  For an example, see:

http://mojo.codehaus.org/apt-maven-plugin/test-process-mojo.html#testOutputDirectory

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: generated sources/resources path conventions

Posted by lukewpatterson <lu...@gmail.com>.

mihobson wrote:
> 
> ... I'd probably also ditch 'src' since 'generated' conceptually replaces
> this. 
> 

Good point, updated example:

${project.build.directory}/generated/<generator-name>/main/java
${project.build.directory}/generated/<generator-name>/test/scala
${project.build.directory}/generated/<generator-name>/main/resources

A question about the current standard: are generated *test* sources placed
in 
${project.build.directory}/generated-test-sources/<generator-name> ?

And for *test resources*, is it
${project.build.directory}/generated-test-resources/<generator-name> ?

I couldn't find any examples (haven't exhaustively search though) of
generators that produce on both main and test sides.
-- 
View this message in context: http://old.nabble.com/generated-sources-resources-path-conventions-tp27145545p27179217.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: generated sources/resources path conventions

Posted by Mark Hobson <ma...@gmail.com>.
2010/1/13 lukewpatterson <lu...@gmail.com>:
> It seems like
>  ${project.build.directory}/generated-sources/<generator-name>
> and
>  ${project.build.directory}/generated-resources/<generator-name>
> have been mentioned [1][2], but I wonder if something like this
>  ${project.build.directory}/generated/<generator-name>
> is more consistent.
>
> With ${project.build.directory}/generated/<generator-name>, I could have
> good consistency like:
> ${project.build.directory}/generated/<generator-name>/src/main/java
> ${project.build.directory}/generated/<generator-name>/src/test/scala
> ${project.build.directory}/generated/<generator-name>/src/main/resources

Sounds reasonable enough, although I'd probably also ditch 'src' since
'generated' conceptually replaces this.  Any new standard would have
to be applied across all Apache and Mojo plugins though.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org