[
http://jira.codehaus.org/browse/MSQL-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202487#action_202487
]
Mark Struberg commented on MSQL-46:
-----------------------------------
Dan, I also added a property 'forceMojoExecution' which you can use to force
the execution of the plugin in your case. I was not sure about whether this
should be the default behaviour or not. There are a few arguments pro and con
implementing it this way:
* pro:
There are already a few plugins like the source and javadoc plugin (amongst
others) which skip the execution for projects of packaging type 'pom' as
default behaviour.
* con: executing it by default would be more backward compatible.
A quick asking on IRC sensed that the sql plugin is rarely used in parent poms
anyway and thus I've decided to choose the more consistent way. Is this ok for
you or do you think I should invert the logic (making it different as most
other plugins).
> the sql-maven-plugin mojos shall not get executed for projets with packaging
> type 'pom'
> ---------------------------------------------------------------------------------------
>
> Key: MSQL-46
> URL: http://jira.codehaus.org/browse/MSQL-46
> Project: Maven 2.x SQL Plugin
> Issue Type: Improvement
> Affects Versions: 1.3
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.4
>
>
> If a company has a lot of similar backend projects, they may move the whole
> sql-maven-plugin configuration over to a shared backend/pom.xml which they
> use as parent for all backend projects. This parent project will not have any
> SQL scripts itself, but may like to define common sql executions like a
> 'createtestdata.sql'.
> In this case the sql-maven-plugin currently fails because the sql statements
> usually don't exist in the parent project.
> The solution is to allow skipping the execution of all sql-maven-pluign mojos
> if it gets executed on a project with packaging type 'pom.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email