Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89E9F4494 for ; Tue, 7 Jun 2011 00:18:37 +0000 (UTC) Received: (qmail 94429 invoked by uid 500); 7 Jun 2011 00:18:37 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 94401 invoked by uid 500); 7 Jun 2011 00:18:37 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Delivered-To: moderator for users@openjpa.apache.org Received: (qmail 66088 invoked by uid 99); 6 Jun 2011 19:11:39 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of infinity2heaven@gmail.com) Date: Mon, 6 Jun 2011 12:11:13 -0700 (PDT) From: infinity2heaven To: users@openjpa.apache.org Message-ID: <1307387473818-6446547.post@n2.nabble.com> Subject: openjpa build time enhance using maven plugin DOESN'T WORK MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Been trying to run try to run openjpa:enhance goal but it works on one persistence module and not other. org.codehaus.mojo openjpa-maven-plugin 1.2 xxx/core/entity/*.class true true JPA Enhance process-classes enhance org.apache.openjpa openjpa ${openjpa.version} 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.