I figured I had been a skilled Maven user, however i am getting a mental block regarding how to do that!

I have been able to utilize the Maven sql wordpress plugin to decrease, create, and use a schema inside a database via wordpress plugin accomplishments I have defined and certain to the pre-integration-test phase.

However, now Let me use that same sql wordpress plugin to place some sample data whenever I would like in the command line -- that's, not certain to any lifecycle goal. You will find a couple of different teams of sample data, so Let me define a couple of different accomplishments.

But it is possible to method to run one of these simple accomplishments in the command line using the execution ID possibly?

But it is possible to method to run one of these simple accomplishments in the command line using the execution ID possibly?

No, not possible. What's possible though would be to define "a" configuration for use once the wordpress plugin is invoked in the command line while using "special" default-cli execution id:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>sql-maven-plugin</artifactId>
  <version>1.4</version>
  ...
  <executions>
    <execution>
      <id>default-cli</id>
      <configuration>
        ...
      </configuration>
    </execution>
    ...
  </executions>
</plugin>

And just call mvn sql:execute.

See below for that particulars (in the Maven 2.2.0 Release Notes):

  • MNG-3401 - Beginning in Maven 2.2., goals invoked from the command line could be set up within the POM individually using their company wordpress plugin invocations utilizing a special executionId known as default-cli. Where formerly, all designs for command-line goals needed to use the wordpress plugin-level configuration, Maven 2.2. enables command-line-specific designs to become separated into their very own <execution>. For additional information, begin to see the Guide to Default Execution IDs.

For multiple database conditions you should use org.jsoftware:dbplugin - http://jsoftware.org/maven-dbpatch-plugin