1

我在茉莉花中有一个测试 AngularJS 指令的规范。该指令需要从服务器检索的 html 文件。所以在代码中我通过XMLHttpRequestfrom path检索它src/main/webapp/partial/components/user-form.html

当我跑步mvn jasmine:bdd并前往时,它可以工作localhost:8234。然后从 中检索 user-form.html http://localhost:8234/src/main/webapp/partial/components/user-form.html

问题是当我尝试运行时mvn jasmine:test,它失败并显示错误消息:java.io.FileNotFoundException: /Users/amorfis/idea-workspace/mc5/mc5-web-ui/target/jasmine/src/main/webapp/partial/components/user-form.html

有什么想法可以将其复制到target/jasmine/src..以便可以在其中访问mvn jasmine:test吗?

4

0 回答 0