From dev-return-21440-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu Jan 10 20:33:35 2013 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C2AC1EEBB for ; Thu, 10 Jan 2013 20:33:35 +0000 (UTC) Received: (qmail 37336 invoked by uid 500); 10 Jan 2013 20:33:35 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 37311 invoked by uid 500); 10 Jan 2013 20:33:35 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 37302 invoked by uid 99); 10 Jan 2013 20:33:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 20:33:35 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kwsutter@gmail.com designates 209.85.215.54 as permitted sender) Received: from [209.85.215.54] (HELO mail-la0-f54.google.com) (209.85.215.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 20:33:29 +0000 Received: by mail-la0-f54.google.com with SMTP id fp12so1052011lab.41 for ; Thu, 10 Jan 2013 12:33:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=29ley4wke3gdDazwobor+3PCTpQezSUsvA4XBdm+z9k=; b=cHtDuCvEcSvPUu+dGxeXqSDc/OKFBoBhkoMPF36V47/cT7QaQC85US+tDYqjQ0N6ed C0lZIPb31nXScs8ofx42CIw+ECELKzn6DG3YdmrbrLUzfbq3+vm0Oo+2/Qjtj26WbmU8 4vHdcPV68o+63UG9fP02zu0bl5ZNIAt9HGAwtgKsFnfzWVKGB9kqAC2MxRCtkWdvtkhe r6RJBmLZafXmZ1lEBfOLGMBn3eXL9+/cpSWhyNlrSaiQZExmvnms1wg4P6mJS8zKxrKy WxPwX1SASfExdJG+JL7AE4kTzdcrSJcWD8hKAdxcafRVAhqn/dAX2+BHZ78+exx3yn4+ sjwg== Received: by 10.152.144.4 with SMTP id si4mr12604579lab.10.1357849989083; Thu, 10 Jan 2013 12:33:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.99.233 with HTTP; Thu, 10 Jan 2013 12:32:48 -0800 (PST) In-Reply-To: References: From: Kevin Sutter Date: Thu, 10 Jan 2013 14:32:48 -0600 Message-ID: Subject: Re: metamodel with maven compiler 3.0? To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=e89a8f22c3f741f2a604d2f51669 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f22c3f741f2a604d2f51669 Content-Type: text/plain; charset=ISO-8859-1 Hi Romain, I agree that it should have been compatible. When I look at the documentation for the setting [1], it looks like also needs to be set to "true". But, I can't tell where this processing changed between 2.x and 3.x of the plugin. The OpenJPA build scripts don't seem to use this particular construct, so I guess I can't really comment. I would try setting to "true" and see if that works. If not, this seems to be a topic for the Maven community. The OpenJPA documentation [2] just indicates that the compiler option is required to generate the metamodel classes. It doesn't prescribe or require maven or ant or whatever scripting mechanism. Thanks, Kevin [1] http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html [2] http://people.apache.org/~mikedd/nightly.builds/apache-openjpa-2.3.0-SNAPSHOT/docs/docbook/manual.html#d5e5275 On Thu, Jan 10, 2013 at 10:38 AM, Romain Manni-Bucau wrote: > Hi Kevin, > > i would have expected it to be compatible and was looking for some input > why this compatibility was broken updating maven compiler plugin ( > > http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11130&version=18537 > doesn't > show anything which could imply it) > > *Romain Manni-Bucau* > *Twitter: @rmannibucau * > *Blog: **http://rmannibucau.wordpress.com/*< > http://rmannibucau.wordpress.com/> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > *Github: https://github.com/rmannibucau* > > > > 2013/1/10 Kevin Sutter > > > Hi Romain, > > Is there some reason why you must use Maven 3.0? Since OpenJPA > identified > > it's requirement as 2.5.1, I'm not clear on what the question or issue > is. > > If you want to figure out how OpenJPA can support Maven 3.0, then > > submitting a proposed patch would be beneficial and welcome. > > > > Thanks, > > Kevin > > > > On Wed, Jan 9, 2013 at 7:33 AM, Romain Manni-Bucau < > rmannibucau@gmail.com > > >wrote: > > > > > Hi guys, > > > > > > > > > did you check the metamodel was correctly generated with maven compiler > > > 3.0? with 2.5.1 it works smoothly but with 3.0 nothing is generated > > > > > > here the config > > > > > > > > > > > > org.apache.maven.plugins > > > maven-compiler-plugin > > > 2.5.1 > > > > > > > > > generate-entity-metamodel > > > generate-sources > > > > > > compile > > > > > > > > > 1.6 > > > 1.6 > > > true > > > true > > > true > > > > > > > > > > > > true > > > > > > > > > > > > ${project.build.directory}/generated-sources > > > > > > > > > > > > compile > > > compile > > > > > > compile > > > > > > > > > 1.6 > > > 1.6 > > > > > > > > > > > > > > > > > > org.apache.openjpa > > > openjpa > > > 2.2.0 > > > > > > > > > > > > > > > > > > *Romain Manni-Bucau* > > > *Twitter: @rmannibucau * > > > *Blog: **http://rmannibucau.wordpress.com/*< > > > http://rmannibucau.wordpress.com/> > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > > *Github: https://github.com/rmannibucau* > > > > > > --e89a8f22c3f741f2a604d2f51669--