I have now bit more detail as what the exact problem is : when I run a mvn -X , the jscp args is printing wrong directory for -uriroot.
[DEBUG] Jscp args: ["-uriroot", "/home/myuser1/codebase/sandbox/teams/team1/dev3/mymodule/src/main/webapp", "-d", This is due the fact that I am having a non-mavenised directory structure, . The uriroot need to be pointing to mymodule/vfe. I have configured warSourceDirectory and webXml to point to right place. But I am not sure, how to make uriroot point to correct location. Seems I am missing some configuration. Pl. let know, if you have idea on this. Thanks, Murali S.Murali wrote: > > Hi, > I using jspc-maven-plugin pre-compile my JSP in a war packaged module. I > am using following plugin configuration > > <plugin> > <groupId>org.codehaus.mojo.jspc</groupId> > <artifactId>jspc-maven-plugin</artifactId> > <executions> > <execution> > <id>check-jsp-source</id> > <phase>process-sources</phase> > <goals> > <goal>compile</goal> > </goals> > </execution> > </executions> > <configuration> > <webXml>../mymodule/vfe/WEB-INF/web.xml</webXml> > <warSourceDirectory>../mymodule/vfe</warSourceDirectory> > </configuration> > > <!-- Use the Tomcat 6 JSP compiler --> > <dependencies> > <dependency> > <groupId>org.codehaus.mojo.jspc</groupId> > <artifactId>jspc-compiler-tomcat6</artifactId> > <version>2.0-SNAPSHOT</version> > </dependency> > </dependencies> > </plugin> > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <configuration> > <webXml>../ventweb/target/jspweb.xml</webXml> > </configuration> > </plugin> > > On building module, I am getting following exception. > > [INFO] Compiling JSP source files to > /home/dev1/codebase/sandbox/teams/work/dev3/mymodule/target/jsp-source > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] The -uriroot option must specify a pre-existing directory > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.jasper.JasperException: The -uriroot option must specify a > pre-existing directory > at org.apache.jasper.JspC.execute(JspC.java:1128) > at > org.codehaus.mojo.jspc.compiler.tomcat6.JspCompilerImpl.compile(JspCompilerImpl.java:109) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:52) > at > org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:714) > at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:583) > at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:476) > at > org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:104) > at > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:77) > at > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158) > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:182) > at > org.codehaus.mojo.jspc.CompilationMojoSupport.execute(CompilationMojoSupport.groovy:333) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > I have no clue how to set the -uriroot to have these JSPs pre-compiled. > Pl. let know if you any idea on this. > > Thanks, Murali > -- View this message in context: http://www.nabble.com/Issue-with-jspc-maven-plugin---specifying-uriroot-tp14338706s177p14370257.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]
