Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Building Artifacts (Basic

...

)

Now that you've heard the basics, let's try it out!

...

Code Block
languagebash
$ docker run -it --rm -v $(pwd):/build -w /build maven:3-jdk-8 mvn clean package install

...

Installing Artifacts (Intermediate)

Sometimes, your dependency might not be hosted publically or may be unavailable for download.

If this is the case, your build will almost certainly fail with "Unable to locate artifact" errors if you don't already have the artifacts in your local cache.

You can manually install such missing dependencies using the following command:

Code Block
languagebash
$ mvn install:install-file -Dfile=./indri-5.11.jar -DgroupId=edu.illinois.lis -DartifactId=indri -Dversion=5.11 -Dpackaging=jar

For example, the above command will install indri-5.11.jar into your local Maven cache, allowing your <dependencies> section to be able to resolve it.

Deploying Artifacts (Advanced)

Most people will have stopped reading by now, but if you're part of the unlucky few, then you have my condolences.

...