openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From infinity2heaven <infinity2hea...@gmail.com>
Subject openjpa build time enhance using maven plugin DOESN'T WORK
Date Mon, 06 Jun 2011 19:11:13 GMT
Been trying to run try to run openjpa:enhance goal but it works on one
persistence module and not other.

<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>openjpa-maven-plugin</artifactId>
	<version>1.2</version>
	<configuration>
		<includes>xxx/core/entity/*.class</includes>
		<addDefaultConstructor>true</addDefaultConstructor>
		<enforcePropertyRestrictions>true</enforcePropertyRestrictions>            
        
	</configuration>
	<executions>
		<execution>
			<id>JPA Enhance</id>
			<phase>process-classes</phase>
			<goals>
				<goal>enhance</goal>
			</goals>
		</execution>
	</executions>
	<dependencies>
		<dependency>
			<groupId>org.apache.openjpa</groupId>
			<artifactId>openjpa</artifactId>
			<version>${openjpa.version}</version>
		</dependency>
	</dependencies>
</plugin>

Exception thrown
Execution default-cli of goal
org.codehaus.mojo:openjpa-maven-plugin:1.2:enhance failed: MetaDataFactory 
could not be configured (conf.newMetaDataFactoryInstance() returned null).
This might mean that no configuration properties were found. Ensure that you
have a META-INF/persistence.xml file, that it is available in your
classpath, or that the properties file you are using for.

The persistence.xml is in the CLASSPATH, yes. Everything is just fine I
double checked several times. Another module of mine doesn't have this
issue.

What am I missing?


--
View this message in context: http://openjpa.208410.n2.nabble.com/openjpa-build-time-enhance-using-maven-plugin-DOESN-T-WORK-tp6446547p6446547.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message