You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Maven Project

Maven can be used as the build system for your project. org.lcsim uses this tool
for its build. This tool handles most (if not all) of the low-level details of
dependencies and building.

The dependent project's root directory should contain three configuration files
for Maven.

  • maven.xml - sets secondary project goals such as using XDoc
  • project.xml - main configuration file listing the project's information and its dependencies
  • project.properties - settings for Maven such as source repository locations e.g. freehep.org

All of these files can be copied from org.lcsim's root directory.

In the dependent project's project.xml file, the following should be inserted to make it depend
on org.lcsim.

<dependency>
  <groupId>lcsim</groupId>
  <artifactId>lcsim</artifactId>
  <version>0.1</version>
  <url>http://www.lcsim.org</url>
</dependency>

org.lcsim is not maintained as a downloadable JAR file. Each project user should compile and
build this program themselves.

Source code should be put into a src/ directory. Probably the directory path for source code should be org/lcsim.

Once the above steps are performed, typing maven should build the project into the target/ directory.

  • No labels