Hello, I can't compile 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-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 In debug mode I've got the following informations : [INFO] --- jspc-maven-plugin:2.0-alpha-3:compile (default-cli) @ FMBureautique --- [DEBUG] Created new class realm plugin>org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-3 [DEBUG] Populating class realm plugin>org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-3 [DEBUG] Included: org.codehaus.mojo.jspc:jspc-maven-plugin:maven-plugin:2.0-alpha-3 [DEBUG] Included: org.codehaus.mojo.jspc:jspc-compiler-tomcat6:jar:2.0-alpha-3 [DEBUG] Included: org.apache.tomcat:jasper:jar:6.0.18 [DEBUG] Included: org.apache.tomcat:servlet-api:jar:6.0.18 [DEBUG] Included: org.apache.tomcat:juli:jar:6.0.18 [DEBUG] Included: org.apache.tomcat:jsp-api:jar:6.0.18 [DEBUG] Included: org.apache.tomcat:el-api:jar:6.0.18 [DEBUG] Included: org.apache.tomcat:catalina:jar:6.0.18 [DEBUG] Included: org.apache.tomcat:annotations-api:jar:6.0.18 [DEBUG] Included: org.apache.tomcat:jasper-jdt:jar:6.0.18 [DEBUG] Included: org.apache.tomcat:jasper-el:jar:6.0.18 [DEBUG] Included: org.codehaus.mojo.jspc:jspc-compiler-api:jar:2.0-alpha-3 [DEBUG] Included: org.codehaus.groovy.maven:gmaven-mojo:jar:1.0 [DEBUG] Included: org.codehaus.groovy.maven.runtime:gmaven-runtime-api:jar:1.0 [DEBUG] Included: org.codehaus.groovy.maven.feature:gmaven-feature-api:jar:1.0 [DEBUG] Included: org.codehaus.groovy.maven.runtime:gmaven-runtime-1.5:jar:1.0 [DEBUG] Included: org.slf4j:slf4j-api:jar:1.5.6 [DEBUG] Included: org.codehaus.groovy.maven.feature:gmaven-feature-support:jar:1.0 [DEBUG] Included: org.codehaus.groovy.maven.runtime:gmaven-runtime-support:jar:1.0 [DEBUG] Included: org.codehaus.groovy.maven:gmaven-common:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.0.4 [DEBUG] Included: com.thoughtworks.qdox:qdox:jar:1.8 [DEBUG] Included: org.codehaus.groovy:groovy-all-minimal:jar:1.5.7 [DEBUG] Included: org.apache.ant:ant:jar:1.7.1 [DEBUG] Included: org.apache.ant:ant-launcher:jar:1.7.1 [DEBUG] Included: jline:jline:jar:0.9.94 [DEBUG] Included: org.apache.maven.shared:file-management:jar:1.1 [DEBUG] Included: org.apache.maven.shared:maven-shared-io:jar:1.0 [DEBUG] Included: commons-lang:commons-lang:jar:2.3 [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.9 [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 [DEBUG] Excluded: classworlds:classworlds:jar:1.1-alpha-2 [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.9 [DEBUG] Excluded: org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6 [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0 [DEBUG] Configuring mojo 'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-3:compile' with basic configurator --> ... [DEBUG] (s) source = 1.6 [DEBUG] (s) target = 1.6 ... [DEBUG] -- end configuration -- http://apache.multidist.com/tomcat/tomcat-6/v6.0.32/src/apache-tomcat-6.0.32-src.tar.gz In file org.apache.jasper.compiler.JDTCompiler.java (line 285). I don't understand !!!??? // Source JVM if(ctxt.getOptions().getCompilerSourceVM() != null) { String opt = ctxt.getOptions().getCompilerSourceVM(); if(opt.equals("1.1")) { settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_1); } else if(opt.equals("1.2")) { settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_2); } else if(opt.equals("1.3")) { settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_3); } else if(opt.equals("1.4")) { settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_4); } else if(opt.equals("1.5")) { settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); } else if(opt.equals("1.6")) { settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_6); } else if(opt.equals("1.7")) { settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_7); } else { log.warn("Unknown source VM " + opt + " ignored."); settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); } } else { // Default to 1.5 settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); } Thanks Rémy -- View this message in context: http://old.nabble.com/jspc-maven-plugin---java-1.6-tp30880869p30880869.html Sent from the mojo - user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email