Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29EDCF2C0 for ; Mon, 1 Apr 2013 18:04:44 +0000 (UTC) Received: (qmail 19091 invoked by uid 500); 1 Apr 2013 18:04:42 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 19020 invoked by uid 500); 1 Apr 2013 18:04:42 -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 19011 invoked by uid 99); 1 Apr 2013 18:04:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Apr 2013 18:04:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ctrueden.wisc@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vc0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Apr 2013 18:04:35 +0000 Received: by mail-vc0-f175.google.com with SMTP id hf12so2636872vcb.34 for ; Mon, 01 Apr 2013 11:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=lNU4Pb5hPk3rKlCeoIECNprQqMS1pwohnr3tVAvV1bM=; b=MhPA6YupnuxposjUxbNm2K+zmjn1JArmIhLJ4Vz/VHetXnUIwiYsrgjQ2Jvyn8/74G KG1gKsjRRIIHa5ZBDn6NgTUfjeRiVouGQ2oaBlY6nhtkZoateDR7uBF2Y0IjKfeiEKoG eQ+DkY9DWiRgH8bUck6yrfMUlmPbL6UpOb5IxZKqMjmxFEvPNDWy3CzZe8pP7xiVg4ot Yrb5lZloxzLWUQc0umSglb2RULU+p79nISzHfdvyYFGs1JTlJdyZUJHG1PuE4XCUxdKN WanlJaRKA6WJ6VUCDrlCMqNNtH2F8ADFYlSANsYZWMajh7d7F+XFMNZAZlde8U5bFJ+J z+pw== X-Received: by 10.58.210.200 with SMTP id mw8mr10126248vec.32.1364839454650; Mon, 01 Apr 2013 11:04:14 -0700 (PDT) MIME-Version: 1.0 Sender: ctrueden.wisc@gmail.com Received: by 10.58.97.135 with HTTP; Mon, 1 Apr 2013 11:03:44 -0700 (PDT) In-Reply-To: <1364839048.74993.YahooMailNeo@web122306.mail.ne1.yahoo.com> References: <1364839048.74993.YahooMailNeo@web122306.mail.ne1.yahoo.com> From: Curtis Rueden Date: Mon, 1 Apr 2013 13:03:44 -0500 X-Google-Sender-Auth: EG2oQYUueNjTfXFY9KdtyDOTPR0 Message-ID: Subject: Re: Compilation error on Maven getting started guide To: Maven Users List , Simon Peters Content-Type: multipart/alternative; boundary=047d7bd6bc06defe0f04d9507230 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bd6bc06defe0f04d9507230 Content-Type: text/plain; charset=ISO-8859-1 Hi Simon, > compiler-plugin:2.3.2:compile (default-compile) on project maven-intro: Compilation failure > /.../maven-intro/src/main/java/com/testing/App.java:[1,13] ';' expected What does "cat maven-intro/src/main/java/com/testing/App.java" show? Is the file syntactically valid? Regards, Curtis On Mon, Apr 1, 2013 at 12:57 PM, Simon Peters wrote: > Hi > > I tried to follow the Maven getting started guide, and ran into problems > when first trying to compile the generated project. > I generated the project with: > > mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes > -DgroupId=com.testing -DartifactId=maven-intro > > > using the defaults. > > mvn compile gives me this error: > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile > (default-compile) on project maven-intro: Compilation failure > /.../maven-intro/src/main/java/com/testing/App.java:[1,13] ';' expected > > I run Mac OS X 10.7.5. > > > env > JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home > LANG=de_CH.UTF-8 > > > java -version > java version "1.6.0_43" > Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-11M4203) > Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode) > > I guess it's an encoding problem. But how to quickly make it right? > Thanks! > > Simon --047d7bd6bc06defe0f04d9507230--