我需要配置从maven货物插件运行的jetty以将其指向静态内容,Ive浏览了码头文档并且无法看到如何将配置应用于码头作为货物的一部分运行。我要配置的Web应用程序部分,将资源基地作为我建的这个版本的模块角应用:为静态内容配置maven货物插件码头容器
<execution>
<id>start jetty - angular webapp</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<container>
<containerId>jetty7x</containerId>
<type>embedded</type>
</container>
<webApp>
<resourceBases>
<contextPath>/</contextPath>
<resourceBase>../calculator-web/dist</resourceBase>
</resourceBases>
</webApp>
<configuration>
<properties>
<cargo.servlet.port>11000</cargo.servlet.port>
</properties>
</configuration>
</configuration>
</execution>
码头开始,但它似乎忽略了这个配置,我只是得到我的索引404。 html文件。
请问有人能指点我正确的方向吗?