Difference between revisions of "Apache Maven"
(Created page with "== Description == ''From the Apache Maven Home Page:'' '''Apache Maven''' is a software project management and comprehension tool. Based on the concept of a project object mo...") |
|||
Line 7: | Line 7: | ||
{{AppRunningOnAll}} | {{AppRunningOnAll}} | ||
To use Apache Maven on CIRCE/SC, simply load the module listed above, and | 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: Interactive Maven compiling/building tasks lasting more than 30 minutes should be run in an SRUN session, and NOT on the login nodes.''' https://wiki.rc.usf.edu/index.php/SLURM_Interactive | |||
1. After connecting to CIRCE or SC, start an interactive SRUN session by running the command below with example resources: | |||
<pre style="white-space:pre-wrap; width:75%; border:1px solid lightgrey; background:#000000; color:white;"> | |||
[user@login0 ~]$ srun --time=03:00:00 --nodes=1 --ntasks-per-node=1 --pty /bin/bash | |||
</pre> <br>This will request an interactive session on a compute node, with 1 processor core, for a duration of 2 hours.<br> <br> | |||
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: | |||
<pre style="white-space:pre-wrap; width:40%; border:1px solid lightgrey; background:#000000; color:white;"> | |||
[user@login0 ~]$ module add apps/maven/3.5.0 | |||
[user@login0 ~]$ cd /path/to/project/directory | |||
[user@login0 ~]$ mvn --version | |||
</pre><br> | |||
3. Once you are finished, you can simply type “exit” at the Linux command prompt to exit the SRUN session. | |||
{{Documentation}} | {{Documentation}} |
Revision as of 19:23, 14 August 2017
Description
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.
Version
- 3.5.0
Authorized Users
CIRCE
account holdersRRA
account holdersSC
account holders
Platforms
CIRCE
clusterRRA
clusterSC
cluster
Modules
Apache Maven requires the following module file to run:
apps/maven/3.5.0
- 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: Interactive Maven compiling/building tasks lasting more than 30 minutes should be run in an SRUN session, and NOT on the login nodes. https://wiki.rc.usf.edu/index.php/SLURM_Interactive
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.
Documentation
Home Page, User Guides, and Manuals
- Apache Maven Home Page
- Apache Maven Documentation
Reporting Bugs
Report bugs with Apache Maven to the IT Help Desk: rc-help@usf.edu