From 82b1d62db2fdde322d928ba3b2dc2f16bb1c368f Mon Sep 17 00:00:00 2001 From: antelder Date: Sat, 28 Feb 2009 08:35:51 +0000 Subject: 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 --- java/sca/archetypes/quickstart/pom.xml | 31 +++++++++++++--------- .../src/main/resources/META-INF/archetype.xml | 16 ----------- .../META-INF/maven/archetype-metadata.xml | 18 +++++++++++++ .../main/resources/META-INF/maven/archetype.xml | 12 +++++++++ .../src/main/resources/archetype-resources/pom.xml | 2 ++ .../src/main/java/HelloworldImpl.java | 2 +- .../src/main/java/HelloworldService.java | 2 +- .../src/main/webapp/WEB-INF/web.composite | 6 ++--- .../archetype-resources/src/main/webapp/hello.jsp | 2 +- 9 files changed, 56 insertions(+), 35 deletions(-) delete mode 100644 java/sca/archetypes/quickstart/src/main/resources/META-INF/archetype.xml create mode 100644 java/sca/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 java/sca/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml (limited to 'java/sca') diff --git a/java/sca/archetypes/quickstart/pom.xml b/java/sca/archetypes/quickstart/pom.xml index 2676490854..37f408868c 100644 --- a/java/sca/archetypes/quickstart/pom.xml +++ b/java/sca/archetypes/quickstart/pom.xml @@ -26,20 +26,25 @@ ../../pom.xml - tuscany-archetype-quickstart - maven-plugin - Apache Tuscany Quickstart Archetype + tuscany-quickstart + maven-archetype + Create a simple Apache Tuscany SCA webapp project - - - false - ${basedir}/src/main/resources - - **/* - - - - + + + org.apache.maven.archetype + archetype-packaging + 2.0-alpha-3 + + + + + maven-archetype-plugin + 2.0-alpha-3 + true + + + diff --git a/java/sca/archetypes/quickstart/src/main/resources/META-INF/archetype.xml b/java/sca/archetypes/quickstart/src/main/resources/META-INF/archetype.xml deleted file mode 100644 index 6ca47d2e71..0000000000 --- a/java/sca/archetypes/quickstart/src/main/resources/META-INF/archetype.xml +++ /dev/null @@ -1,16 +0,0 @@ - - tuscany - - src/main/java/HelloworldImpl.java - src/main/java/HelloworldService.java - - - - src/main/webapp/hello.jsp - src/main/webapp/WEB-INF/web.xml - src/main/webapp/WEB-INF/web.composite - - \ No newline at end of file diff --git a/java/sca/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml b/java/sca/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000000..1c1efacea8 --- /dev/null +++ b/java/sca/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,18 @@ + + + + src/main/java + + **/*.java + + + + src/main/webapp + + **/*.jsp + **/*.xml + **/*.composite + + + + \ No newline at end of file diff --git a/java/sca/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml b/java/sca/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml new file mode 100644 index 0000000000..3c37144ad1 --- /dev/null +++ b/java/sca/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,12 @@ + + tuscany-quickstart + + src\main\java\HelloworldImpl.java + src\main\java\HelloworldService.java + + + src\main\webapp\hello.jsp + src\main\webapp\WEB-INF\web.composite + src\main\webapp\WEB-INF\web.xml + + \ No newline at end of file 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 @@ + install + ${artifactId} false 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 @@ - ${artifactId}.web"> + - + 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" %> - + -- cgit v1.2.3