Maven插件运行报 The packaging for this project did not assign a file to the build artifact

问题描述

报错展示

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-cli) on project gxf-util-cache: The packaging for this project did not assign a file to the build artifact

操作步骤

Maven插件运行报 The packaging for this project did not assign a file to the build artifact_第1张图片

问题分析

解决方案

mvn install -Dmaven.test.skip=true

gaoyutong@gaoyutongdeMini gxf-util-cache % mvn install -Dmaven.test.skip=true
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.gxf.util:gxf-util-cache:jar:1.0.0
[WARNING] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.artifactId' for org.quartz-scheduler:quartz:jar with value '*' does not match a valid id pattern. @ org.springframework.boot:spring-boot-dependencies:2.1.5.RELEASE, /Users/gaoyutong/.m2/repository/org/springframework/boot/spring-boot-dependencies/2.1.5.RELEASE/spring-boot-dependencies-2.1.5.RELEASE.pom, line 2608, column 25
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building gxf-util-cache 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ gxf-util-cache ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/gaoyutong/Gitee/gaoxinfu/gxf-util/gxf-util-cache/src/main/resources
[INFO] skip non existing resourceDirectory /Users/gaoyutong/Gitee/gaoxinfu/gxf-util/gxf-util-cache/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ gxf-util-cache ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ gxf-util-cache ---
[INFO] Not copying test resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ gxf-util-cache ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ gxf-util-cache ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ gxf-util-cache ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ gxf-util-cache ---
[INFO] Installing /Users/gaoyutong/Gitee/gaoxinfu/gxf-util/gxf-util-cache/target/gxf-util-cache-1.0.0.jar to /Users/gaoyutong/.m2/repository/com/gxf/util/gxf-util-cache/1.0.0/gxf-util-cache-1.0.0.jar
[INFO] Installing /Users/gaoyutong/Gitee/gaoxinfu/gxf-util/gxf-util-cache/pom.xml to /Users/gaoyutong/.m2/repository/com/gxf/util/gxf-util-cache/1.0.0/gxf-util-cache-1.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.591s
[INFO] Finished at: Fri Aug 25 07:04:28 CST 2023
[INFO] Final Memory: 20M/437M
[INFO] ------------------------------------------------------------------------
gaoyutong@gaoyutongdeMini gxf-util-cache % 

Maven插件运行报 The packaging for this project did not assign a file to the build artifact_第2张图片

你可能感兴趣的:(maven,maven,plugin,java,开发语言)