Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 14932 invoked from network); 21 Aug 2008 22:47:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2008 22:47:38 -0000 Received: (qmail 94270 invoked by uid 500); 21 Aug 2008 22:47:28 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 94209 invoked by uid 500); 21 Aug 2008 22:47:28 -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 94198 invoked by uid 99); 21 Aug 2008 22:47:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 15:47:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ben.jakbot@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 22:46:32 +0000 Received: by an-out-0708.google.com with SMTP id d40so34271and.79 for ; Thu, 21 Aug 2008 15:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=nXOmQ65V2HFK8LGHt7T/zhoUnP7BbwXIBhv/k6L68Ck=; b=RxKITF9e7R6J/nMZ3eZEgISFyX8nixnC0ld52paPB4M1SziGGewp9DteRUlAwZt0qp wupQCqU0lgVbdZQnjneIvxf/VRXY2aOtFKrgbkY1fa+ftScv06JL0dtgWp05Do4c2eEo oSfvrGR8zqZRtQA6TB4qB3rEm2JIRYz9jxSpY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=qvdtUxP+WmL/BqPDMXkRGj/749EhArxzdclqZ+8vzRAhQhb6I+b7OdsnbbqQk11TCI c+REpH9yKN0YQjEJswR622QNnPmf/seVKFELFr0CztRj5JZ/a/kj5vppCYMG9/GiWaOj /4Q3IOXDCBnItMhfjEFBBmdLh7cpxy9Ut9AkI= Received: by 10.100.48.19 with SMTP id v19mr588300anv.71.1219358804414; Thu, 21 Aug 2008 15:46:44 -0700 (PDT) Received: by 10.100.32.11 with HTTP; Thu, 21 Aug 2008 15:46:44 -0700 (PDT) Message-ID: <74a4f4670808211546l4cd3d706s84e3a7acd66d2fe4@mail.gmail.com> Date: Thu, 21 Aug 2008 15:46:44 -0700 From: "Ben Jakbot" To: users@maven.apache.org Subject: starting with maven MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org hi I try to start with maven and I'm sinking in tons of documentation. Docs are a good thing, but I somehow miss the very obvious. Right now I'm going through a the nice manual calling "Better Builds with Maven". Basically I ran the following commands: $mvn archetype:create -DgroupId=com.mycompany.app \ -DartifactId=my-app $ cd my-app $ mvn compile $ mvn test $ mvn test-compile $ mvn package $ mvn install which magically generated my a project structure a hello world kind of class and a test class for it. Then it compiled all the classes so that I now have $ ls target/ classes maven-archiver my-app-1.0-SNAPSHOT.jar surefire-reports test-classes So my super simple task is complete this little roundtrip by running the app "my-app-1.0-SNAPSHOT.jar". And the question is how can I run it? Now I get the following error: $ java target/my-app-1.0-SNAPSHOT.jar Exception in thread "main" java.lang.NoClassDefFoundError: target/my-app-1/0-SNAPSHOT/jar I hoped not to have to mess around with classpathes. Could somebody help me with this? thanks in advance ben --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org