Maven pom.xml保存 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (default) on project ycsb: Failed to create assembly: Artifact: com.yahoo.ycsb:riak-binding:jar:0.3.1-RC1-SNAPSHOT (included by module) does not have an artifact with a file. Please ensure the package phase is run before the assembly is generated. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (default) on project ycsb: Failed to create assembly: Artifact: com.yahoo.ycsb:riak-binding:jar:0.3.1-RC1-SNAPSHOT (included by module) does not have an artifact with a file. Please ensure the package phase is run before the assembly is generated.
在新建的Maven项目里遇到如上问题,使用stackoverflow上大神的解决方案一下就ok。
替换或新增如下内容
<plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>com.test.MainClassName</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <!-- packaging phase --> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin>
相关推荐
maven-assembly-plugin-2.2-beta-5.jar
Maven-assembly-plugin是maven中针对打包任务而提供的标准插件,可以实现自定义打包。主要提供如下功能: ● 提供一个把工程依赖元素、模块、网站文档等其他文件存放到单个归档文件里。 ● 打包成指定格式分发包,...
Spring Boot项目使用maven-assembly-plugin根据不同环境打包成tar.gz或者zip
java运行依赖jar包
java运行依赖jar包
maven-deploy-plugin-2.8.2.jar
maven-jxr-plugin-2.0.jar
maven-jar-plugin-3.1.1.jar
maven-antrun-plugin-3.0.0.jar
maven是个项目管理工具,如果我们不告诉它我们的代码要使用什么样的jdk版本编译的话,它就会用maven-compiler-plugin默认的jdk版本来进行处理,这样就容易出现版本不匹配,以至于可能导致编译不通过的问题。...
maven-resources-plugin-2.4.1.jar
maven-install-plugin-2.4.jar
maven-site-plugin-3.3.jar
maven-deploy-plugin-2.7.jar
maven-resources-plugin-3.1.0.jar
dockerfile-maven-plugin 支持 maven 直接发布项目至 docker 镜像库
maven-surefire-plugin-2.22.1.jar
解决tomcat8-maven-plugin-3.0-r1655215.jar阿里云同有的问题。放到路径org\apache\tomcat\maven\tomcat8-maven-plugin\3.0-r1655215\就可以了
maven-jxr-plugin-1.5.jar
maven-surefire-plugin-2.7.1.jar