Hi,
can you make an example test project on github so I can take a look at it...
On Saturday, April 15, 2017 at 3:19:45 AM UTC+2, Samarjit Adhikari wrote:
>
> Hello All,
>
> I have following pom. If "skip" property is made true in each <execution>
> tag , it does not seems to be worked, where as if it is made in top level
> <configuration> tags, it is working to skip all <executions> tags.
> My requirement is to skip each <execution> tag conditionally which will be
> passed as environment variable. Such behavior looks to be a defect. Could
> you please confirm ?
> --------------------------------------
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>sql-maven-plugin</artifactId>
> <version>1.6</version>
>
> <dependencies>
> <dependency>
> <groupId>com.oracle</groupId>
> <artifactId>ojdbc6</artifactId>
> <version>${oracle.version}</version>
> </dependency>
> <dependency>
> <groupId>postgresql</groupId>
> <artifactId>postgresql</artifactId>
> <version>${postgresql.version}</version>
> </dependency>
> </dependencies>
>
> <!-- common configuration shared by all executions -->
> <configuration>
> *<!-- <skip>true</skip> This works --> *
> </configuration>
>
> <executions>
> <execution>
> <id>run command for oracle</id>
> <phase>pre-integration-test</phase>
> <goals>
> <goal>execute</goal>
> </goals>
> <configuration>
> *<skip>true</skip> <!-- Does not work -->*
> <username>xyz</username>
> <password>xyz</password>
> <url>abcd</url>
>
> <driver>oracle.jdbc.driver.OracleDriver</driver>
> <autocommit>true</autocommit>
> <sqlCommand>...</sqlCommand>
> <onError>continue</onError>
> </configuration>
> </execution>
>
> <execution>
> <id>run command for postgres</id>
> <phase>pre-integration-test</phase>
> <goals>
> <goal>execute</goal>
> </goals>
> <configuration>
> *<skip>true</skip> <!-- Does not work -->*
> <username>xyz</username>
> <password>xyz</password>
> <url>abcd</url>
> <driver>org.postgresql.Driver</driver>
> <autocommit>true</autocommit>
> <sqlCommand>...</sqlCommand>
> <onError>continue</onError>
> </configuration>
> </execution>
> </executions>
> </plugin>
> --------------------------------------------
>
> With regards,
> Samarjit
>
>
--
You received this message because you are subscribed to the Google Groups
"mojohaus-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mojohaus-dev/428713c6-a229-45c4-81b2-f84e3455e0dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.