简体   繁体   English

如果执行了mvn install命令,Spring MVC Maven应用程序将停止运行

[英]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.

相关问题 使用“ mvn install”命令进行Maven构建失败 - Maven Build Failure with “mvn install” command 使用mvn命令部署maven应用程序的问题 - problems deploying a maven application with mvn command Maven最新版本更新失败,并显示了mvn install命令 - Maven latest version update failed with mvn install command 从命令行“ MVN安装”时,如何配置Maven Web应用程序以在Glassfish上自动部署? - How do I configure a maven web application to auto-deploy on glassfish when I “mvn install” from command line? 即使在 spring 引导中安装了 maven,mvn 命令也不起作用 - mvn command not working even with maven installed in spring boot maven clean install等于mvn clean并在mvn安装后? - Maven clean install is equal mvn clean and after mvn install? Spring Roo:MVN全新安装 - Spring Roo : mvn clean install 执行Maven命令时发生异常,即mvn install - Exception occurs while executing maven command i.e. mvn install 是否有将Java Web App War转换为Maven War(pom.xml和mvn install命令)的插件或框架? - Is there a plugin or framework that converts java web app war to maven war (pom.xml and mvn install command)? 设置OS环境变量后,Apache Maven安装“'mvn'不被识别为内部或外部命令”? - Apache Maven install “'mvn' not recognized as an internal or external command” after setting OS environmental variables?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM