Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Running CanonicalModelProcessor in maven causes 100% CPU usage
Running CanonicalModelProcessor in maven causes 100% CPU usage [message #655282] Fri, 18 February 2011 18:20
Fericit Bostan is currently offline Fericit Bostan
Messages: 68
Registered: June 2010
Member
I'm using EclipseLink 2.1.1 with maven for my build process. I am attempting to generate the Canonical Model but each time that Maven invokes the CanonicalModelProcessor the build simply hangs and the Java process consumes 100% of the CPU.

I have other projects that I am building in the same fashion without any issues, but for some reason this project just doesn't want to generate the model.

Here is my maven pom.xml file with the eclipselink specifics:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>1.3.5</version>
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>${eclipselink.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>JPA Metamodel Generation</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/apt </outputDirectory>
<compilerArguments> -Aeclipselink.persistencexml=src/main/resources/META-INF/per sistence.xml </compilerArguments>
<processors>
<processor> org.eclipse.persistence.internal.jpa.modelgen.CanonicalModel Processor </processor>
</processors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>JPA Enhancement</id>
<phase>process-classes</phase>
<configuration>
<tasks>
<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>

Thanks for the assistance.
Previous Topic:@OneToMany MappedBy behaviour - list not initialized
Next Topic:How to configure batch-writing parameter for sybase
Goto Forum:
  


Current Time: Wed Aug 20 22:30:21 EDT 2014

Powered by FUDForum. Page generated in 0.01424 seconds