是否可以让 Maven 来测试编译 JSP?
我刚刚将我们的一个 Web 项目从 NetBeans ANT 转换为 Maven 2,以简化我们的依赖关系管理,事实证明这非常出色,但我没有意识到 Maven 默认情况下不会测试编译 JSP。
我找到了 JSPC maven 插件 来进行编译,但我实际上并不想要它创造的文物。我确实考虑过将它与 ant 任务插件一起使用来丢弃构建的 JSP,但想听听其他人是否有其他解决方案?
I just converted one of our web projects from NetBeans ANT to Maven 2 in order to ease our dependency management, this has proved brilliant, however I didn't realise that Maven will not test compile the JSP's by default.
I found the JSPC maven plugin which does the compiling, but I don't actually want the artefacts that it creates. I did think about using it with the ant task plugin to throw the built JSP's away but wanted to hear if anyone else has another solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将此插件调用放在单独的 Maven 配置文件中 - 并在需要时调用它 - 在部署到测试服务器之前在 Hudson 上调用 - 例如...然后只是 mvn clean ...
you can put this plugin call to separate maven profile - and call it when you need- on Hudson before deploy to test server -for example... And just mvn clean after...