Apache Tuscany > Home > SCA Overview > SCA Java > SCA Java Work-In-Progress > Getting Started | User List | Dev List | Issue Tracker |
Getting Started with Tuscany SCA for JavaOverviewSet up the development environment1) Repository Tuscany source code is hosted at Apache subversion repository. If you want to build Tuscany from source, you need to install a subversion client.
2) Build
3) Development IDE
Create a simple project from scratchmvn archetype:create -DgroupId=sample -DartifactId=helloworld Configure the project for maven build
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.tuscany.samples.sca</groupId>
<version>1.0-incubator-SNAPSHOT</version>
<artifactId>sample-mortgage</artifactId>
<packaging>jar</packaging>
<name>Tuscany Mortgage Sample</name>
<description>A sample Mortgage application made of several SCA components wired together.</description>
<properties>
<property name="tuscanyVersion">1.0-incubator-SNAPSHOT</property>
</properties>
<dependencies>
<dependency>
<groupId>org.osoa</groupId>
<artifactId>sca-api-r0.95</artifactId>
<version>${tuscanyVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>test</artifactId>
<version>${tuscanyVersion}</version>
<scope>test</scope>
</dependency>
</project>
Load the project into Eclipse1. Adding M2_REPO classpath variable mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
2. (Optional) Add maven as an external tool for Eclipse 3. Create Eclispe metadata files mvn -Peclipse eclipse:eclipse 4. Import projects into Eclipse
Develop a simple SCA application1. Declare components in the SCDL META-INF/sca/default.scdl The SCDL file 2. Implement the components in java CreditCheckImpl.java The java file Run the SCA application |