Hi, I ran against the same issue - I changed both "source" and "target" to "1.5". The generated Java code does compile ok with 1.6 later.
It seems to me that the JSPC plugin hasn't been updated in ages - version 1.4.6 is from October 2006. For instance, on the web site the link to browse the source code is broken - you need to use FishEye which is mentioned on the "plugin collection home page" (http://mojo.codehaus.org/source-repository.html). Karsten On Feb 8, 2011, at 17:13 , Rémy wrote: > > Hello, > > I can't compile my jsp in Java 1.6. > > Here is my pom : > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.3.2</version> > <configuration> > <source>1.6</source> > <target>1.6</target> > </configuration> > </plugin> > <plugin> > <groupId>org.codehaus.mojo.jspc</groupId> > <artifactId>jspc-maven-plugin</artifactId> > <version>2.0-sib-alpha-3</version> > <executions> > <execution> > <id>jspc</id> > <goals> > <goal>compile</goal> > </goals> > </execution> > </executions> > <dependencies> > <dependency> > > <groupId>org.codehaus.mojo.jspc</groupId> > > <artifactId>jspc-compiler-tomcat6</artifactId> > <version>2.0-alpha-3</version> > </dependency> > </dependencies> > <configuration> > <source>1.6</source> > <target>1.6</target> > ... > </configuration> > </plugin> > > In the console, I have the following errors : > > 8 févr. 2011 15:54:27 org.apache.jasper.compiler.JDTCompiler generateClass > ATTENTION: Unknown source VM 1.6 ignored. > 8 févr. 2011 15:54:27 org.apache.jasper.compiler.JDTCompiler generateClass > ATTENTION: Unknown target VM 1.6 ignored. > 8 févr. 2011 15:54:28 org.apache.jasper.JspC processFile > INFO: Built File: \jsp\Controleur.jsp > > Thanks. > > Rémy > -- > View this message in context: > http://maven.40175.n5.nabble.com/jspc-maven-plugin-java-1-6-tp3376142p3376142.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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]
