Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 28477 invoked from network); 16 Apr 2009 15:10:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 15:10:56 -0000 Received: (qmail 17420 invoked by uid 500); 16 Apr 2009 15:10:55 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 17388 invoked by uid 500); 16 Apr 2009 15:10:55 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 17379 invoked by uid 99); 16 Apr 2009 15:10:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 15:10:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 15:10:45 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 4DA2D114FB for ; Thu, 16 Apr 2009 15:10:25 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: derby-commits@db.apache.org Date: Thu, 16 Apr 2009 15:10:25 -0000 Message-ID: <20090416151025.18381.84165@eos.apache.org> Subject: [Db-derby Wiki] Trivial Update of "DerbyOnTomcatWithSpringHibernate" by JoonasKoivunen X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification. The following page has been changed by JoonasKoivunen: http://wiki.apache.org/db-derby/DerbyOnTomcatWithSpringHibernate The comment on the change is: Removed generic maven javac mumble, replaced with link to more covering article. ------------------------------------------------------------------------------ * Artifact id: '''exproject''' * Packaging: '''pom''' - After a while you'll got yourself a new project; quickly add the two modules (exproject-core, exproject-webapp) to it by selecting the "exproject" in Project Explorer, selecting "Maven > New Maven Module Project" from the context menu. Fill the wizard as mentioned above but use packaging "jar" for exproject-core and packaging "war" for exproject-webapp. + After a while you'll got yourself a new project; quickly add the two modules (exproject-core, exproject-webapp) to it by selecting the "exproject" in Project Explorer, selecting "Maven > New Maven Module Project" from the context menu. Fill the wizard as mentioned above but use packaging '''jar''' for exproject-core and packaging '''war''' for exproject-webapp. ==== Post processing ==== By default the pom -files have explicit versions on each; however I've found it easier to have the modules inherit the version numbers. You can accomplish this by removing version -elements straight under the project -element (not under the parent -element!). + If you want to use generics in your project you need to configure the java compiler plugin used by maven. One example can be found at near bottom of [http://www.javaworld.com/javaworld/jw-12-2005/jw-1205-maven.html?page=3 page three of JavaWorld's Maven 2 Introduction] article. - If you want to use generics in your project you should add this snippet into your exproject/pom.xml file: - {{{ - - - - - - org.apache.maven.plugins - maven-compiler-plugin - true - - - 1.6 - 1.6 - - - - - - }}} ==== Adding dependencies ====