美文网首页
Maven常见异常

Maven常见异常

作者: DimonHo | 来源:发表于2018-06-14 19:22 被阅读13次

1. 异常现象:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-cli) on project commons: The packaging for this project did not assign a file to the build artifact -> [Help 1]

解决方案:

当maven执行 install:install 出现如上错误时,则尝试改用 install 执行
当maven执行 deploy:deploy 出现如上错误时,则尝试改用 deploy 执行


2. 异常现象

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.2.RELEASE:repackage (default) on project commons: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.0.2.RELEASE:repackage failed: Unable to find main class -> [Help 1]

解决方案

在pom.xml中添加

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
    </build>

相关文章

  • Maven常见异常

    1. 异常现象: 解决方案: 当maven执行 install:install 出现如上错误时,则尝试改用 ins...

  • Maven问答

    Maven 常见问题 Failed to execute goal org.apache.maven.plugin...

  • Swagger 访问异常 控制台报错

    环境 swagger版本: 2.9.2 maven信息: 异常信息 处理办法 添加maven配置: 原理 1.5....

  • 常见异常

    在写java程序时,我们会经常遇到几个特定的异常类,包括在面试的时候面试官也会问常见的异常类 现在我列举几个常见的...

  • 常见异常

    异常的继承结构: 基类为Throwable,Error和Exception继承Throwable,RuntimeE...

  • 常见异常

    1、远程仓库连接不上,异常如下: Exception in thread "main" org.apache.ja...

  • maven 打包异常

    此异常是在idea中执行打包时报的异常,该异常时由于我再进行项目本地打包时,抛出的异常,因为刚才进行了clean ...

  • 异常

    几种常见的异常:1.常见的异常现象: 空指针异常类:NullPointerException 类型强制转换异常:C...

  • Android常见异常

    Android常见异常 异常分为编译时异常和运行时异常,当前主要说一下运行时异常,常见的异常如下:NullPoin...

  • 异常处理

    一.常见异常 二.异常分类 三.异常处理

网友评论

      本文标题:Maven常见异常

      本文链接:https://www.haomeiwen.com/subject/bdcueftx.html