Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip
titleSource Control

It is always a good idea to store your projects in a source control system, such as CVS. Contact your local system administrator for instructions on setting up a module for your project.

...

Example Maven Project

The SLAC LCD cvs contains a sample Maven project called ExampleMavenProject, which can be checked out with this command.

...

It should print this message.

No Format

ExampleMavenProject - Hello world!

The class run by the project script is specified in the project.properties file.

No Format

maven.jar.mainclass=ExampleMavenProject

So the script executes the main() method of the class found in src/ExampleMavenProject.

Now you are ready to experiment with your own Maven project. Any Java code placed into src or test should be able to access all the classes of the org.lcsim framework and its dependencies.

The remaining portion of this tutorial covers how to make a Maven/org.lcsim project from scratch, in case you are wondering about the details.

...