Devskiller / jpa2ddl

JPA Schema Generator Plugin
Apache License 2.0
109 stars 33 forks source link

jpa2ddl : Workspace build error in Eclipse #30

Closed mo-costello closed 4 years ago

mo-costello commented 5 years ago

Greetings,

I have just integrated the jpa2ddl maven plugin to automate the scripts generation with Hibernate 5.2.3 and the database migration with Flyway.

While the scripts generation/execution works fine when running a maven build on the project in Eclipse. The plugin integration has caused the following error after every file save or workspace build :

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'emap-lib'.
Missing parameter for pluginExecutionFilter. groupId, artifactId, versionRange and goals must be specificed, but found: groupId = 'com.devskiller.jpa2ddl'
artifactId = 'jpa2ddl-maven-plugin'
versionRange = '0.9.12'
goals = '[]'

Below is the relevant pom section :

<plugin>
    <groupId>com.devskiller.jpa2ddl</groupId>
    <artifactId>jpa2ddl-maven-plugin</artifactId>
    <extensions>true</extensions>
    <configuration>
        <packages>
            <package>com.sample.entities</package>
        </packages>
        <formatOutput>true</formatOutput>
        <delimiter>;</delimiter>
        <outputPath>${basedir}/src/main/resources/db/migration/</outputPath>
        <action>UPDATE</action>
    </configuration>
</plugin>

Even when specifying the goal "generate", Eclipse Maven Project Builder will still fail.

Would you please advise ? Thank you and best regards.

m-pavel commented 4 years ago

Plugin jar contains invalid lifecycle-mapping-metadata.xml (META-INF/m2e/lifecycle-mapping-metadata.xml) with empty 'goals' property. As 'dirty' fix you can remove this file from plugin jar .m2/repository/com/devskiller/jpa2ddl/jpa2ddl-maven-plugin/0.9.12/jpa2ddl-maven-plugin-0.9.12.jar. As valid fix takari-lifecycle-plugin need to be updated.

jkubrynski commented 4 years ago

Update will be deployed with the next release

jkubrynski commented 3 years ago

Available in version 0.10.0

vitalivu992 commented 2 years ago

Still found it in 0.10.0 The parameters 'packages' for goal com.devskiller.jpa2ddl:jpa2ddl-maven-plugin:0.10.0:generate are missing or invalid