Build the library and samples
The main Project Object Model (POM) file (pom.xml) is located in the root directory of the repository. To build the library and its samples you only need to:
- Open a console session and change into the XBee Java Library directory, where the pom.xml is located.
#> cd XBeeJavaLibrary-master
- Execute the following command to build the sources and tests of the project.
#> mvn clean compile
Note The first time you execute this (or any other) command, Maven downloads all the plugins and related dependencies required to fulfill the command. From a clean installation of Maven, this can take while. If you execute the command again, Maven now has all the required downloads and can execute the command more quickly.
Maven cleans any previous build results to start a fresh new build of the API sources. After you execute this command, the following output appears:
#> mvn clean compile [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] XBee Java Library Project [INFO] XBee Java Library
[INFO] XBee Java Library Distribution [...] [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building XBee Java Library Project 1.0.1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ xbeeapi-parent --- [INFO] Deleting C:\Store\GIT\xbee\XBeeJavaLibrary\target [...] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] XBee Java Library Project ......................... SUCCESS [ 0.284 s] [INFO] XBee Java Library ................................. SUCCESS [ 1.995 s] [INFO] XBee Java Library Distribution .................... SUCCESS [ 0.002 s] [...] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.500 s [INFO] Finished at: 2014-12-10T12:51:54+01:00 [INFO] Final Memory: 22M/53M [INFO] ------------------------------------------------------------------------ #>
The resulting class files are located inside the directory called target in the root of the repository.