From the Apache Maven Home Page: 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.
Apache Maven requires the following module file to run:
- See Modules for more information.
Running Apache Maven on CIRCE/SC
The Apache Maven user guide is essential to understanding the application and making the most of it. The guide and this page should help you to get started with your simulations. Please refer to the Documentation section for a link to the guide.
- Note on CIRCE: Make sure to run your jobs from your $WORK directory!
- Note: Scripts are provided as examples only. Your SLURM executables, tools, and options may vary from the example below. For help on submitting jobs to the queue, see our SLURM User’s Guide.
To use Apache Maven on CIRCE/SC, simply load the module listed above, and use the Maven tools with your Java-based project. Please refer to the Maven documentation for details about available tools and how to use them.
- Please Note: Maven compiling/building tasks lasting more than 30 minutes should be run in an interactive SRUN session, and NOT on the login nodes. Interactive Jobs Using SLURM
1. After connecting to CIRCE or SC, start an interactive SRUN session by running the command below with example resources:
[user@login0 ~]$ srun --time=03:00:00 --nodes=1 --ntasks-per-node=1 --pty /bin/bash
This will request an interactive session on a compute node, with 1 processor core, for a duration of 2 hours.
2. If all goes well, you should get dropped into an interactive shell on a compute node. You will now need to load the Maven module as described above and will then be able to run Maven tools:
[user@login0 ~]$ module add apps/maven/3.5.0 [user@login0 ~]$ cd /path/to/project/directory [user@login0 ~]$ mvn --version
3. Once you are finished, you can simply type “exit” at the Linux command prompt to exit the SRUN session.
Home Page, User Guides, and Manuals
- Apache Maven Home Page
- Apache Maven Documentation
Report bugs with Apache Maven to the IT Help Desk: firstname.lastname@example.org