summaryrefslogtreecommitdiffstats
path: root/java/sca/archetypes/quickstart/src/main/resources/archetype-resources
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-02-28 08:35:51 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-02-28 08:35:51 +0000
commit82b1d62db2fdde322d928ba3b2dc2f16bb1c368f (patch)
tree1c3ffe63e502ab1a5b20d1511b53536c5d1f0ed2 /java/sca/archetypes/quickstart/src/main/resources/archetype-resources
parentc0820807441e7eada782a13741fbe2a273554a32 (diff)
Clean up the quickstart archetype and update to use the latest maven archetype plugin and get console prompting style work so 'mvn archetype:generate' works now
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@748791 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/archetypes/quickstart/src/main/resources/archetype-resources')
-rw-r--r--java/sca/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml2
-rw-r--r--java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java2
-rw-r--r--java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java2
-rw-r--r--java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite6
-rw-r--r--java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp2
5 files changed, 8 insertions, 6 deletions
diff --git a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml
index 4a4466ac13..0a6cb38717 100644
--- a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml
+++ b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml
@@ -54,6 +54,8 @@
</dependency>
</dependencies>
<build>
+ <defaultGoal>install</defaultGoal>
+ <finalName>${artifactId}</finalName>
<resources>
<resource>
<filtering>false</filtering>
diff --git a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java
index 31ae3b713a..b787f956c7 100644
--- a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java
+++ b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java
@@ -1,4 +1,4 @@
-package ${packageName};
+package ${package};
public class HelloworldImpl implements HelloworldService {
diff --git a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java
index 0540106802..fa9fad6788 100644
--- a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java
+++ b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java
@@ -1,4 +1,4 @@
-package ${packageName};
+package ${package};
public interface HelloworldService {
diff --git a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite
index cf877edb4f..cd443aed16 100644
--- a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite
+++ b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://${packageName}"
+ targetNamespace="http://${package}"
name=">${artifactId}">
- <component name="=">${artifactId}.web">
+ <component name="${artifactId}WebComponent">
<implementation.web web-uri=""/>
<reference name="service" target="HelloworldComponent"/>
</component>
<component name="HelloworldComponent">
- <implementation.java class="${packageName}.HelloworldImpl"/>
+ <implementation.java class="${package}.HelloworldImpl"/>
</component>
</composite>
diff --git a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp
index c3ebb4386d..7195c302d7 100644
--- a/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp
+++ b/java/sca/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp
@@ -1,7 +1,7 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %>
-<sca:reference name="service" type="${packageName}.HelloworldService" />
+<sca:reference name="service" type="${package}.HelloworldService" />
<html>
<body >