一.背景 最近的项目在用maven 进行install的时候,发现老师在控制台输出警告:[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!虽然并不影响项目的正常运行和install,但是对于处女座的我来说一点都不想看到这警告的发生.所以就研究了一下,找到解决办法,现在分享给大家. 二.解决方式 在maven项目的pom.xm
如果一个项目,你想安装jar包到本地仓库,可能会报The packaging for this project did not assign a file to the build artifact 从这个错误可以延伸出maven 生命周期,插件目标绑定和插件前缀的知识 一.maven生命周期 maven分为clean,default和site3套生命周期,互不影响. 每个生命周期分为不同阶段,后面的阶段依赖于前面的阶段 比如default生命周期的主要阶段:validate,compile ,
最近在使用支付宝.财付通这样的第三方支付,在使用支付宝过程中需要引入官方SDK方便开发,使用以下命令来将本地的jar装载到maven仓库中. 这里有几点需要注意点,我使用Windows10时,使用powershell 死活不可以,报错误:[ERROR] The goal you specified requires a project to execute but there is no POM in this directory 无奈使用cmd 就没问题了另外需要注意的是-Dfile的参数中不
关于Maven项目build时出现No compiler is provided in this environment的处理 新配置的Eclipse环境,运行现有项目没问题,一日,从svn上检出了一批 maven 项目,结果发现 无法执行 run as maven install 命令,提示 码节选: [ERROR] COMPILATION ERROR : [INFO] -----------------------------------------------------------