简体   繁体   English

如何告诉 maven 插件我的 JSP 位于 `/src/main/webapp/WEB-INF/jsp` 而不是 `src/main/scripts`?

[英]How can I tell maven plugin that my JSPs live in `/src/main/webapp/WEB-INF/jsp` and not `src/main/scripts`?

I have a Java / Spring MVC project that's built with Maven (using Eclipse/STS).我有一个使用 Maven(使用 Eclipse/STS)构建的 Java / Spring MVC 项目。

Everything works great and my JSP files live in this folder...一切正常,我的 JSP 文件位于此文件夹中...

.../myproject/src/main/webapp/WEB-INF/jsp

I'm trying to use The Apache Sling JSPC Maven Plugin to compile the JSPs into classes, and deliver them in the WAR's /classes folder.我正在尝试使用Apache Sling JSPC Maven 插件将 JSP 编译成类,并将它们传递到 WAR 的 /classes 文件夹中。

When I run the maven build with the plugin in place, I get this error...当我使用插件运行 maven 构建时,我收到此错误...

java.lang.IllegalStateException: basedir.../myproject/src/main/scripts does not exist

I appears the plugin expects my JSPs to live in /src/main/scripts .我似乎插件希望我的 JSP 存在于/src/main/scripts中。

How can I tell maven and the plugin that my JSPs live in /src/main/webapp/WEB-INF/jsp and not src/main/scripts ?如何告诉 maven 和我的 JSP 位于/src/main/webapp/WEB-INF/jsp而不是src/main/scripts的插件?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 webapp / WEB-INF或src / main / resources下的资源文件? - resource files under webapp/WEB-INF or src/main/resources? 无法从控制器中的src/main/webapp/WEB-INF/resources/img访问图像文件以在jsp中显示 - Can't access image file from src/main/webapp/WEB-INF/resources/img in controller to display in jsp maven webapp将jsps放在/ WEB-INF / jsp中 - maven webapp to place jsps in /WEB-INF/jsp Tomcat Servlet:src / main / webapp / WEB-INF时为404状态,而root / WEB-INF时为无错误 - Tomcat Servlet: 404 status when src/main/webapp/WEB-INF and no error when root/WEB-INF Maven将applicationContext.xml从src / main / resources复制到target / myproject / WEB-INF - Maven copying applicationContext.xml from src/main/resources to target/myproject/WEB-INF junitError使用URL [file:src / main / webapp / WEB-INF / spring / spring-jpa.xml]中定义的名称为'entityManagerFactory'的bean创建错误: - junitError Error creating bean with name 'entityManagerFactory' defined in URL [file:src/main/webapp/WEB-INF/spring/spring-jpa.xml]: java.io.FileNotFoundException:类路径资源[src / main / webapp / WEB-INF / spring / appServlet / servlet-context.xml] - java.io.FileNotFoundException: class path resource [src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml] src / main / resources下的哪些文件以及WEB-INF下的文件? - which files under src/main/resources and files under WEB-INF? src / main / resources下的文件位于target / WEB-INF / classes下 - Files under src/main/resources goes under target/WEB-INF/classes applicationContext.xml从src / main / resources复制到/ WEB-INF / classes - applicationContext.xml is being copied to /WEB-INF/classes from src/main/resources
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM