Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 38591 invoked from network); 16 Aug 2006 08:17:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2006 08:17:28 -0000 Received: (qmail 71040 invoked by uid 500); 16 Aug 2006 08:17:21 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 71000 invoked by uid 500); 16 Aug 2006 08:17:20 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 34246 invoked by uid 99); 16 Aug 2006 07:54:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Date: Wed, 16 Aug 2006 03:54:09 -0400 Message-Id: <200608160754.k7G7s9pR001690@copa.pajato.com> From: Paul Michael Reilly To: users@maven.apache.org Subject: Maven2/TestApp/Classpath testing and structuring issues Reply-to: pmr@pajato.com X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (copa.pajato.com [127.0.0.1]); Wed, 16 Aug 2006 03:54:09 -0400 (EDT) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I am building a long lived Java application (as opposed to a short lived filter application) that is spawned as a subprocess of some other application (likely not a JVM). Commands and responses are streamed via System.in and System.out, fwiw. I use the Maven 2 quick start scaffold for this project so far. In AppTest, I spawn the app during setup via something like: Runtime.getRuntime().exec( "java -cp the:class:path com.foo.App" ). Getting the classpath right for this is proving daunting. For example I use JAXB2 and will probably use a few other Maven 2 plug-ins to create and test the app before I package and ship the app in a jar file. So I see two issues immediately: how to set up the classpath for testing and how to structure the target jar file: whether to include the dependent libraries (like JAXB) or gracefully fail if the deployed environment is missing required libraries, something I would rather avoid. So, being new to the Maven2 world, I'm looking for some guidance on how a more experienced Maven2 hacker would approach these issues. Thanks, -pmr --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org