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 C411A10805 for ; Mon, 2 Dec 2013 15:50:09 +0000 (UTC) Received: (qmail 50023 invoked by uid 500); 2 Dec 2013 15:47:52 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 49938 invoked by uid 500); 2 Dec 2013 15:47:51 -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 49897 invoked by uid 99); 2 Dec 2013 15:47:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2013 15:47:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mcculls@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-we0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2013 15:47:36 +0000 Received: by mail-we0-f180.google.com with SMTP id t61so6532970wes.11 for ; Mon, 02 Dec 2013 07:47:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=BEdE2Gynv04mbcYT236QcUxC4mpoaJkaxfBEGGkYwMo=; b=Wd7guoOTABOobpZfIeqOxLABA4fil9/UlzgxQNOVnsVcVgqo3URnIiXWJeEEZGRRmM BPC7aecU7qN0va5jMUgZh174RuJPtCbfr2o1g7e69OUCbgQq8Nz22PrfVqjqUq+gvgf7 xh+QeelX4ZHUdDoz05BmfsicXWLE4jlzsaJnugQ12FpoLqPgx82dufmI3NX5s6355GUO qi2IkxAP43o0sDbbmY55zgF4X7DYbUGsRbGVq3s7unlmzCBAk4uYf0pxI6afcF8HMZFq c4TRea+Iwel1UsEc7NEXOuCttepclsGV08r4J/ii5G6VPKZhUkN5q3WsN2Wpi6tGTJUl nmkw== X-Received: by 10.194.75.165 with SMTP id d5mr53415036wjw.18.1385999235291; Mon, 02 Dec 2013 07:47:15 -0800 (PST) Received: from tulloch.home (host81-159-250-59.range81-159.btcentralplus.com. [81.159.250.59]) by mx.google.com with ESMTPSA id uc18sm84606600wib.11.2013.12.02.07.47.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Dec 2013 07:47:14 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: Maven compilation error "is not within its bound" From: Stuart McCulloch In-Reply-To: Date: Mon, 2 Dec 2013 15:47:11 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <2AE8E0C1-C093-4FE2-BC31-506590C68F0D@gmail.com> References: <907042D6-12D5-4DD4-B13C-0A52000D6381@Kriegisch.name> <20131202095529.E960911C02D6@dd12814.kasserver.com> <4F0FF792-A7AF-47A1-A321-319224899644@gmail.com> To: Maven Users List X-Mailer: Apple Mail (2.1822) X-Virus-Checked: Checked by ClamAV on apache.org On 2 Dec 2013, at 15:31, Adrien Ruffi=E9 = wrote: > Not very well ... sorry it is a very bad problem because I'm cannot = upgrade > to Java 1.7 and all not give me satisfaction in compilation, so = Eclipse work > well ... I don't have idea You shouldn't need to upgrade to Java 1.7 to use the eclipse compiler in = Maven, just use the plugin configuration shown below and Maven will = compile your code using the eclipse compiler (also known as ecj). > -----Message d'origine----- > De : Stuart McCulloch [mailto:mcculls@gmail.com]=20 > Envoy=E9 : lundi 2 d=E9cembre 2013 15:35 > =C0 : Maven Users List > Objet : Re: Maven compilation error "is not within its bound" >=20 > On 2 Dec 2013, at 11:15, Adrien Ruffi=E9 = wrote: >=20 >> I have found more information here: >>=20 >> = http://stackoverflow.com/questions/19266797/different-compilation-beha >> vior-w >> ith-type-cast-between-eclipse-and-maven/19267547#19267547 >>=20 >> that say: >>=20 >> "Eclipse comes with its own Java compiler; Maven uses javac. Most of=20= >> the time, both accept the same code but generics are complicated and=20= >> compiler do have bugs. There are a couple of known bugs in javac of=20= >> Java 6 which cause problems, for example. >>=20 >> Oracle will not fix them. The solution is to use Java 7 to run Maven=20= >> and configure the maven-compiler-plugin the generate Java 6 byte code=20= >> (see Kumar Sambhav's answer)." >>=20 >>=20 >> But how I can use Eclipse to compile in Maven ? >=20 > See > = http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.= ht > ml - to use the eclipse compiler: >=20 > > maven-compiler-plugin > 3.1 > > eclipse > > > > org.codehaus.plexus > plexus-compiler-eclipse > 2.3 > > > >=20 >> Because I try this: >>=20 >> >> org.apache.maven.plugins >> maven-compiler-plugin >> 2.0.2 >> >> 1.6 >> 1.6 >> 1.6 >> true >> java -classpath=20 >> = ${env.M2_REPO}/org/eclipse/jdt/${org.eclipse.jdt.core.version}/core-${ >> or >> g.eclipse.jdt.core.version}.jar >> org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar=20 >> -sourcepath "src/main" >> >> >> >> org.eclipse.jdt >> core >> 3.3.0-v_771=20 >> >> >> >>=20 >> But I get the following error I attached file >>=20 >> Do you know how I can correctly build my project ? >>=20 >>=20 >>=20 >>=20 >> -----Message d'origine----- >> De : Alexander Kriegisch [mailto:alexander@kriegisch.name] Envoy=E9 :=20= >> lundi 2 d=E9cembre 2013 10:55 =C0 : users@maven.apache.org Objet : = Re:=20 >> Maven compilation error "is not within its bound" >>=20 >> Maven does not compile anything, the Java compiler does. The Maven=20 >> Compiler Plugin is used to configure compilation according to your = needs: >> http://maven.apache.org/plugins/maven-compiler-plugin/ >>=20 >> Maven default source/target version is 1.5, as you can see in the=20 >> parent >> POM: >> = http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?vi >> ew=3Dco& revision=3D1434744&content-type=3Dtext%2Fplain >>=20 >> If you want 1.6, please override like this: >>=20 >> >> org.apache.maven.plugins >> maven-compiler-plugin >> 3.0 >> >> 1.6 >> 1.6 >> >> >>=20 >> -- >> Alexander Kriegisch >>=20 >>=20 >> Adrien Ruffi=E9 schrieb am 02.12.2013 10:36: >>=20 >>> Hello Alexander, >>>=20 >>> Thank you very much for your response, >>>=20 >>> For maven version is 3.0.4, the property java.version is set to 1.6=20= >>> and my Eclipse project is 1.6 in compiler properties tab. >>> I cannot use Maven+Eclipse to package my webapp because, it is=20 >>> Jenkins with maven which package, but maven doesn't compile > correctly ... >>> The generics doesn't cause problem in the webapp (we have make=20= >>> several testcases), but were I can see which compiler source/target=20= >>> is used by Eclipse/Maven ? >>>=20 >>> Great thank again >>>=20 >>> Adrien >>>=20 >>> -----Message d'origine----- >>> De : Alexander Kriegisch [mailto:Alexander@Kriegisch.name] Envoy=E9 = :=20 >>> lundi 2 d=E9cembre 2013 10:24 =C0 : Maven Users List Objet : Re: = Maven=20 >>> compilation error "is not within its bound" >>>=20 >>> Do Eclipse and Maven use the same compiler source/target versions?=20= >>> Which is you Maven version? >>>=20 >>> To me it looks like you do have a problem with generics there. Maybe=20= >>> you use a new feature from a Java version greater than the one used = by > Maven. >>> Hard to speculate without source code and pom.xml though. >>>=20 >>> -- >>> Alexander Kriegisch >>>=20 >>>=20 >>> > Am 02.12.2013 um 10:13 schrieb Adrien Ruffi=E9 >>> <adriennolarsen@hotmail.fr>: >>> > >>> > Hello all, >>> > >>> > I have my webapp projet in Eclipse which compile correctly but=20= >>> when I try to > perform "mvn clean compile", several=20 >>> following logs >>> appears:=20 >>> > >>> > [ERROR] >>> > >>>=20 >> = \Java\Workspaces\Indigo\mycompanycrm4\mycompany-webapp\src\main\java\c >> om\myc >>> > >>>=20 >> = ompany\frontline\display\render\custom\ImageHandleBarRenderBoolCustom. >> java:[ >>> > 16,95] type parameter >>> > >>>=20 >> = com.mycompany.frontline.property.display.valuable.bean.BooleanMonoValu >> eBean >>> > is not within its bound >>> > >>> > My class implements correctly generic, inteface, inheritance = tree > ... >>> the >>> > application work correctly in my tomcat launched by Eclipse, = but=20 >>> when I try > to package it the compiler block ... >>> > I'm not able to change the code, do you know a solution to=20= >>> force Maven to > compile correctly ? Have you ever faced the=20 >>> problem ? >>> > >>> > I attach the log file, if it can be help > > Thank you=20 >>> very much > > Best regards, > > Adrien > > >=20 >>> = --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >>> > For additional commands, e-mail: users-help@maven.apache.org >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >>> For additional commands, e-mail: users-help@maven.apache.org >>>=20 >>>=20 >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >>> For additional commands, e-mail: users-help@maven.apache.org >>>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org >>=20 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org