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

repackage() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4646a8bf_854a_faee_f8af_d749f44f3f62["repackage()"]
  b7a8e881_79b6_d5c1_64d5_cab664ceda0c["execute()"]
  b7a8e881_79b6_d5c1_64d5_cab664ceda0c -->|calls| 4646a8bf_854a_faee_f8af_d749f44f3f62
  54ecfd29_bb88_111b_8efc_0f43958d69aa["getRepackager()"]
  4646a8bf_854a_faee_f8af_d749f44f3f62 -->|calls| 54ecfd29_bb88_111b_8efc_0f43958d69aa
  adc21541_00d6_3bb9_0bdf_acc77a9dd172["parseOutputTimestamp()"]
  4646a8bf_854a_faee_f8af_d749f44f3f62 -->|calls| adc21541_00d6_3bb9_0bdf_acc77a9dd172
  c99c7840_ef70_2d97_ef33_2b8b717cc77e["updateArtifact()"]
  4646a8bf_854a_faee_f8af_d749f44f3f62 -->|calls| c99c7840_ef70_2d97_ef33_2b8b717cc77e
  style 4646a8bf_854a_faee_f8af_d749f44f3f62 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 187–203

	private void repackage() throws MojoExecutionException {
		Artifact source = getSourceArtifact(this.classifier);
		File target = getTargetFile(this.finalName, this.classifier, this.outputDirectory);
		if (source.getFile() == null) {
			throw new MojoExecutionException(
					"Source file is not available, make sure 'package' runs as part of the same lifecycle");
		}
		Repackager repackager = getRepackager(source.getFile());
		Libraries libraries = getLibraries(this.requiresUnpack);
		try {
			repackager.repackage(target, libraries, parseOutputTimestamp());
		}
		catch (IOException ex) {
			throw new MojoExecutionException(ex.getMessage(), ex);
		}
		updateArtifact(source, target, repackager.getBackupFile());
	}

Domain

Subdomains

Calls

Called By

  • execute()

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free