Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » maven static weaving plugin
maven static weaving plugin [message #512989] Mon, 08 February 2010 09:04 Go to next message
Tom Eugelink is currently offline Tom Eugelink
Messages: 807
Registered: July 2009
Senior Member
Is there already a maven plugin for static weaving? I couldn't find one.

Tom
Re: maven static weaving plugin [message #514258 is a reply to message #512989] Sat, 13 February 2010 06:08 Go to previous message
Ari Meyer is currently offline Ari Meyer
Messages: 136
Registered: July 2009
Senior Member
No actual plugin, but one that uses Ant (or the Java call, commented out):

> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>JPA Enhancement</id>
> <phase>process-classes</phase>
> <configuration>
> <tasks>
> <taskdef
> name="weave"
> classname=" org.eclipse.persistence.tools.weaving.jpa.StaticWeaveAntTask "
> classpathref="maven.test.classpath"/>
> <weave
> loglevel="FINEST"
> source="${basedir}/target/classes"
> target="${basedir}/target/classes"
> persistenceinfo="${basedir}/src/main/resources">
> <classpath refid="maven.test.classpath"/>
> </weave>
>
> <!--
> <java classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeave "
> classpathref="maven.test.classpath"
> fork="true">
> <arg
> line="-loglevel FINEST -persistenceinfo src/main/resources target/classes target/classes"/>
> </java>
> -->
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>

Cheers!
Ari

tbee wrote:
> Is there already a maven plugin for static weaving? I couldn't find one.
>
> Tom
Previous Topic:externalize eclipselink.target-database property
Next Topic:Lazy relationship is intiated, when it shouldn't be
Goto Forum:
  


Current Time: Tue Oct 21 02:30:42 GMT 2014

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

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