Well,
Sorry I have try with 2 following plugin setting but nothing work correctly:
Java.version property = 1.6
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId>
-->
<!--
<artifactId>maven-compiler-plugin</artifactId> -->
<!-- <version>3.1</version> -->
<!-- <configuration> -->
<!-- <source>${java.version}</source> -->
<!-- <target>${java.version}</target> -->
<!--
<encoding>${encoding.format}</encoding> -->
<!-- </configuration> -->
<!-- </plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<verbose>true</verbose>
<fork>true</fork>
<executable>${JAVA_HOME}/bin/javac</executable>
<compilerVersion>${java.version}</compilerVersion>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${encoding.format}</encoding>
</configuration>
</plugin>
-----Message d'origine-----
De : Alexander Kriegisch [mailto:[email protected]]
Envoyé : lundi 2 décembre 2013 10:55
À : [email protected]
Objet : Re: Maven compilation error "is not within its bound"
Maven does not compile anything, the Java compiler does. The Maven Compiler
Plugin is used to configure compilation according to your needs:
http://maven.apache.org/plugins/maven-compiler-plugin/
Maven default source/target version is 1.5, as you can see in the parent
POM:
http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?view=co&
revision=1434744&content-type=text%2Fplain
If you want 1.6, please override like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
--
Alexander Kriegisch
Adrien Ruffié schrieb am 02.12.2013 10:36:
> Hello Alexander,
>
> Thank you very much for your response,
>
> For maven version is 3.0.4, the property java.version is set to 1.6 and my
> Eclipse project is 1.6 in compiler properties tab.
> I cannot use Maven+Eclipse to package my webapp because, it is Jenkins
> with maven which package, but maven doesn't compile correctly ...
> The generics doesn't cause problem in the webapp (we have make
> several testcases), but were I can see which compiler source/target is
> used by Eclipse/Maven ?
>
> Great thank again
>
> Adrien
>
> -----Message d'origine-----
> De : Alexander Kriegisch [mailto:[email protected]]
> Envoyé : lundi 2 décembre 2013 10:24
> À : Maven Users List
> Objet : Re: Maven compilation error "is not within its bound"
>
> Do Eclipse and Maven use the same compiler source/target versions? Which
> is you Maven version?
>
> To me it looks like you do have a problem with generics there. Maybe 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.
>
> --
> Alexander Kriegisch
>
>
> > Am 02.12.2013 um 10:13 schrieb Adrien Ruffié
> <[email protected]>:
> >
> > Hello all,
> >
> > I have my webapp projet in Eclipse which compile correctly but when I
> try to
> > perform "mvn clean compile", several following logs
> appears:
> >
> > [ERROR]
> >
>
\Java\Workspaces\Indigo\mycompanycrm4\mycompany-webapp\src\main\java\com\myc
> >
>
ompany\frontline\display\render\custom\ImageHandleBarRenderBoolCustom.java:[
> > 16,95] type parameter
> >
>
com.mycompany.frontline.property.display.valuable.bean.BooleanMonoValueBean
> > is not within its bound
> >
> > My class implements correctly generic, inteface, inheritance tree ...
> the
> > application work correctly in my tomcat launched by Eclipse, but when
> I try
> > to package it the compiler block ...
> > I'm not able to change the code, do you know a solution to force
> Maven to
> > compile correctly ? Have you ever faced the problem ?
> >
> > I attach the log file, if it can be help
> >
> > Thank you very much
> >
> > Best regards,
> >
> > Adrien
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]