LogoLogo
v7.0.0
v7.0.0
  • TotalCross Overview
  • TotalCross Javadoc
  • TotalCross Changelog
  • Roadmap
  • Documentation
    • Getting Started
      • First embedded project with TotalCross
    • Components
      • Accordion
      • Aligned Labels
      • Button
      • Check
      • ComboBox
      • Dynamic Scroll
      • Edit
      • Floating Button
      • Gpiod
      • Grid
      • GridContainer
      • Image
      • ImageControl
      • ImageList
      • Label
      • Material Icons
      • Material Window
      • MessageBox
      • Multi Edit
      • Progress Bar
      • Progress Box
      • Radio
      • Radio Group
      • Scroll Container
      • Side Menu
      • Slider
      • Sliding Window
      • Spin List
      • Spinner
      • Switch
      • Tabbed Container
      • Velocimeter
    • APIs
      • API Overview
      • API Rest
      • Asynchronous Task
      • Camera
      • Control
        • Main Window
        • Window
        • Container
      • GPS
      • HTTPS and SSL
      • JSON
      • Maps
        • Maps - Deprecated
        • Static Map
      • Material Design Standards
      • Ninepath
      • Notifications
      • PrinterManager
      • Push Notification Firebase
      • Scanner
      • SOAP
      • Socket
      • SocketServer
      • SQLite Encryption
      • QR Code Generator
      • totalcross.sys
      • Youtube API
    • Creating an Issue
    • Contributing
      • Branch workflow
      • Writing documentation
    • Guides
      • App Architecture
        • Suggested Architecture
        • Why do Design Patterns help with the application's organization?
          • MVC Architecture Pattern
          • Template Pattern
          • Data Persistence: DAO Pattern.
        • Separation of concepts: What is the best way to create UI interfaces?
        • Positioning
          • Manual Positioning
        • Relative Positioning
        • Best practices to improve project maintenance
      • Device Simulator
      • Package your app from scratch
        • TotalCross SDK
        • Environment Variables in IDE
          • Eclipse
          • IntelliJ
        • Deploy your app with a dependecy TC
        • Deploy iOS
          • Using Development certificate to test your apps
      • Understanding TotalCross for Linux ARM
      • Running C++ applications with TotalCross
      • Web Services
    • Miscelaneous
      • Java JDK 8
      • Maven
      • Installing Visual Studio Code
    • FAQ
      • IMEI in Android 10
Powered by GitBook
On this page
  • Introduction
  • Guide
  • See more

Was this helpful?

  1. Documentation
  2. Miscelaneous

Maven

Apache Maven 3.6.X

PreviousJava JDK 8NextInstalling Visual Studio Code

Last updated 5 years ago

Was this helpful?

Introduction

TotalCross uses Maven to automate compilation, being quick and easy to use.

"Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."

This article targets users of Visual Studio Code and other IDEs that do not have Maven integration.

Guide

Next steps requires administrator privileges.

Step 1: go to . Download the latest Maven .zip:

Step 2: unzip into C:/Program Files/Maven/ (recommended);

Step 3: open CMD (command line prompt) as administrator;

Step 4: set MAVEN_HOME environment variable:

C:\> setx MAVEN_HOME "C:\Program Files\Maven\apache-maven-3.6.3"

Step 5: add MAVEN_HOME and bin subfolder to PATH :

C:\> setx PATH "%MAVEN_HOME%;%MAVEN_HOME%\bin;%PATH%;"

Step 6: reopen your CMD (command line prompt) and try:

C:\> mvn -version

if response is Apache Maven 3.6.3 you installed everything correctly.

Install brew, it is pretty easy and straightforward. Paste the following command on your terminal.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Brew is a package manager that easily allows you to install packages on macOS X, it is similar to the debian package manager apt-get. Paste the command bellow on you terminal and you will have the Java JDK 8 on your machine.

brew install maven 

Next steps requires sudo privileges.

Step 1: open terminal (CTRL+ALT+T);

Step 2: update APT:

$ sudo apt-get update

Step 3: install Maven:

$ sudo apt-get -y install maven

Step 4: check installation:

$ mvn -version

TotalCross needs Maven 3.6.X or later

See more

With these requirements, it's possible to with TotalCross!

start
link