1

Im trying to automate the database-processes. As far as I understood it, by using Liquibase I can invoke the changes made in changesetLog-file automatically with the <goal> tag.

But when I extend my pom.xml:

<plugin>
  <groupId>org.liquibase</groupId>
  <artifactId>liquibase-maven-plugin</artifactId>
  <version>2.0.5</version>
  <configuration>
    ..
  </configuration>
  <executions>
    <execution>
      <phase>process-resources</phase>
      <goals>
        <goal>update</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Eclipse shows me this error:

Plugin execution not covered by lifecycle configuration: org.liquibase:liquibase-maven-plugin:2.0.5: (execution: default, phase: process-resources)

Any idea how to solve this?? And what the problem is?

user1338413
  • 2,471
  • 8
  • 29
  • 36
  • 1
    possible duplicate of [Plugin execution not covered by lifecycle configuration (JBossas 7 EAR archetype)](http://stackoverflow.com/questions/9142533/plugin-execution-not-covered-by-lifecycle-configuration-jbossas-7-ear-archetype) – Duncan Jones Jan 24 '13 at 19:13
  • While the question may possibily have the same root cause, I think it's unfair to expect the author to find the other answer in a stackoverflow search. – Mark O'Connor Jan 24 '13 at 20:49
  • @Duncun Thanks for the hint. Putting simple "ignore" worked. – user1338413 Jan 25 '13 at 09:06
  • @MarkO'Connor That's why I didn't suffix my statement with "... you search illiterate moron!" :-) Duplicates are duplicates, regardless of how buried they are. – Duncan Jones Jan 28 '13 at 07:45

1 Answers1

1

The liquibase has several available goals. You neglected to specify "update".

  <executions>
    <execution>
      <phase>process-resources</phase>
      <goals>
        <goal>update</goal>
      </goals>
    </execution>
  </executions>

For a liquibase example see the following question:

Community
  • 1
  • 1
Mark O'Connor
  • 76,015
  • 10
  • 139
  • 185