[英]Spring MVC maven application stopping by if had executed a mvn install command
When i do mvn install on my project, the last line is apperaring and not moving forward and below is my mvn dependencies 当我在项目上执行mvn安装时,最后一行正在评估,并且没有向前移动,下面是我的mvn依赖项
-INFO in ch.qos.logback.classic.joran.JoranConfigurator@632f9712 - Registering current configuration as safe fallback point ch.qos.logback.classic.joran.JoranConfigurator@632f9712中的-INFO-将当前配置注册为安全的回退点
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] SLF4J:实际绑定的类型为[ch.qos.logback.classic.util.ContextSelectorStaticBinder]
<!-- Logging -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback-version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback-version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j-version}</version>
<scope>runtime</scope>
</dependency>
Do you specify that your project is a webapp? 您是否指定您的项目是Webapp? You need to put
<packaging>war</packaging>
您需要放置
<packaging>war</packaging>
in your pom.xml to have install creating a war file. 在pom.xml中进行安装以创建war文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.