我对当前项目使用maven。现在,我有一战的依赖:如何使用tomcat运行maven war依赖项:运行?
<dependency>
<groupId>org.dojotoolkit</groupId>
<artifactId>dojo-war</artifactId>
<version>1.8.1</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
我没有任何问题,当我建立战争神器。对于这一点,我已经加入这个插件:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<overlays>
<overlay>
<groupId>org.dojotoolkit</groupId>
<artifactId>dojo-war</artifactId>
<targetPath>js/dojo-1.8.1</targetPath>
<excludes>
<exclude>WEB-INF/**</exclude>
<exclude>META-INF/**</exclude>
</excludes>
</overlay>
</overlays>
</configuration>
</plugin>
但是,当我运行下面的命令MVN我mvn tomcat7:run
不能看到任何JavaScript资源。它看起来像战争依赖没有被添加。
有人可以帮我吗?
在此先感谢。