Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 39920 invoked from network); 24 May 2010 06:47:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 May 2010 06:47:26 -0000 Received: (qmail 761 invoked by uid 500); 24 May 2010 06:47:26 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 603 invoked by uid 500); 24 May 2010 06:47:24 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 595 invoked by uid 99); 24 May 2010 06:47:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 06:47:24 +0000 X-ASF-Spam-Status: No, hits=-0.9 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 May 2010 06:47:18 +0000 Received: (qmail 9288 invoked from network); 24 May 2010 06:46:57 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 24 May 2010 06:46:57 -0000 Message-Id: From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Maven2 cgen task problem Date: Mon, 24 May 2010 09:46:56 +0300 References: X-Mailer: Apple Mail (2.936) Try running Maven with more debug output, e.g.: mvn -e -X Maybe there will be some more clues. Andrus On May 24, 2010, at 9:26 AM, Gary Jarrel wrote: > Hi All > > I started working today on integrating our application with another > database. So as expected I created another node and another tree in > the modeler, added just one table. And updated my Maven cgen task as > follows: > > > org.apache.cayenne.plugins > maven-cayenne-plugin > ${cayenne.version} > > > ${basedir}/src/main/webapp/WEB-INF/conf/cayenne/ > comoneMap.map.xml > ${basedir}/src/main/webapp/WEB-INF/conf/ > cayenne > ${basedir}/src/bootstrap/superclass.vm superTemplate> > ${project.build.sourceDirectory} > au.com.jarrel.comone.site.db.entity.auto > > > > However every time I run the generator now I get the following error: > > [INFO] Error generating classes: > Embedded error: [v.3.0 Apr 30 2010 11:29:33] Wrong DataMap format, > last processed tag: > Content is not allowed in prolog. > > I've tried to put the the extra data map into a different folder to > separate the 2 datamaps, this did not help. > > If I remove the additionaMaps attribute the generation runs, however > the class in the main datamap which has a relationship to a class in > the new datamap that I have created does not generate properly, as the > generation process does does not seem to find the new class which > belongs to the datamap. > > If however I let the modeller do the generation, then everything > runs fine. > > Any thoughts? > > Thank you > > Gary >