Home / Function/ updateArtifact() — spring-boot Function Reference

updateArtifact() — spring-boot Function Reference

Architecture documentation for the updateArtifact() function in RepackageMojo.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  c99c7840_ef70_2d97_ef33_2b8b717cc77e["updateArtifact()"]
  4646a8bf_854a_faee_f8af_d749f44f3f62["repackage()"]
  4646a8bf_854a_faee_f8af_d749f44f3f62 -->|calls| c99c7840_ef70_2d97_ef33_2b8b717cc77e
  19b12b64_3f18_25a7_18f2_4eddf51bc136["attachArtifact()"]
  c99c7840_ef70_2d97_ef33_2b8b717cc77e -->|calls| 19b12b64_3f18_25a7_18f2_4eddf51bc136
  style c99c7840_ef70_2d97_ef33_2b8b717cc77e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java lines 223–236

	private void updateArtifact(Artifact source, File target, File original) {
		if (this.attach) {
			attachArtifact(source, target, original);
		}
		else if (source.getFile().equals(target) && original.exists()) {
			String artifactId = (this.classifier != null) ? "artifact with classifier " + this.classifier
					: "main artifact";
			getLog().info(String.format("Updating %s %s to %s", artifactId, source.getFile(), original));
			source.setFile(original);
		}
		else if (this.classifier != null) {
			getLog().info("Creating repackaged archive " + target + " with classifier " + this.classifier);
		}
	}

Domain

Subdomains

Calls

  • attachArtifact()

Called By

Frequently Asked Questions

What does updateArtifact() do?
updateArtifact() is a function in the spring-boot codebase.
What does updateArtifact() call?
updateArtifact() calls 1 function(s): attachArtifact.
What calls updateArtifact()?
updateArtifact() is called by 1 function(s): repackage.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free