精华内容
下载资源
问答
  • maven打包出错

    2021-05-26 02:40:41
    [ERROR] After correcting the problems, you can resume the build with the comman 原因: 缺失jar包的pom文件 解决方法: 将本地maven仓库对应的jar包文件夹删除,然后重新maven update,将pom文件下载下来。...

    Failed to execute goal on project common: Could not resolve dependencies

    [ERROR] Failed to execute goal on project common: Could not resolve dependencies for project com:common:jar:1.0.0: Failed to collect dependencies at com.ztb:ztb-xdocreport:jar:1.0: Failed to read artifact descriptor for com.ztb:xdocreport:jar:1.0: Could not transfer artifact com.ztb:xdocreport:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/com/ztb/xdocreport/1.0/xdocreport-1.0.pom: Unknown host repo.maven.apache.org -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the comman
    

    在这里插入图片描述
    原因:
    缺失jar包的pom文件
    解决方法:
    将本地maven仓库对应的jar包文件夹删除,然后重新maven update,将pom文件下载下来。
    如果是maven私库,查看对应jar包目录下是否有pom文件;如果没有,验证上传jar包时是否有勾选 Generate a POM file with these coordinates
    在这里插入图片描述

    展开全文
  • maven 打包出错

    2012-03-06 10:18:30
    今天公司测试自动发布系统,采用的是maven打包编译的 第一步:先把项目里用到的第三方jar包都采用maven 仓库来管理,把一些网上没有的jar,传到nexus上。   第二步:打包发现出现“Maven报错“未结束的字符串字...

    今天公司测试自动发布系统,采用的是maven打包编译的

    第一步:先把项目里用到的第三方jar包都采用maven 仓库来管理,把一些网上没有的jar,传到nexus上。

     

    第二步:打包发现出现“Maven报错“未结束的字符串字面值”,说的好像是缺少分号,网上一下,解决方法如下:

    在pom.xml中加入以下片段:

    <build>
    
        <plugins>
    
       <plugin>
    
         <artifactId>maven-compiler-plugin</artifactId>
    
         <configuration>
    
           <source>1.6</source>
    
           <target>1.6</target>
    
           <encoding>UTF-8</encoding>
    
         </configuration>
    
        </plugin>
    
      </plugins>
    
      </build>

     同时保证build path里的JRE设置与pom.xml内一致。

     

    这时使用maven命令行打包已经ok,但是程序开发人员在eclipse项目上仍然有个项目报错符号,如下图:


     

    这是查看Problems 窗口:

    (这个窗口还是比较重要的,有时报错就看看,其实你能看懂的,把错误信息往Google复制一下)


    右击项目--> maven--> Update Project configuration ...

    (如果没有这个菜单在maven里,请先mvn eclipse:eclipse 一下,OK,问题解决了)

     


    展开全文
  • eclipse中maven打包出错改正

    在使用 eclipse 中的 maven 插件打包时报错,报错内容:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 

    意思是说编译器中只提供了 JRE 运行环境,没有提供 JDK 编译环境,让我们把 JRE 改正 JDK 就行。


    操作:【Window】-->【Prefrences】-->【Java】-->【Installed JREs】



    到此结束啦~~

    展开全文
  • 文章目录1 maven打包出错1.1 错误信息1.2 解决方式1.2.1 问题原因1.2.2 解决方式 1 maven打包出错 1.1 错误信息 -------------------------------------------------- [ERROR] Failed to execute goal org.apache....

    1 maven打包出错

    1.1 错误信息

    Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project baseline: Input length = 1
    -> [Help 1]

    1.2 操作步骤(通过终端terminal打包)

    --------------------------------------------------
    D:\work\util\baseline>mvn clean install -Dmaven.test.skip=true
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------< cn.hzp.util:baseline >------------------------
    [INFO] Building baseline 1
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ baseline ---
    [INFO] Deleting D:\work\util\baseline\target
    [INFO]
    [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ baseline ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Using 'UTF-8' encoding to copy filtered properties files.
    [INFO] Copying 1 resource
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  1.690 s
    [INFO] Finished at: 2020-12-21T11:06:52+08:00
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project baseline: Input length = 1
     -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    

    1.3 问题原因

    springboot版本和maven版本冲突

    1.4 解决方式

    1.4.1 方式一:降低maven-resources版本

    • 修改pom文件,降低maven-resources版本为3.1.0
    • 注1:如果是通过终端terminal敲命令打包的,请打开一个新的终端terminal
    • 注2:如果是通过右侧maven管理窗口打包的,请重启idea
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <!--修改版本-->
                    <version>3.1.0</version>
                </plugin>
    

    1.4.2 方式二:降低springboot版本

    • 修改pom文件,降低springboot版本为2.3.7.RELEASE
    • 注1:如果是通过终端terminal敲命令打包的,请打开一个新的终端terminal
    • 注2:如果是通过右侧maven管理窗口打包的,请重启idea
        <parent>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.3.7.RELEASE</version>
        </parent>
    
    展开全文
  • maven打包出错: Failed to clean project: Failed to delete 出现这种错误,通常是由于您已启动了另一个tomcat 进程,导致报错,关闭tomcat进程即可。
  • springboot2.4:maven打包出错(3.2.0:resources) [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ baseline --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO...
  • 在使用maven打包时,出现以下错误 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project flow-traffic-statistics: Unable to generate classpath: org....
  • maven 打包出错

    2020-06-05 11:22:28
    cloud 项目中的公共实体类,需要单独打包,供其他项目使用,但是打包时一直报错 报错如下 ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.2:jar (default-jar) on project cloud_...
  • 自己整理的maven打包出现错误的解决办法、含有截图等 附带maven搭建私服等资料
  • maven打包出错 springboot

    2020-01-03 12:04:12
    [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.9.RELEASE:repackage (default) on project springboot-test: Execution default of goal org.springframework.boot:s...
  • maven打包出错: [ERROR] /G:/ijworkspace/shopPrj/src/main/java/com/cfsm/common/file/image/ImageUtils.java:[4,32] 程序包com.sun.image.codec.jpeg不存在 org.apache.maven.plugins maven-compiler-plugin ...
  • Jenkins Maven打包出错异常的解决方法
  • Maven打包出错报错如:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2 解决方案:在pom.xml中build节点添加以下内容: <plugin> <groupId>org.apache.maven....
  • idea+Maven 打包出错

    千次阅读 2018-06-12 05:47:16
    在项目构建的时候遇到了这样的问题:Failedto execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile(default-compile) on project taotao-manager-pojo: Compilation failure&lt;properties...
  • 在用maven进行打包的时候出现错误 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project yuyun: There are test failures. Please refer to E:\...
  • 记一个springboot打包出错的踩坑记录: 一, 现象 报错内容类似如下: [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.0.RELEASE:repackage (default) on project ...
  • [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information ...
  • 1.maven打包出错,错误信息如下  [ERROR] /D:/WorkSpace/MyEclipse2018/ipp-mod-ecard/ipp-mod-ecard-web/src/main/java/...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 10,559
精华内容 4,223
关键字:

maven打包出错