You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sebb <se...@gmail.com> on 2011/09/20 16:39:15 UTC

[ALL] components using non-standard source and test directory layouts

Just ran a search for top-level poms that define sourceDirectory /
testSourceDirectory; quite a few are using non-standard locations.

The standard Maven layout [1] is:

src/main/java
src/test/java

If the standard layout is used there is no need to redefine the
properties in the pom, and it makes life a bit easier for new-comers
to a project.

It's not essential to change the layout, but developers might wish to
consider fixing the layout at some point as part of component
maintenance.

Remember to update assembly/*.xml and Ant builds if necessary, and
test the updated layout before committing!

[These are all long-established projects, so probably inherited the
layout from pre-Maven2 days.]

betwixt/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
betwixt/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
codec/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
codec/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
collections/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
collections/trunk/pom.xml:
<testSourceDirectory>src/test</testSourceDirectory>
daemon/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
daemon/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>

[I'll probably do this shortly]

ddbcp/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
dbcp/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
dbutils/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
dbutils/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>

[I'll probably do this shortly]

discovery/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
discovery/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
el/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
el/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
email/trunk/pom.xml:        <sourceDirectory>src/java</sourceDirectory>
email/trunk/pom.xml:        <testSourceDirectory>src/test</testSourceDirectory>
fileupload/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
fileupload/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
jcs/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
jcs/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
jxpath/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
jxpath/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
launcher/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
logging/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
logging/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
modeler/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
modeler/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
pool/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
pool/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
primitives/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
primitives/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>

[1] http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [ALL] components using non-standard source and test directory layouts

Posted by sebb <se...@gmail.com>.
On 20 September 2011 16:59, Simone Tripodi <si...@apache.org> wrote:
> Hi Seb
>
>>
>> I'm not proposing that we go ahead and change all the components
>> immediately, just that projects should consider fixing the layout at
>> some point.
>
> clear, I would get bored after the second component :P
>
>>
>> Also perhaps create JIRA enhancement issues for each of the projects
>> listed, pointing to the Wiki page?
>>
>
> that makes a lot of sense, updating what is in my current pipeline.
>
> Just a question: do we want to change DbUtils layout before the RC at
> that point? Yes I'd say, I'd let you doing it since volunteered first
> anyway... WDYT?

No-one has objected to the suggestion to change DbUtils, so I was
planning on fixing that, maybe later today.

> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [ALL] components using non-standard source and test directory layouts

Posted by Simone Tripodi <si...@apache.org>.
Hi Seb

>
> I'm not proposing that we go ahead and change all the components
> immediately, just that projects should consider fixing the layout at
> some point.

clear, I would get bored after the second component :P

>
> Also perhaps create JIRA enhancement issues for each of the projects
> listed, pointing to the Wiki page?
>

that makes a lot of sense, updating what is in my current pipeline.

Just a question: do we want to change DbUtils layout before the RC at
that point? Yes I'd say, I'd let you doing it since volunteered first
anyway... WDYT?

http://people.apache.org/~simonetripodi/
http://www.99soft.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [ALL] components using non-standard source and test directory layouts

Posted by sebb <se...@gmail.com>.
On 20 September 2011 19:28, Gary Gregory <ga...@gmail.com> wrote:
> [codec] now uses the standard layout.
>
> I cannot get M3 to pick up src/main/resources unless this is preserved:
>
>  <build>
>    <resources>
>      <resource>
>        <directory>src/main/resources</directory>
>      </resource>
>    </resources>
>
> Which seems to be fixed when I run with commons-parent 22.

Yes, because one of the earlier CP versions added a resources section
as a hack to include N&L: in jars, and failed to include the default
resources.

The same happened with testResources in a later CP; both problems have
been fixed in CP22.

> Gary
>
>
> On Tue, Sep 20, 2011 at 1:02 PM, Gary Gregory <ga...@gmail.com>wrote:
>
>> FYI: codec will be fixed today.
>>
>> Gary
>>
>> On Sep 20, 2011, at 11:38, sebb <se...@gmail.com> wrote:
>>
>> > On 20 September 2011 15:49, Simone Tripodi <si...@apache.org>
>> wrote:
>> >> do you want some help? I could be helpful here, just let me know!
>> >> Simo
>> >
>> > I'm not proposing that we go ahead and change all the components
>> > immediately, just that projects should consider fixing the layout at
>> > some point.
>> >
>> > However, what would be useful now is a Wiki page listing what needs to
>> > be changed, and what needs to be checked.
>> > I've made a start here:
>> >
>> > http://wiki.apache.org/commons/MavenStandardLayout
>> >
>> > but it is incomplete.
>> >
>> > Also perhaps create JIRA enhancement issues for each of the projects
>> > listed, pointing to the Wiki page?
>> >
>> >> http://people.apache.org/~simonetripodi/
>> >> http://www.99soft.org/
>> >>
>> >>
>> >>
>> >> On Tue, Sep 20, 2011 at 4:39 PM, sebb <se...@gmail.com> wrote:
>> >>> Just ran a search for top-level poms that define sourceDirectory /
>> >>> testSourceDirectory; quite a few are using non-standard locations.
>> >>>
>> >>> The standard Maven layout [1] is:
>> >>>
>> >>> src/main/java
>> >>> src/test/java
>> >>>
>> >>> If the standard layout is used there is no need to redefine the
>> >>> properties in the pom, and it makes life a bit easier for new-comers
>> >>> to a project.
>> >>>
>> >>> It's not essential to change the layout, but developers might wish to
>> >>> consider fixing the layout at some point as part of component
>> >>> maintenance.
>> >>>
>> >>> Remember to update assembly/*.xml and Ant builds if necessary, and
>> >>> test the updated layout before committing!
>> >>>
>> >>> [These are all long-established projects, so probably inherited the
>> >>> layout from pre-Maven2 days.]
>> >>>
>> >>> betwixt/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> betwixt/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> codec/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> codec/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> collections/trunk/pom.xml:
>>  <sourceDirectory>src/java</sourceDirectory>
>> >>> collections/trunk/pom.xml:
>> >>> <testSourceDirectory>src/test</testSourceDirectory>
>> >>> daemon/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> daemon/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>>
>> >>> [I'll probably do this shortly]
>> >>>
>> >>> ddbcp/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> dbcp/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> dbutils/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> dbutils/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>>
>> >>> [I'll probably do this shortly]
>> >>>
>> >>> discovery/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> discovery/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> el/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> el/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> email/trunk/pom.xml:        <sourceDirectory>src/java</sourceDirectory>
>> >>> email/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> fileupload/trunk/pom.xml:
>>  <sourceDirectory>src/java</sourceDirectory>
>> >>> fileupload/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> jcs/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> jcs/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> jxpath/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> jxpath/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> launcher/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> logging/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> logging/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> modeler/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> modeler/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> pool/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> >>> pool/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>> primitives/trunk/pom.xml:
>>  <sourceDirectory>src/java</sourceDirectory>
>> >>> primitives/trunk/pom.xml:
>>  <testSourceDirectory>src/test</testSourceDirectory>
>> >>>
>> >>> [1]
>> http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> >>> For additional commands, e-mail: dev-help@commons.apache.org
>> >>>
>> >>>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> >> For additional commands, e-mail: dev-help@commons.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> > For additional commands, e-mail: dev-help@commons.apache.org
>> >
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> JUnit in Action, 2nd Ed: http://s.apache.org/rl
> Spring Batch in Action: http://s.apache.org/HOq
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [ALL] components using non-standard source and test directory layouts

Posted by Gary Gregory <ga...@gmail.com>.
[codec] now uses the standard layout.

I cannot get M3 to pick up src/main/resources unless this is preserved:

  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>

Which seems to be fixed when I run with commons-parent 22.

Gary


On Tue, Sep 20, 2011 at 1:02 PM, Gary Gregory <ga...@gmail.com>wrote:

> FYI: codec will be fixed today.
>
> Gary
>
> On Sep 20, 2011, at 11:38, sebb <se...@gmail.com> wrote:
>
> > On 20 September 2011 15:49, Simone Tripodi <si...@apache.org>
> wrote:
> >> do you want some help? I could be helpful here, just let me know!
> >> Simo
> >
> > I'm not proposing that we go ahead and change all the components
> > immediately, just that projects should consider fixing the layout at
> > some point.
> >
> > However, what would be useful now is a Wiki page listing what needs to
> > be changed, and what needs to be checked.
> > I've made a start here:
> >
> > http://wiki.apache.org/commons/MavenStandardLayout
> >
> > but it is incomplete.
> >
> > Also perhaps create JIRA enhancement issues for each of the projects
> > listed, pointing to the Wiki page?
> >
> >> http://people.apache.org/~simonetripodi/
> >> http://www.99soft.org/
> >>
> >>
> >>
> >> On Tue, Sep 20, 2011 at 4:39 PM, sebb <se...@gmail.com> wrote:
> >>> Just ran a search for top-level poms that define sourceDirectory /
> >>> testSourceDirectory; quite a few are using non-standard locations.
> >>>
> >>> The standard Maven layout [1] is:
> >>>
> >>> src/main/java
> >>> src/test/java
> >>>
> >>> If the standard layout is used there is no need to redefine the
> >>> properties in the pom, and it makes life a bit easier for new-comers
> >>> to a project.
> >>>
> >>> It's not essential to change the layout, but developers might wish to
> >>> consider fixing the layout at some point as part of component
> >>> maintenance.
> >>>
> >>> Remember to update assembly/*.xml and Ant builds if necessary, and
> >>> test the updated layout before committing!
> >>>
> >>> [These are all long-established projects, so probably inherited the
> >>> layout from pre-Maven2 days.]
> >>>
> >>> betwixt/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> betwixt/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> codec/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> codec/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> collections/trunk/pom.xml:
>  <sourceDirectory>src/java</sourceDirectory>
> >>> collections/trunk/pom.xml:
> >>> <testSourceDirectory>src/test</testSourceDirectory>
> >>> daemon/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> daemon/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>>
> >>> [I'll probably do this shortly]
> >>>
> >>> ddbcp/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> dbcp/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> dbutils/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> dbutils/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>>
> >>> [I'll probably do this shortly]
> >>>
> >>> discovery/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> discovery/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> el/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> el/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> email/trunk/pom.xml:        <sourceDirectory>src/java</sourceDirectory>
> >>> email/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> fileupload/trunk/pom.xml:
>  <sourceDirectory>src/java</sourceDirectory>
> >>> fileupload/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> jcs/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> jcs/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> jxpath/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> jxpath/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> launcher/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> logging/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> logging/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> modeler/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> modeler/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> pool/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> >>> pool/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>> primitives/trunk/pom.xml:
>  <sourceDirectory>src/java</sourceDirectory>
> >>> primitives/trunk/pom.xml:
>  <testSourceDirectory>src/test</testSourceDirectory>
> >>>
> >>> [1]
> http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >>> For additional commands, e-mail: dev-help@commons.apache.org
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >> For additional commands, e-mail: dev-help@commons.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: http://s.apache.org/rl
Spring Batch in Action: http://s.apache.org/HOq
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: [ALL] components using non-standard source and test directory layouts

Posted by Gary Gregory <ga...@gmail.com>.
FYI: codec will be fixed today.

Gary

On Sep 20, 2011, at 11:38, sebb <se...@gmail.com> wrote:

> On 20 September 2011 15:49, Simone Tripodi <si...@apache.org> wrote:
>> do you want some help? I could be helpful here, just let me know!
>> Simo
>
> I'm not proposing that we go ahead and change all the components
> immediately, just that projects should consider fixing the layout at
> some point.
>
> However, what would be useful now is a Wiki page listing what needs to
> be changed, and what needs to be checked.
> I've made a start here:
>
> http://wiki.apache.org/commons/MavenStandardLayout
>
> but it is incomplete.
>
> Also perhaps create JIRA enhancement issues for each of the projects
> listed, pointing to the Wiki page?
>
>> http://people.apache.org/~simonetripodi/
>> http://www.99soft.org/
>>
>>
>>
>> On Tue, Sep 20, 2011 at 4:39 PM, sebb <se...@gmail.com> wrote:
>>> Just ran a search for top-level poms that define sourceDirectory /
>>> testSourceDirectory; quite a few are using non-standard locations.
>>>
>>> The standard Maven layout [1] is:
>>>
>>> src/main/java
>>> src/test/java
>>>
>>> If the standard layout is used there is no need to redefine the
>>> properties in the pom, and it makes life a bit easier for new-comers
>>> to a project.
>>>
>>> It's not essential to change the layout, but developers might wish to
>>> consider fixing the layout at some point as part of component
>>> maintenance.
>>>
>>> Remember to update assembly/*.xml and Ant builds if necessary, and
>>> test the updated layout before committing!
>>>
>>> [These are all long-established projects, so probably inherited the
>>> layout from pre-Maven2 days.]
>>>
>>> betwixt/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> betwixt/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> codec/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> codec/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> collections/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> collections/trunk/pom.xml:
>>> <testSourceDirectory>src/test</testSourceDirectory>
>>> daemon/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> daemon/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>>
>>> [I'll probably do this shortly]
>>>
>>> ddbcp/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> dbcp/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> dbutils/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> dbutils/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>>
>>> [I'll probably do this shortly]
>>>
>>> discovery/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> discovery/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> el/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> el/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> email/trunk/pom.xml:        <sourceDirectory>src/java</sourceDirectory>
>>> email/trunk/pom.xml:        <testSourceDirectory>src/test</testSourceDirectory>
>>> fileupload/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> fileupload/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> jcs/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> jcs/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> jxpath/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> jxpath/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> launcher/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> logging/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> logging/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> modeler/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> modeler/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> pool/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> pool/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>> primitives/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>>> primitives/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>>
>>> [1] http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [ALL] components using non-standard source and test directory layouts

Posted by sebb <se...@gmail.com>.
On 20 September 2011 15:49, Simone Tripodi <si...@apache.org> wrote:
> do you want some help? I could be helpful here, just let me know!
> Simo

I'm not proposing that we go ahead and change all the components
immediately, just that projects should consider fixing the layout at
some point.

However, what would be useful now is a Wiki page listing what needs to
be changed, and what needs to be checked.
I've made a start here:

http://wiki.apache.org/commons/MavenStandardLayout

but it is incomplete.

Also perhaps create JIRA enhancement issues for each of the projects
listed, pointing to the Wiki page?

> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
>
>
>
> On Tue, Sep 20, 2011 at 4:39 PM, sebb <se...@gmail.com> wrote:
>> Just ran a search for top-level poms that define sourceDirectory /
>> testSourceDirectory; quite a few are using non-standard locations.
>>
>> The standard Maven layout [1] is:
>>
>> src/main/java
>> src/test/java
>>
>> If the standard layout is used there is no need to redefine the
>> properties in the pom, and it makes life a bit easier for new-comers
>> to a project.
>>
>> It's not essential to change the layout, but developers might wish to
>> consider fixing the layout at some point as part of component
>> maintenance.
>>
>> Remember to update assembly/*.xml and Ant builds if necessary, and
>> test the updated layout before committing!
>>
>> [These are all long-established projects, so probably inherited the
>> layout from pre-Maven2 days.]
>>
>> betwixt/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> betwixt/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> codec/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> codec/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> collections/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> collections/trunk/pom.xml:
>> <testSourceDirectory>src/test</testSourceDirectory>
>> daemon/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> daemon/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>
>> [I'll probably do this shortly]
>>
>> ddbcp/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> dbcp/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> dbutils/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> dbutils/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>
>> [I'll probably do this shortly]
>>
>> discovery/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> discovery/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> el/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> el/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> email/trunk/pom.xml:        <sourceDirectory>src/java</sourceDirectory>
>> email/trunk/pom.xml:        <testSourceDirectory>src/test</testSourceDirectory>
>> fileupload/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> fileupload/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> jcs/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> jcs/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> jxpath/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> jxpath/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> launcher/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> logging/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> logging/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> modeler/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> modeler/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> pool/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> pool/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>> primitives/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
>> primitives/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>>
>> [1] http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [ALL] components using non-standard source and test directory layouts

Posted by Simone Tripodi <si...@apache.org>.
do you want some help? I could be helpful here, just let me know!
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Tue, Sep 20, 2011 at 4:39 PM, sebb <se...@gmail.com> wrote:
> Just ran a search for top-level poms that define sourceDirectory /
> testSourceDirectory; quite a few are using non-standard locations.
>
> The standard Maven layout [1] is:
>
> src/main/java
> src/test/java
>
> If the standard layout is used there is no need to redefine the
> properties in the pom, and it makes life a bit easier for new-comers
> to a project.
>
> It's not essential to change the layout, but developers might wish to
> consider fixing the layout at some point as part of component
> maintenance.
>
> Remember to update assembly/*.xml and Ant builds if necessary, and
> test the updated layout before committing!
>
> [These are all long-established projects, so probably inherited the
> layout from pre-Maven2 days.]
>
> betwixt/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> betwixt/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> codec/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> codec/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> collections/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> collections/trunk/pom.xml:
> <testSourceDirectory>src/test</testSourceDirectory>
> daemon/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> daemon/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>
> [I'll probably do this shortly]
>
> ddbcp/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> dbcp/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> dbutils/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> dbutils/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>
> [I'll probably do this shortly]
>
> discovery/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> discovery/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> el/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> el/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> email/trunk/pom.xml:        <sourceDirectory>src/java</sourceDirectory>
> email/trunk/pom.xml:        <testSourceDirectory>src/test</testSourceDirectory>
> fileupload/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> fileupload/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> jcs/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> jcs/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> jxpath/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> jxpath/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> launcher/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> logging/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> logging/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> modeler/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> modeler/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> pool/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> pool/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
> primitives/trunk/pom.xml:    <sourceDirectory>src/java</sourceDirectory>
> primitives/trunk/pom.xml:    <testSourceDirectory>src/test</testSourceDirectory>
>
> [1] http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org