Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,077 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plexus Archiver

Maven Central GitHub CI Reproducible Builds License

One API for creating and extracting archives — zip, jar, tar and their compressed variants — regardless of format. It is what maven-assembly-plugin, maven-jar-plugin and friends use underneath.

Built on Apache Commons Compress, adding the things a build tool needs on top of it: include/exclude scanning, file mappers and selectors, permission handling, reproducible output, duplicate strategies, modular JARs and archive size limits.

Status

Actively maintained. This is one of the most widely used artifacts in the Maven ecosystem, so public API is kept compatible and changes are deliberately conservative.

Using it

<dependency>
  <groupId>org.codehaus.plexus</groupId>
  <artifactId>plexus-archiver</artifactId>
  <version>4.12.0</version>
</dependency>

Check the badge above for the current version.

@Inject
@Named("zip")
Archiver archiver;

archiver.addDirectory(new File("src/main/resources"));
archiver.setDestFile(new File("target/out.zip"));
archiver.createArchive();

Components are JSR-330 beans, resolved by role hint (zip, jar, tar.gz, …). No Plexus container is involved — Eclipse Sisu replaced that years ago. The site lists every supported format and its hint.

Requirements

Java 8 or later.

Documentation

Contributing

See CONTRIBUTING.md. In short: mvn verify builds, and run mvn spotless:apply before pushing or CI will fail on formatting.

Please report security vulnerabilities privately — see SECURITY.md, not a public issue.

About

One API over zip, jar, tar and their compressed variants

Topics

Resources

Contributing

Security policy

Stars

53 stars

Watchers

5 watching

Forks

Releases

Used by

Contributors

Languages