【发布时间】:2017-01-01 09:27:12
【问题描述】:
我有他遵循 maven web 应用程序的结构
当我执行mvn install 命令时,它正在创建war 文件,但是如果您查看target directory/sureportal,您可以很容易地看到webapps 目录中的许多子文件夹丢失了。怎么了?
pom.xml 文件
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.nokia</groupId>
<artifactId>sureportal</artifactId>
<packaging>war</packaging>
<version>1.0.0</version>
<name>sureportal Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>sureportal</finalName>
</build>
</project>
【问题讨论】: