Skip to Main Content
Practical Java Programming for IoT, AI, and Blockchain
book

Practical Java Programming for IoT, AI, and Blockchain

by Perry Xiao
July 2019
Intermediate to advanced content levelIntermediate to advanced
400 pages
11h 7m
English
Wiley
Content preview from Practical Java Programming for IoT, AI, and Blockchain

APPENDIX BApache Maven Tutorial

When you are developing a Java software project, there are many tasks to take care of: downloading dependencies, putting JAR files on a classpath, compiling source code into binary bytecode, running tests, packaging bytecode into deployable JAR files, deploying JAR files to a remote repository server, and so on. Apache Maven, a software project management and comprehension tool that is based on the concept of a project object model (POM), can automate all of these tasks. Maven is intended primarily as a tool for managing Java-based projects, but it can also be used for projects using other programming languages such as C# and Ruby. As alternatives to Maven, Ant and Gradle are also popular software project management tools.

For more information about Ant, see http://ant.apache.org/.

For more information about Gradle, see https://gradle.org/guides/#getting-started.

For a comparison between Ant, Maven, and Gradle, see https://www.baeldung.com/ant-maven-gradle.

Downloading Maven

You can download Apache Maven as a zipped file, apache-maven-3.6.0-bin.zip, from the following address:

https://maven.apache.org/download.cgi

After downloading it, just unzip the file to a directory, for example, c:\apache-maven-3.6.0\. Once it is unzipped, you will find the Maven program, mvn.jar, in the bin subdirectory. To test your Maven, just run the following command:

mvn --version

But you need to add c:\apache-maven-3.6.0\bin\ to your system PATH first, or simply ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Introducing Blockchain with Java: Program, Implement, and Extend Blockchains with Java

Introducing Blockchain with Java: Program, Implement, and Extend Blockchains with Java

Spiro Buzharovski
Intelligent Projects Using Python

Intelligent Projects Using Python

Santanu Pattanayak, Manohar Swamynathan

Publisher Resources

ISBN: 9781119560012Purchase book