You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2006/12/15 20:29:59 UTC
svn commit: r487630 - in /incubator/tuscany/sandbox/lresende: ./
container.das.client/src/main/webapp/
container.das.client/src/main/webapp/WEB-INF/
container.das/src/main/java/org/apache/tuscany/container/dataaccess/
Author: lresende
Date: Fri Dec 15 11:29:58 2006
New Revision: 487630
URL: http://svn.apache.org/viewvc?view=rev&rev=487630
Log:
Updates to das container
Added:
incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/Customer.jsp
incubator/tuscany/sandbox/lresende/pom.xml
Modified:
incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/WEB-INF/default.scdl
incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponent.java
incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentConfiguration.java
incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentTypeLoader.java
incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessImplementationLoader.java
Added: incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/Customer.jsp
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/Customer.jsp?view=auto&rev=487630
==============================================================================
--- incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/Customer.jsp (added)
+++ incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/Customer.jsp Fri Dec 15 11:29:58 2006
@@ -0,0 +1,419 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
+
+<%@ page import="java.util.*" %>
+
+<%@ page import="org.osoa.sca.CompositeContext" %>
+<%@ page import="org.osoa.sca.CurrentCompositeContext" %>
+
+<%@ page import="commonj.sdo.*" %>
+
+<%@ page import="org.apache.tuscany.samples.das.orders.*" %>
+
+<html>
+<head>
+<%@ page language="java" contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>DAS - SCA Container Test</title>
+</head>
+<body>
+
+<H2>Tuscany DAS - SCA container Test </H2>
+<H3>(demo for static service API approach e.g. getAllCustomers())</H3>
+<form>
+<input type="submit" id="doSelectStatic" name="doSelectStatic" value="RangeCustomers (SELECT/WHERE as executeQuery())">
+<input type="submit" id="doInsertExecute" name="doInsertExecute" value="InsertCustomer (INSERT AS execute())">
+<input type="submit" id="doInsertApplyChanges" name="doInsertApplyChanges" value="InsertCustomer (INSERT AS applyChanges())">
+<input type="submit" id="doDeleteExecute" name="doDeleteExecute" value="DeleteCustomer (DELETE AS execute())">
+<input type="submit" id="doDeleteApplyChanges" name="doDeleteApplyChanges" value="DeleteCustomer (DELETE AS applyChanges())">
+<input type="submit" id="doUpdateApplyChanges" name="doUpdateApplyChanges" value="UpdateCustomer (UPDATE AS applyChanges())">
+<input type="submit" id="doSP" name="doSP" value="SPCustomer - get customer for name">
+
+<%
+CompositeContext context = CurrentCompositeContext.getContext();
+CustomersOrdersService service = context.locateService(CustomersOrdersService.class, "CustomersOrdersComponent");
+List customers = null;
+Map<Integer, Object> inParams = new Hashtable<Integer, Object>();
+Vector params = new Vector();
+%>
+
+<%! //common code to display latest results
+ public Iterator getResult(){
+ List custList = null;
+ java.util.Iterator i = null;
+ try{
+ Map<Integer, Object> inParams = new Hashtable<Integer, Object>();
+ Vector params = new Vector();
+ CompositeContext context = CurrentCompositeContext.getContext();
+ CustomersOrdersService service = context.locateService(CustomersOrdersService.class, "CustomersOrdersComponent");
+ params.clear();
+ params.add("");//of no use - as is derived using CommandMapper
+ params.add("select"); //is needed to understand whether execute/executeQuery/applyChanges
+ inParams.clear();
+ inParams.put(1, new Integer(1));
+ params.add(inParams);
+
+ DataObject root = service.getRangeCustomers(params);
+ custList = root.getList("CUSTOMER");
+ if(custList != null){
+ i = custList.iterator();
+ return i;
+ }
+ }catch(Exception e){
+ e.printStackTrace();
+ //TODO: handle case where dasService can't be initiated properly
+ }finally{
+ }
+
+ return i;
+ }
+%>
+<hr>
+
+<!--------------------------------------------------------------------------->
+<!--doSelectStatic -->
+<%if(request.getParameter("doSelectStatic") != null){%>
+
+<table border>
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>LastName</th>
+ </tr>
+ </thead>
+ <tbody>
+ <%
+ java.util.Iterator i = getResult();
+ while (i.hasNext()) {
+ DataObject customer = (DataObject)i.next();
+ %>
+ <tr>
+ <td><%=customer.getInt("ID")%></td>
+ <td><%=customer.getString("LASTNAME")%></td>
+ <tr>
+ <%
+ }//while
+ %>
+ </tbody>
+</table>
+
+<%}//doSelectStatic %>
+<!--------------------------------------------------------------------------->
+<!--doInsertExecute -->
+<%if(request.getParameter("doInsertExecute") != null){%>
+
+ <%try{
+ params.clear();
+ inParams.clear();
+
+ System.out.println("Calling InsertCustomerExecute");
+ params.clear();
+ inParams.clear();
+ params.add("");
+ params.add("insert");
+
+ inParams.put(1, new Integer(4));
+ inParams.put(2, new String("11"));
+ inParams.put(3, new String("111"));
+
+ params.add(inParams);
+
+ service.getInsertCustomerExecute(params);
+
+ }catch(Exception e){
+ e.printStackTrace();
+ }%>
+<table border>
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>LastName</th>
+ </tr>
+ </thead>
+ <tbody>
+ <%
+ java.util.Iterator i = getResult();
+ while (i.hasNext()) {
+ DataObject customer = (DataObject)i.next();
+ %>
+ <tr>
+ <td><%=customer.getInt("ID")%></td>
+ <td><%=customer.getString("LASTNAME")%></td>
+ <tr>
+ <%
+ }//while
+ %>
+ </tbody>
+</table>
+<%}//doInsertExecute %>
+<!--------------------------------------------------------------------------->
+<!--doInsertApplyChanges -->
+<%if(request.getParameter("doInsertApplyChanges") != null){%>
+
+ <%try{
+ Map<String, Object> insertParams = new Hashtable<String, Object>();
+ System.out.println("Calling InsertCustomerApplyChanges");
+ params.clear();
+ insertParams.clear();
+ params.add("");
+ params.add("insert:CUSTOMER");
+
+ insertParams.put("ID", new Integer("9"));
+ insertParams.put("LASTNAME", "222");
+ insertParams.put("ADDRESS", "2222");
+
+ params.add(insertParams);
+
+ service.getInsertCustomerApplyChanges(params);
+ }catch(Exception e){
+ e.printStackTrace();
+ }%>
+<table border>
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>LastName</th>
+ </tr>
+ </thead>
+ <tbody>
+ <%
+ java.util.Iterator i = getResult();
+ while (i.hasNext()) {
+ DataObject customer = (DataObject)i.next();
+ %>
+ <tr>
+ <td><%=customer.getInt("ID")%></td>
+ <td><%=customer.getString("LASTNAME")%></td>
+ <tr>
+ <%
+ }//while
+ %>
+ </tbody>
+</table>
+<%}//doInsertApplyChanges %>
+<!--------------------------------------------------------------------------->
+<!--doDeleteExecute -->
+<%if(request.getParameter("doDeleteExecute") != null){%>
+
+ <%
+ try{
+ System.out.println("Calling DeleteCustomerExecute");
+ params.clear();
+ inParams.clear();
+ params.add("");
+ params.add("delete");
+
+ inParams.put(1, new Integer(9));
+
+ params.add(inParams);
+
+ service.getDeleteCustomerExecute(params);
+
+ }catch(Exception e){
+ e.printStackTrace();
+ }%>
+
+<table border>
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>LastName</th>
+ </tr>
+ </thead>
+ <tbody>
+ <%
+ java.util.Iterator i = getResult();
+ while (i.hasNext()) {
+ DataObject customer = (DataObject)i.next();
+ %>
+ <tr>
+ <td><%=customer.getInt("ID")%></td>
+ <td><%=customer.getString("LASTNAME")%></td>
+ <tr>
+ <%
+ }//while
+ %>
+ </tbody>
+</table>
+<%}//doDeleteExecute %>
+<!--------------------------------------------------------------------------->
+<!--doDeleteApplyChanges -->
+<%if(request.getParameter("doDeleteApplyChanges") != null){%>
+ <%try{
+ Map<String, Object> whereParams = new Hashtable<String, Object>();
+ params.clear();
+
+ whereParams.clear();
+ whereParams.put("ID", new Integer(1));
+
+ params.add("");
+ params.add("delete:CUSTOMER");//command type:tableName
+ params.add(whereParams);
+ service.getDeleteCustomerApplyChanges(params);
+ }catch(Exception e){
+ e.printStackTrace();
+ }%>
+
+<table border>
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>LastName</th>
+ </tr>
+ </thead>
+ <tbody>
+ <%
+ java.util.Iterator i = getResult();
+ while (i.hasNext()) {
+ DataObject customer = (DataObject)i.next();
+ %>
+ <tr>
+ <td><%=customer.getInt("ID")%></td>
+ <td><%=customer.getString("LASTNAME")%></td>
+ <tr>
+ <%
+ }//while
+ %>
+ </tbody>
+</table>
+<%}//doDeleteApplyChanges %>
+<!--------------------------------------------------------------------------->
+<!--doUpdateApplyChanges -->
+<%if(request.getParameter("doUpdateApplyChanges") != null){%>
+<%try{
+ Map<String, Object> updParams = new Hashtable<String, Object>();//as its not position based but name based
+ Map<String, Object> whereParams = new Hashtable<String, Object>();
+
+ params.clear();
+
+ updParams.clear();
+ updParams.put("LASTNAME", "Berry");
+
+ whereParams.put("ID", new Integer(1));
+
+ params.add("");
+ params.add("update:CUSTOMER");//command type:tableName
+ params.add(updParams);
+ params.add(whereParams);
+ System.out.println("whereParams:"+whereParams.get("ID"));
+ service.getUpdateCustomer(params);
+
+ }catch(Exception e){
+ e.printStackTrace();
+ }%>
+
+<table border>
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>LastName</th>
+ </tr>
+ </thead>
+ <tbody>
+ <%
+ java.util.Iterator i = getResult();
+ while (i.hasNext()) {
+ DataObject customer = (DataObject)i.next();
+ %>
+ <tr>
+ <td><%=customer.getInt("ID")%></td>
+ <td><%=customer.getString("LASTNAME")%></td>
+ <tr>
+ <%
+ }//while
+ %>
+ </tbody>
+</table>
+<%}//doUpdateApplyChanges %>
+<!--------------------------------------------------------------------------->
+<!--doSP -->
+<%if(request.getParameter("doSP") != null){%>
+<%try{
+ Map<Integer, Object> outParams = new Hashtable<Integer, Object>();
+ System.out.println("Calling getNamedCustomers");
+
+ params.clear();
+ inParams.clear();
+ outParams.clear();
+
+ inParams.put(1, new String("Berry"));
+
+ outParams.put(2, new Object());
+
+ params.add("");
+ params.add("procedure");
+ params.add(inParams);
+ params.add(outParams);
+
+ Object returnObj = service.getNamedCustomers(params);
+
+ //check values in OUT params
+ Map<Integer, Object> resParams = (Map<Integer, Object> )params.get(3);
+ int cnt = 0;
+ if(resParams.size() != 0){
+ Set<Integer> resSet = (Set<Integer>)resParams.keySet();
+ Iterator res = resSet.iterator();
+ Object resObj = null;
+ while(res.hasNext()){
+ Integer rdx = (Integer)res.next();
+ resObj = (Object)resParams.get(rdx);
+ System.out.println("result :"+rdx +","+resObj);
+ cnt = ((Integer)resObj).intValue();
+ }
+ }
+
+ //check value in return result
+ if(cnt > 0){
+ if(returnObj instanceof DataObject){
+ DataObject doResult = (DataObject)returnObj;
+ customers = doResult.getList("CUSTOMER");
+ java.util.Iterator i = customers.iterator();
+ System.out.println("customers:"+customers.size());
+%>
+
+<table border>
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>LastName</th>
+ </tr>
+ </thead>
+ <tbody>
+
+<% while (i.hasNext()) {
+ DataObject customer = (DataObject)i.next();
+%>
+ <tr>
+ <td><%=customer.getInt("ID")%></td>
+ <td><%=customer.getString("LASTNAME")%></td>
+ <tr>
+ <%}//while
+ }//if DataObj
+ }//if cnt
+
+}catch(Exception e){
+ e.printStackTrace();
+}%>
+
+<%}//doSP %>
+<!--------------------------------------------------------------------------->
+</form>
+</body>
+</html>
Modified: incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/WEB-INF/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/WEB-INF/default.scdl?view=diff&rev=487630&r1=487629&r2=487630
==============================================================================
--- incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/WEB-INF/default.scdl (original)
+++ incubator/tuscany/sandbox/lresende/container.das.client/src/main/webapp/WEB-INF/default.scdl Fri Dec 15 11:29:58 2006
@@ -20,7 +20,7 @@
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:das="http://tuscany.apache.org/xmlns/das/1.0" name="CustomersOrdersComposite">
<component name="CustomersOrdersComponent">
- <das:implementation.das config="CustomersOrders.xml" dataAccessType="rdb"/>
+ <implementation.das config="CustomersOrders.xml" dataAccessType="rdb"/>
</component>
<component name="CustomersOrdersJavaReference">
Modified: incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponent.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponent.java?view=diff&rev=487630&r1=487629&r2=487630
==============================================================================
--- incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponent.java (original)
+++ incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponent.java Fri Dec 15 11:29:58 2006
@@ -18,9 +18,10 @@
*/
package org.apache.tuscany.container.dataaccess;
+import static org.apache.tuscany.spi.idl.java.JavaIDLUtils.findMethod;
+
import java.lang.reflect.Method;
import java.util.List;
-import java.util.Map;
import org.apache.tuscany.container.dataaccessscript.DataAccessInstanceImpl;
import org.apache.tuscany.spi.ObjectCreationException;
@@ -34,7 +35,6 @@
import org.apache.tuscany.spi.wire.InboundWire;
import org.apache.tuscany.spi.wire.TargetInvoker;
import org.apache.tuscany.spi.wire.WireService;
-import static org.apache.tuscany.spi.idl.java.JavaIDLUtils.findMethod;
/**
* The DAS component implementation.
@@ -115,9 +115,7 @@
public Object getServiceInstance(String service) throws TargetException {
InboundWire wire = getInboundWire(service);
if (wire == null) {
- TargetException e = new TargetException("Service not found"); // TODO better error message
- e.setIdentifier(service);
- throw e;
+ throw new TargetException("Service '" + service + "'not found"); // TODO better error message
}
return wireService.createProxy(wire);
}
Modified: incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentConfiguration.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentConfiguration.java?view=diff&rev=487630&r1=487629&r2=487630
==============================================================================
--- incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentConfiguration.java (original)
+++ incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentConfiguration.java Fri Dec 15 11:29:58 2006
@@ -19,14 +19,13 @@
package org.apache.tuscany.container.dataaccess;
import java.util.List;
-import java.util.Map;
import org.apache.tuscany.spi.component.CompositeComponent;
import org.apache.tuscany.spi.component.ScopeContainer;
import org.apache.tuscany.spi.component.WorkContext;
+import org.apache.tuscany.spi.extension.ExecutionMonitor;
import org.apache.tuscany.spi.services.work.WorkScheduler;
import org.apache.tuscany.spi.wire.WireService;
-import org.apache.tuscany.spi.extension.ExecutionMonitor;
/**
* Configuration holder for creating script components
Modified: incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentTypeLoader.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentTypeLoader.java?view=diff&rev=487630&r1=487629&r2=487630
==============================================================================
--- incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentTypeLoader.java (original)
+++ incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessComponentTypeLoader.java Fri Dec 15 11:29:58 2006
@@ -96,9 +96,7 @@
DataAccessComponentType componentType;
if (resource == null) {
- MissingSideFileException e = new MissingSideFileException("Component type side file not found");
- e.setIdentifier(sideFile);
- throw e;
+ throw new MissingSideFileException("Component type side file not found : '" + sideFile + "'");
// TODO: or else implement introspection
} else {
componentType = loadFromSidefile(resource, deploymentContext);
@@ -111,7 +109,7 @@
//Amita
DataAccessComponentType compType = new DataAccessComponentType();
ComponentType ct = loaderRegistry.load(null,
- compType,
+ compType,
url,
ComponentType.class,
deploymentContext);
Modified: incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessImplementationLoader.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessImplementationLoader.java?view=diff&rev=487630&r1=487629&r2=487630
==============================================================================
--- incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessImplementationLoader.java (original)
+++ incubator/tuscany/sandbox/lresende/container.das/src/main/java/org/apache/tuscany/container/dataaccess/DataAccessImplementationLoader.java Fri Dec 15 11:29:58 2006
@@ -18,8 +18,6 @@
*/
package org.apache.tuscany.container.dataaccess;
-import static org.osoa.sca.Version.XML_NAMESPACE_1_0;
-
import java.io.InputStream;
import javax.xml.namespace.QName;
Added: incubator/tuscany/sandbox/lresende/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/pom.xml?view=auto&rev=487630
==============================================================================
--- incubator/tuscany/sandbox/lresende/pom.xml (added)
+++ incubator/tuscany/sandbox/lresende/pom.xml Fri Dec 15 11:29:58 2006
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany</groupId>
+ <artifactId>parent</artifactId>
+ <version>2-incubator-SNAPSHOT</version>
+ </parent>
+ <groupId>sandbox</groupId>
+ <artifactId>lresende</artifactId>
+ <packaging>pom</packaging>
+ <name>Tuscany Sanbox</name>
+ <version>1.0-incubator-SNAPSHOT</version>
+
+ <modules>
+ <module>ajaxDAS</module>
+ <module>container.das</module>
+ <module>container.das.client</module>
+ </modules>
+
+ <!-- definition of repositories where the parent pom can be found -->
+ <repositories>
+ <repository>
+ <id>apache.snapshots</id>
+ <name>Apache Snapshot Repository</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>apache.incubator</id>
+ <name>Apache Incubator Repository</name>
+ <url>http://people.apache.org/repo/m2-incubating-repository/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tuscany.sdo</groupId>
+ <artifactId>tuscany-sdo-impl</artifactId>
+ <version>1.0-incubator-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+ <defaultGoal>install</defaultGoal>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <includes>
+ <include>**/*TestCase.java</include>
+ </includes>
+ <reportFormat>brief</reportFormat>
+ <useFile>false</useFile>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org