Skip to main content
ant -versionto check. JMRI requires at least version 1.10.6, and should work with any version after that.
If you need to install it, Ant is available for download at https://ant.apache.org/ or via the usual package managers.
jmrisubdirectory where Ant will run, and load it with source, tests and resources. It will also create and populate directories for xml, libraries, etc. in the project directory.
jmrisubdirectory. To compile, type
ant panelpro, and sit back to watch it go.
ant dist. Note that you don't have to create the
jmri.jarfile to run the program.
To make sure everything is working, before you e.g. commit your code back, please do:
ant clean alltest
and make sure the tests run cleanly.
A new JMRI checkout should build cleanly. If not, please check with the JMRIusers or jmri-developers mailings lists for help.
mvn test -Dtest=PATTERNto run specific tests. See Running a Single Test for more details, including running only a single test method. An example to run all tests in a package is
mvn test -Dtest=jmri/jmrix/openlcb/**
mvn compile net.ossindex:ossindex-maven-plugin:audit
mvn antrun:run -Danttarget=decoderpro
mvn antrun:run -Danttarget=panelpro
scripts/mvn-test includes all the options necessary to run the Travis CI
test Maven job from your local command line.