[
http://jira.codehaus.org/browse/MSQL-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207644#action_207644
]
Robert Scholte commented on MSQL-34:
------------------------------------
I agree with Dan. Don't think the skipAll (or what's in the name) property is
the way to go.
The cleanest way to solve this is with.... profiles :)
I hope you're aware that you can add a profile which is activeByDefault,
meaning that if you don't specify a profile, this one is used.
Also: define the skipExecution-properties in your pom.xml in the project >
properties section, with their most used (default?) values. Per profile (test,
dev, johndoe) only change the skipExecutionX if it's different. And properties
can be filled with expressions as well.
All together it should be strong enough to work things out, but it might be
some sort of hard sudoku.
> More control over skip property - global configuration vs individual
> executions
> -------------------------------------------------------------------------------
>
> Key: MSQL-34
> URL: http://jira.codehaus.org/browse/MSQL-34
> Project: Maven 2.x SQL Plugin
> Issue Type: Wish
> Reporter: John Newman
>
> Hello,
> I'm having issues with the scope of the skip property.
> If I pass maven test skip, i don't want anything at all to run. So I have
> <configuration>
> <skip>${maven.test.skip}</skip>
> But i have a bunch of different executions, I need some of them to not run
> for certain environments.
> <execution><id>test-data</id><skip>${skipTestData}</skip>
> However if I simply run mvn -Dmaven.test.skip=true , the test data tries to
> run anyway (skip is overridden). To me, this is a bug. To others, it might
> be a feature.
> Really what is needed is a property <globalSkipOverridesIndividual> which is
> false by default. As of now I have to do -Dmaven.test.skip=true
> -DskipTestData=true, which is fine, but I have 8 or so skip lines to pass
> in...
> Thanks.
--
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