|
Hi
When i launch m2eclipse 0.94 from RAD7, i have folloing error message. I haven't this error message from MSDOS How avoid it ERROR] Mojo: org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile FAILED for project: com.p:WEB-ENLIGNE-WebService:war:1.0 Reason: C:\Code\c3.java:[566,25] generics are not supported in -source 1.3 (try -source 1.5 to enable generics) ArrayList> liste = new ArrayList>(); C:\Code\ManagerImpl.java:[562,25] generics are not supported in -source 1.3 (try -source 1.5 to enable generics) private ArrayList fillDocs(Document documentEntree, Z2) { C:\Code\MessageException.java:[3,7] 'class' or 'interface' expected no more tokens - could not parse error message: C:\Code\MessageException.java:28: 'class' or 'interface' expected ^ C:\Code\AdministrationLog4jAction.java:[45,22] generics are not supported in -source 1.3 (try -source 1.5 to enable generics) Vector loggers = null; Dans mon POM j'ai org.apache.maven.plugins maven-compiler-plugin C:\Produits\IBM\SDP70\jdk\bin\javac 1.5 1.5 1.5 Regards Philippe |
|
The error message says it. You need to define source 1.5 for the compiler
plugin. http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html /Anders On Tue, Jan 5, 2010 at 22:24, Philippe Couas <[hidden email]> wrote: > Hi > > When i launch m2eclipse 0.94 from RAD7, i have folloing error message. > I haven't this error message from MSDOS > How avoid it > > > ERROR] > > Mojo: > > org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile > > FAILED for project: > > com.p:WEB-ENLIGNE-WebService:war:1.0 > > Reason: > > C:\Code\c3.java:[566,25] generics are not supported in -source 1.3 > (try -source 1.5 to enable generics) ArrayList> liste = new ArrayList>(); > > C:\Code\ManagerImpl.java:[562,25] generics are not supported in -source 1.3 > (try -source 1.5 to enable generics) > private ArrayList fillDocs(Document documentEntree, Z2) { > > C:\Code\MessageException.java:[3,7] 'class' or 'interface' expected > > no more tokens - could not parse error message: > C:\Code\MessageException.java:28: 'class' or 'interface' expected > ^ > > C:\Code\AdministrationLog4jAction.java:[45,22] generics are not supported > in -source 1.3 > (try -source 1.5 to enable generics) > Vector loggers = null; > > Dans mon POM j'ai > > > org.apache.maven.plugins > maven-compiler-plugin > > > C:\Produits\IBM\SDP70\jdk\bin\javac > > 1.5 > 1.5 > 1.5 > > > > > > Regards > Philippe |
|
Hi,
My Pom.xml contains org.apache.maven.plugins maven-compiler-plugin C:\Produits\IBM\SDP70\jdk\bin\javac 1.5 1.5 1.5 Taht's works from command line but not with m2eclipseu Regards Philippe > Message du 05/01/10 22:48 > De : "Anders Hammar" > A : "Maven Users List" , "Philippe Couas" > Copie à : > Objet : Re: m2eclipse error > > The error message says it. You need to define source 1.5 for the compiler plugin. > http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html > > /Anders > > wrote: > Hi > > When i launch m2eclipse 0.94 from RAD7, i have folloing error message. > I haven't this error message from MSDOS > How avoid it > > > ERROR] > > Mojo: > > org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile > > FAILED for project: > > com.p:WEB-ENLIGNE-WebService:war:1.0 > > Reason: > > C:\Code\c3.java:[566,25] generics are not supported in -source 1.3 > (try -source 1.5 to enable generics) ArrayList> liste = new ArrayList>(); > > C:\Code\ManagerImpl.java:[562,25] generics are not supported in -source 1.3 > (try -source 1.5 to enable generics) > private ArrayList fillDocs(Document documentEntree, Z2) { > > C:\Code\MessageException.java:[3,7] 'class' or 'interface' expected > > no more tokens - could not parse error message: C:\Code\MessageException.java:28: 'class' or 'interface' expected > ^ > > C:\Code\AdministrationLog4jAction.java:[45,22] generics are not supported in -source 1.3 > (try -source 1.5 to enable generics) > Vector loggers = null; > > Dans mon POM j'ai > > > org.apache.maven.plugins > maven-compiler-plugin > > > C:\Produits\IBM\SDP70\jdk\bin\javac > > 1.5 > 1.5 > 1.5 > > > > > > Regards > Philippe > |
|
my experience is that I need to set the right compliance mode 1.5 or
1.6 for the eclipse project to work correctly with m2eclipse. the 'source' and 'target' of compile-plugin configuration inside pom.xml had no influence on m2eclipse. maybe a bug though - I do not know. with regards Kristian On Wed, Jan 6, 2010 at 11:42 AM, Philippe Couas <[hidden email]> wrote: > Hi, > > My Pom.xml contains > > > > org.apache.maven.plugins > maven-compiler-plugin > > > C:\Produits\IBM\SDP70\jdk\bin\javac > > 1.5 > 1.5 > 1.5 > > > > > Taht's works from command line but not with m2eclipseu > > Regards > Philippe > > > > > > >> Message du 05/01/10 22:48 >> De : "Anders Hammar" >> A : "Maven Users List" , "Philippe Couas" >> Copie à : >> Objet : Re: m2eclipse error >> >> The error message says it. You need to define source 1.5 for the compiler plugin. >> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html >> >> /Anders >> >> > On Tue, Jan 5, 2010 at 22:24, Philippe Couas > wrote: >> > Hi >> >> When i launch m2eclipse 0.94 from RAD7, i have folloing error message. >> I haven't this error message from MSDOS >> How avoid it >> >> >> ERROR] >> >> Mojo: >> >> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile >> >> FAILED for project: >> >> com.p:WEB-ENLIGNE-WebService:war:1.0 >> >> Reason: >> >> C:\Code\c3.java:[566,25] generics are not supported in -source 1.3 >> (try -source 1.5 to enable generics) ArrayList> liste = new ArrayList>(); >> >> C:\Code\ManagerImpl.java:[562,25] generics are not supported in -source 1.3 >> (try -source 1.5 to enable generics) >> private ArrayList fillDocs(Document documentEntree, Z2) { >> >> C:\Code\MessageException.java:[3,7] 'class' or 'interface' expected >> >> no more tokens - could not parse error message: C:\Code\MessageException.java:28: 'class' or 'interface' expected >> ^ >> >> C:\Code\AdministrationLog4jAction.java:[45,22] generics are not supported in -source 1.3 >> (try -source 1.5 to enable generics) >> Vector loggers = null; >> >> Dans mon POM j'ai >> >> >> org.apache.maven.plugins >> maven-compiler-plugin >> >> >> C:\Produits\IBM\SDP70\jdk\bin\javac >> >> 1.5 >> 1.5 >> 1.5 >> >> >> >> >> >> Regards >> Philippe > >> -- Kristian Meier + Saumya Sharma + Sanuka Meier Vadakkethu House, Edayanmula West PO - 689532, Pathanamthitta District, Kerala, INDIA tel: +91 468 2319577 protect your privacy while searching the net: www.ixquick.com _=_ q(-_-)p '_) (_` /__/ \ _(<_ / )_ (__\_\_|_/__) --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
The source and target are used to set the eclipse settings per project.
On Wed, Jan 6, 2010 at 4:49 AM, kristian <[hidden email]> wrote: > my experience is that I need to set the right compliance mode 1.5 or > 1.6 for the eclipse project to work correctly with m2eclipse. the > 'source' and 'target' of compile-plugin configuration inside pom.xml > had no influence on m2eclipse. maybe a bug though - I do not know. > > with regards Kristian > > > On Wed, Jan 6, 2010 at 11:42 AM, Philippe Couas <[hidden email]> wrote: >> Hi, >> >> My Pom.xml contains >> >> >> >> org.apache.maven.plugins >> maven-compiler-plugin >> >> >> C:\Produits\IBM\SDP70\jdk\bin\javac >> >> 1.5 >> 1.5 >> 1.5 >> >> >> >> >> Taht's works from command line but not with m2eclipseu >> >> Regards >> Philippe >> >> >> >> >> >> >>> Message du 05/01/10 22:48 >>> De : "Anders Hammar" >>> A : "Maven Users List" , "Philippe Couas" >>> Copie à : >>> Objet : Re: m2eclipse error >>> >>> The error message says it. You need to define source 1.5 for the compiler plugin. >>> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html >>> >>> /Anders >>> >>> >> On Tue, Jan 5, 2010 at 22:24, Philippe Couas >> wrote: >>> >> Hi >>> >>> When i launch m2eclipse 0.94 from RAD7, i have folloing error message. >>> I haven't this error message from MSDOS >>> How avoid it >>> >>> >>> ERROR] >>> >>> Mojo: >>> >>> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile >>> >>> FAILED for project: >>> >>> com.p:WEB-ENLIGNE-WebService:war:1.0 >>> >>> Reason: >>> >>> C:\Code\c3.java:[566,25] generics are not supported in -source 1.3 >>> (try -source 1.5 to enable generics) ArrayList> liste = new ArrayList>(); >>> >>> C:\Code\ManagerImpl.java:[562,25] generics are not supported in -source 1.3 >>> (try -source 1.5 to enable generics) >>> private ArrayList fillDocs(Document documentEntree, Z2) { >>> >>> C:\Code\MessageException.java:[3,7] 'class' or 'interface' expected >>> >>> no more tokens - could not parse error message: C:\Code\MessageException.java:28: 'class' or 'interface' expected >>> ^ >>> >>> C:\Code\AdministrationLog4jAction.java:[45,22] generics are not supported in -source 1.3 >>> (try -source 1.5 to enable generics) >>> Vector loggers = null; >>> >>> Dans mon POM j'ai >>> >>> >>> org.apache.maven.plugins >>> maven-compiler-plugin >>> >>> >>> C:\Produits\IBM\SDP70\jdk\bin\javac >>> >>> 1.5 >>> 1.5 >>> 1.5 >>> >>> >>> >>> >>> >>> Regards >>> Philippe >> >>> > > > > -- > Kristian Meier + Saumya Sharma + Sanuka Meier > Vadakkethu House, > Edayanmula West PO - 689532, > Pathanamthitta District, Kerala, INDIA > > tel: +91 468 2319577 > > protect your privacy while searching the net: www.ixquick.com > > _=_ > q(-_-)p > '_) (_` > /__/ \ > _(<_ / )_ > (__\_\_|_/__) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
M2eclipse embedded Maven and "command line" Maven are not the same, so they
apply different default settings, from here the discrepancy between the two behaviours. Possible solutions are: - explicitly set the source and target version as Anders Hammad said before or (better, after me) - configure m2eclipse to use the "normal", not embedded, maven, to do that in eclipse: windows->preferences->maven->installations, add your maven install dir, and check it. regards, Andrea |
| Powered by Nabble | Edit this page |
