JIRA [email protected] wrote: > > > [ > http://jira.codehaus.org/browse/MJSPC-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255071#action_255071 > ] > > Milan Gerza commented on MJSPC-45: > ---------------------------------- > > Setting > > <compile>false</compile> > <includeInProject>false</includeInProject> > > worked for me - the jsp files were compiled anyway. > > >> The includeInProject property does not work >> ------------------------------------------- >> >> Key: MJSPC-45 >> URL: http://jira.codehaus.org/browse/MJSPC-45 >> Project: Maven 2.x JSPC Plugin >> Issue Type: Bug >> Affects Versions: 2.0-alpha-1 >> Reporter: Morten Lauritsen Khodabocus >> >> (Actually, affects version 2.0-alpha-3, but that one is not in the list) >> Here's my plugin configuration: >> <plugin> >> <groupId>org.codehaus.mojo.jspc</groupId> >> <artifactId>jspc-maven-plugin</artifactId> >> <version>2.0-alpha-3</version> >> <configuration> >> <includeInProject>false</includeInProject> >> <source>1.5</source> >> <target>1.5</target> >> </configuration> >> <dependencies> >> <dependency> >> <!-- Use the Tomcat 6 JSP compiler --> >> <groupId>org.codehaus.mojo.jspc</groupId> >> <artifactId>jspc-compiler-tomcat6</artifactId> >> <version>2.0-alpha-3</version> >> </dependency> >> </dependencies> >> <executions> >> <execution> >> <goals> >> <goal>compile</goal> >> </goals> >> </execution> >> </executions> >> </plugin> >> with this configuration, I get the following message in the maven log: >> [WARNING] Compiled JSPs will not be added to the project and web.xml will >> not be modified, either because includeInProject is set to false or >> because >> the project's packaging is not 'war'. >> but in the packaged war, the WEB-INF\classes\jsp\ directory contains the >> compiled jsp classes! > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the administrators: > http://jira.codehaus.org/secure/Administrators.jspa > - > For more information on JIRA, see: http://www.atlassian.com/software/jira > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > >
I am wondering how setting 'compile' to false can trigger the compilation, as this setting explicitly asks JSP compiler NOT TO COMPILE. At least in my configuration it works as excepted and documented - only Java sources are generated, they are not compiled. Could you please clarify how did you manage not to include compiled classes? I doubt the configuration you provided works as you describe. -- View this message in context: http://old.nabble.com/-jira--Created%3A-%28MJSPC-45%29-The-includeInProject-property-does-not-work-tp29043466p31047285.html Sent from the mojo - dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
