Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2826

Unable to use the openjpa-maven-plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 3.1.0
    • None
    • Enhance
    • None

    Description

      When I setup the maven build tool I am getting the error "Description Resource Path Location TypeDescription Resource Path Location TypePlugin execution not covered by lifecycle configuration: org.apache.openjpa:openjpa-maven-plugin:3.1.2:enhance (execution: default, phase: process-classes) pom.xml /IQM line 137 Maven Project Build Lifecycle Mapping Problem"

      I can run this manually from command and it works just fine: "mvn openjpa:enhance"

      But doesn't run automatically at build time with maven plugin...

      Here is my POM:

       

                        <plugin>

                            <groupId>org.apache.openjpa</groupId>

                            <artifactId>openjpa-maven-plugin</artifactId>

                            <version>3.1.2</version>

                            <configuration>

                                  <persistenceXmlFile>${basedir}/src/main/resources/META-INF/persistance.xml</persistenceXmlFile>

                                  <includes>*/entity/.class</includes>                       

                                <includes>*/entity/.class</includes>

                                <excludes>*/entity/XML.class</excludes>

                                <addDefaultConstructor>true</addDefaultConstructor>              

                                <enforcePropertyRestrictions>true</enforcePropertyRestrictions>

                            </configuration>

                            <executions>

                                <execution>

                                   <id>enhancer</id>

                                   <phase>process-classes</phase>

                                    <goals>

                                        <goal>enhance</goal>

                                    </goals>

                                </execution>

                            </executions>

                            <dependencies>

                                <dependency>

                                    <groupId>org.apache.openjpa</groupId>

                                    <artifactId>openjpa</artifactId>

                                    <version>3.1.0</version>

                                </dependency>

                            </dependencies>

                        </plugin>

      Attachments

        Activity

          People

            struberg Mark Struberg
            yoder7 Brian Yoder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: