Testing 在maven jasmine插件中提供html文件

Testing 在maven jasmine插件中提供html文件,testing,jasmine,Testing,Jasmine,我在jasmine中有一个测试AngularJS指令的规范。此指令需要从服务器检索的html文件。因此,在代码中,我通过路径src/main/webapp/partial/components/user form.html通过XMLHttpRequest检索它 当我运行mvnjasmine:bdd并转到localhost:8234时,它就会工作。然后从http://localhost:8234/src/main/webapp/partial/components/user-html 问题是,当我

我在jasmine中有一个测试AngularJS指令的规范。此指令需要从服务器检索的html文件。因此,在代码中,我通过路径
src/main/webapp/partial/components/user form.html
通过
XMLHttpRequest
检索它

当我运行
mvnjasmine:bdd
并转到
localhost:8234
时,它就会工作。然后从
http://localhost:8234/src/main/webapp/partial/components/user-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
中访问它吗?

奇怪的是,你的插件想要在
target
中做任何事情。通常,只有等级库流道放置在那里。您对
jsSrcDir
的设置是什么?我现在记不起确切的设置,目前也无法访问代码,但jsSrcDir肯定不涉及target。