maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mirko Friedenhagen <mfriedenha...@gmail.com>
Subject Re: Can I force a plugin to not run during parent pom execution phase?
Date Tue, 02 Apr 2013 19:53:58 GMT
Hello Dave,

you could try to activate this profile depending on the existence of a
given file in your modules, e.g. the existence of a
src/test/resources/liquibase.properties (see
http://www.liquibase.org/manual/liquibase.properties).

Regards
Mirko

Regards Mirko
-- 
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/


On Tue, Apr 2, 2013 at 8:07 PM, laredotornado-3 <laredotornado@gmail.com>wrote:

> Hi,
>
> I'm using Maven 3.0.3.  I've included this plugin in a profile in my parent
> pom, however, when I run my parent pom, I don't want this to be executed as
> part of the parent pom being built (I do want it executed for each of the
> child modules).  How can I make this plugin not run during the parent
> execution phase?
>
>         <modelVersion>4.0.0</modelVersion>
>         <groupId>org.mainco.subco</groupId>
>         <artifactId>subco</artifactId>
>         <version>12.0.0-SNAPSHOT</version>
>         <modules>
>                 <module>moduleA</module>
>                 <module>moduleB</module>
>                 <module>moduleC</module>
>                 <packaging>pom</packaging>
>
>         <profiles>
>                 <profile>
>                         ...
>                                         <plugin>
>
> <groupId>org.liquibase</groupId>
>
> <artifactId>liquibase-maven-plugin</artifactId>
>                                                 <version>2.0.1</version>
>                                                 <dependencies>
>                                                         <dependency>
>
> <groupId>mysql</groupId>
>
> <artifactId>mysql-connector-java</artifactId>
>
> <version>5.1.18</version>
>                                                         </dependency>
>                                                 </dependencies>
>                                                 <executions>
>                                                         <execution>
>
> <id>build-database</id>
>
> <phase>process-test-resources</phase>
>
> <configuration>
>
> <driver>com.mysql.jdbc.Driver</driver>
>
>
> <url>jdbc:mysql://${test.mysql.db.host}:${test.mysql.db.port}/${test.mysql.db.sid}</url>
>
> <username>${test.mysql.db.user}</username>
>
> <password>${test.mysql.db.password}</password>
>
>
> <changeLogFile>${project.build.directory}/db.changelog-master.xml</changeLogFile>
>
> <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
>
> </configuration>
>                                                                 <goals>
>
> <goal>update</goal>
>                                                                 </goals>
>                                                         </execution>
>                                                 </executions>
>                                         </plugin>
>
> Thanks, - Dave
>
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Can-I-force-a-plugin-to-not-run-during-parent-pom-execution-phase-tp5752479.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message