Need advice about which tool to choose?Ask the StackShare community!
Docker vs Apache Maven: What are the differences?
Docker: Enterprise Container Platform for High-Velocity Innovation. The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere; Apache Maven: Apache build manager for Java projects. Maven allows a project to build using its project object model (POM) and a set of plugins that are shared by all projects using Maven, providing a uniform build system. Once you familiarize yourself with how one Maven project builds you automatically know how all Maven projects build saving you immense amounts of time when trying to navigate many projects.
Docker belongs to "Virtual Machine Platforms & Containers" category of the tech stack, while Apache Maven can be primarily classified under "Java Build Tools".
Some of the features offered by Docker are:
- Integrated developer tools
- open, portable images
- shareable, reusable apps
On the other hand, Apache Maven provides the following key features:
- Simple project setup that follows best practices - get a new project or module started in seconds
- Consistent usage across all projects means no ramp up time for new developers coming onto a project
- Superior dependency management including automatic updating, dependency closures (also known as transitive dependencies)
"Rapid integration and build up", "Isolation" and "Open source" are the key factors why developers consider Docker; whereas "Dependency management", "Necessary evil" and "I’d rather code my app, not my build" are the primary reasons why Apache Maven is favored.
Docker and Apache Maven are both open source tools. It seems that Docker with 53.8K GitHub stars and 15.5K forks on GitHub has more adoption than Apache Maven with 1.71K GitHub stars and 1.26K GitHub forks.
Lyft, StackShare, and Shopify are some of the popular companies that use Docker, whereas Apache Maven is used by Zillow, Bodybuilding.com, and PedidosYa. Docker has a broader approval, being mentioned in 3471 company stacks & 3322 developers stacks; compared to Apache Maven, which is listed in 301 company stacks and 138 developer stacks.
lxd/lxc and Docker aren't congruent so this comparison needs a more detailed look; but in short I can say: the lxd-integrated administration of storage including zfs with its snapshot capabilities as well as the system container (multi-process) approach of lxc vs. the limited single-process container approach of Docker is the main reason I chose lxd over Docker.
Pros of Docker
- Rapid integration and build up824
- Isolation692
- Open source521
- Testability and reproducibility505
- Lightweight460
- Standardization218
- Scalable185
- Upgrading / downgrading / application versions106
- Security88
- Private paas environments85
- Portability34
- Limit resource usage26
- Game changer17
- I love the way docker has changed virtualization16
- Fast14
- Concurrency12
- Docker's Compose tools8
- Easy setup6
- Fast and Portable6
- Because its fun5
- Makes shipping to production very simple4
- Highly useful3
- It's dope3
- Its cool2
- MacOS support FAKE2
- Simplicity, isolation, resource effective2
- Open source and highly configurable2
- Does a nice job hogging memory2
- Package the environment with the application2
- Very easy to setup integrate and build2
- HIgh Throughput2
- Docker hub for the FTW2
- Super2
- Asdfd0
Pros of Apache Maven
- Dependency management137
- Necessary evil70
- I’d rather code my app, not my build60
- Publishing packaged artifacts48
- Convention over configuration43
- Modularisation18
- Consistency across builds11
- Prevents overengineering using scripting6
- Runs Tests4
- Lot of cool plugins4
- Extensible3
- Hard to customize2
- Runs on Linux2
- Runs on OS X1
- Slow incremental build1
- Inconsistent buillds1
- Undeterminisc1
- Good IDE tooling1
Sign up to add or upvote prosMake informed product decisions
Cons of Docker
- New versions == broken features8
- Unreliable networking6
- Documentation not always in sync6
- Moves quickly4
- Not Secure3
Cons of Apache Maven
- Complex6
- Inconsistent buillds1
- Not many plugin-alternatives0