Tuscany Tuscany Maven Quick Introduction

Home SCA SDO DAS

General

Community

Development

Maven Quick Reference

For some help getting started with Maven, look at:

With Maven, there is no build "script" like the ant build.xml file. Instead you provide Maven with a description of your project and it uses that information to determine how to achieve your build goal. The description is held in a pom.xml file. There is a pom.xml file at the top level of your project and there are subsidiary pom.xml files for modules within your project which are referenced from the top level pom file. The Maven project has also established a set of best practices for structuring builds and if you follow those you can get away with very little description; the Tuscany builds are set up that way.

The general rule for maven is that each (sub)project produces one build artifact (typically a jar file). You can see this in the java project directory where there are separate projects for sca, sdo, das (etc) and within these, separate folders and pom files for major components such as container.java.

The main Maven 2.x command is "mvn" and the default goal is "install" which will compile, unit test and package each project. This will typically output a jar file that is installed locally so that other projects can depend on it.

Once you have the Java project setup up, you can build the project by issuing the following command in the tuscany root directory:
mvn



Apache Incubator Logo Copyright © 2006, The Apache Software Foundation
Apache Tuscany is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Web Services PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.