You could create a Enforcer [1] custom rule[2] and use that. If you create an 
new feature issue at the Enforcer jira [3] with unit tests and code it could 
make it into the enforcer plugin.

Hth,

Nick S.

[1] http://maven.apache.org/plugins/maven-enforcer-plugin/
[2] http://maven.apache.org/enforcer/enforcer-api/writing-a-custom-rule.html
[3] http://jira.codehaus.org/browse/MENFORCER 


-----Original Message-----
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Wed 3/5/2008 16:18
To: Maven Users List
Subject: Re: Validator ensure resources are placed in src/main/resources
 
Not that I know of, but you could build a plugin to do it as part of
your builds pretty trivially. You would probably want to leave the
list of file types/extensions configurable for maximum utility.

Wayne

On 3/5/08, Mark P Ashworth <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> When converting a project to maven or maintaining a project a developer
> might place a resource in the src/main/java folder but it should be in the
> src/main/resources folder. Is there a check or validator plug-in that will
> SCREAM that this is happening and fail the build?
>
> Regards,
> Mark P Ashworth
> --
> View this message in context: 
> http://www.nabble.com/Validator-ensure-resources-are-placed-in-src-main-resources-tp15850621s177p15850621.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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to