...
Values in subprojects will override values in the parent project, so we must first compute an "effective POM" by walking down the POM tree from root project to our target subproject and collect all values encountered.
Basic Usage
Now that you've heard the basics, let's try it out!
If you're lucky, you'll only ever need to know a single command to use Maven...
Via Maven
The following command will run Maven's clean, package, and install phases natively:
Code Block | ||
---|---|---|
| ||
$ mvn clean package install |
This is a very common command to build a Maven project from source, and install its built artifacts into your .m2 cache for local consumption.
...
Code Block | ||
---|---|---|
| ||
$ docker run -it --rm -v $(pwd):/build -w /build maven:3-jdk-8 mvn clean package install |
Publishing Artifacts (Advanced)
Most people will have stopped reading by now, but if you're part of the unlucky few, then you have my condolences.
Self-Hosted via Docker
To run your own test Nexus repository via the official Docker image:
...