Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink Static Weaving Maven Plugin Lifecycle Mapping Problem
EclipseLink Static Weaving Maven Plugin Lifecycle Mapping Problem [message #1734749] Sat, 11 June 2016 02:35 Go to next message
Jorge Campins is currently offline Jorge CampinsFriend
Messages: 2
Registered: June 2016
Junior Member
I am trying to configure EclipseLink static weaving using the Maven plugin.

I am following the instructions at https://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static_Weaving.

It works just fine in NetBeans but I cannot make it work in Eclipse. It says:

Plugin execution not covered by lifecycle configuration: de.empulse.eclipselink:staticweave-maven-plugin:1.0.0:weave (execution: default, phase: process-classes)

I am using Eclipse Mars.2 Release (4.5.2) and EclipseLink 2.6.1

You should find attached the pom.xml file.

I would really appreciate your help to solve this problem.
  • Attachment: pom.xml.txt
    (Size: 7.25KB, Downloaded 203 times)

[Updated on: Tue, 14 June 2016 17:41]

Report message to a moderator

Re: EclipseLink Static Weaving Maven Plugin Lifecycle Mapping Problem [message #1735659 is a reply to message #1734749] Tue, 21 June 2016 16:50 Go to previous message
Jorge Campins is currently offline Jorge CampinsFriend
Messages: 2
Registered: June 2016
Junior Member
I could finally solve the problem. I had to add a lifecycle-mapping plugin to the <pluginManagement> of the <build> of my project's pom.xml. Now the <build> looks like this:

<build>
    <plugins>
        <!-- some plugins -->
        <plugin>
            <groupId>de.empulse.eclipselink</groupId>
            <artifactId>staticweave-maven-plugin</artifactId>
            <version>1.0.0</version>
            <executions>
                <execution>
                    <phase>process-classes</phase>
                    <goals>
                        <goal>weave</goal>
                    </goals>
                    <configuration>
                        <logLevel>INFO</logLevel>
                    </configuration>
                </execution>
            </executions>
            <dependencies>
                <dependency>
                    <groupId>org.eclipse.persistence</groupId>
                    <artifactId>org.eclipse.persistence.jpa</artifactId>
                    <version>2.6.1</version>
                </dependency>
            </dependencies>
        </plugin>
        <!-- some more plugins -->
    </plugins>
    <pluginManagement>
        <plugins>
            <!--
                This plugin's configuration is used to store Eclipse m2e settings only.
                It has no influence on the Maven build itself.
            -->
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>de.empulse.eclipselink</groupId>
                                    <artifactId>staticweave-maven-plugin</artifactId>
                                    <versionRange>[1.0,)</versionRange>
                                    <goals>
                                        <goal>weave</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <execute/>
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build> 


I found the solution here.

BTW, it certainly wouldn't hurt to add a comment about this in the Configuring Static Weaving page of the wiki.


[Updated on: Tue, 21 June 2016 19:23]

Report message to a moderator

Previous Topic:JPA: EntityGraph -> FetchGroupException [CLOSED]
Next Topic:cascade.PERSIST on Map<Entity, Entity>
Goto Forum:
  


Current Time: Tue Apr 23 17:09:19 GMT 2024

Powered by FUDForum. Page generated in 0.02796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top