Author: tomeks
Date: Wed Jun 13 12:14:15 2007
New Revision: 547005

URL: http://svn.apache.org/viewvc?view=rev&rev=547005
Log:
Maven archetype

Added:
    incubator/cxf/trunk/maven-plugins/
    incubator/cxf/trunk/maven-plugins/archetypes/
    incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/
    incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/pom.xml
    incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/
    incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/META-INF/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/META-INF/maven/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/META-INF/maven/archetype.xml
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/pom.xml
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
   (with props)
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorldImpl.java
   (with props)
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
   (with props)
    
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
   (with props)
    incubator/cxf/trunk/maven-plugins/archetypes/pom.xml

Added: incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/pom.xml?view=auto&rev=547005
==============================================================================
--- incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/pom.xml (added)
+++ incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/pom.xml Wed Jun 
13 12:14:15 2007
@@ -0,0 +1,17 @@
+<?xml version="1.0"?><project>
+  <parent>
+    <artifactId>maven-archetypes</artifactId>
+    <groupId>org.apache.cxf</groupId>
+    <version>2.0-incubator-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.cxf</groupId>
+  <artifactId>cxf-http-basic</artifactId>
+  <name>Archetype - cxf-http-basic</name>
+  <version>2.0-incubator-SNAPSHOT</version>
+  <url>http://maven.apache.org</url>
+  
+  <build>
+  
+ </build>
+</project>
\ No newline at end of file

Added: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/META-INF/maven/archetype.xml
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/META-INF/maven/archetype.xml?view=auto&rev=547005
==============================================================================
--- 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/META-INF/maven/archetype.xml
 (added)
+++ 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/META-INF/maven/archetype.xml
 Wed Jun 13 12:14:15 2007
@@ -0,0 +1,11 @@
+<archetype>
+  <id>cxf-spring-basic</id>
+  <sources>
+      <source>src/main/java/HelloWorldImpl.java</source>
+      <source>src/main/java/HelloWorld.java</source>
+  </sources>
+  <resources>
+    <resource>src/main/webapp/WEB-INF/beans.xml</resource>
+    <resource>src/main/webapp/WEB-INF/web.xml</resource>
+  </resources>
+</archetype>

Added: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/pom.xml?view=auto&rev=547005
==============================================================================
--- 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/pom.xml
 (added)
+++ 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/pom.xml
 Wed Jun 13 12:14:15 2007
@@ -0,0 +1,34 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>${groupId}</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <version>${version}</version>
+  <packaging>war</packaging>
+  <name>Simple CXF project using spring configuration</name>
+  <dependencies>
+         <dependency>
+                 <groupId>org.apache.cxf</groupId>
+                 <artifactId>cxf-rt-frontend-jaxws</artifactId>
+                 <version>2.0-incubator-SNAPSHOT</version>
+         </dependency>
+         <dependency>
+                 <groupId>org.apache.cxf</groupId>
+                 <artifactId>cxf-rt-transports-http</artifactId>
+                 <version>2.0-incubator-SNAPSHOT</version>
+         </dependency>
+  </dependencies>
+ <build>
+   <plugins>
+       <plugin>
+               <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-compiler-plugin</artifactId>
+               <configuration>
+               <source>1.5</source>
+               <target>1.5</target>
+               </configuration>
+               </plugin>
+       </plugins>
+    </build>
+  
+</project>

Added: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorld.java?view=auto&rev=547005
==============================================================================
--- 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
 (added)
+++ 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
 Wed Jun 13 12:14:15 2007
@@ -0,0 +1,9 @@
+package ${groupId};
+
+import javax.jws.WebService;
+
[EMAIL PROTECTED]
+public interface HelloWorld {
+    String sayHi(String text);
+}
+

Propchange: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
------------------------------------------------------------------------------
    svn:executable = *

Added: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorldImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorldImpl.java?view=auto&rev=547005
==============================================================================
--- 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorldImpl.java
 (added)
+++ 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorldImpl.java
 Wed Jun 13 12:14:15 2007
@@ -0,0 +1,13 @@
+
+package ${groupId};
+
+import javax.jws.WebService;
+
[EMAIL PROTECTED](endpointInterface = "${groupId}.HelloWorld")
+public class HelloWorldImpl implements HelloWorld {
+
+    public String sayHi(String text) {
+        return "Hello " + text;
+    }
+}
+

Propchange: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/java/HelloWorldImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml?view=auto&rev=547005
==============================================================================
--- 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
 (added)
+++ 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
 Wed Jun 13 12:14:15 2007
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xmlns:jaxws="http://cxf.apache.org/jaxws";
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
+       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>
+
+
+       <import resource="classpath:META-INF/cxf/cxf.xml" />
+       <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+       <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
+
+       <jaxws:endpoint 
+         id="helloWorld" 
+         implementor="${groupId}.HelloWorldImpl" 
+         address="/HelloWorld" />
+         
+</beans>

Propchange: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/beans.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?view=auto&rev=547005
==============================================================================
--- 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
 (added)
+++ 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
 Wed Jun 13 12:14:15 2007
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd";>
+
+<!--
+       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.
+-->
+<!-- START SNIPPET: webxml -->
+<web-app>
+       <context-param>
+               <param-name>contextConfigLocation</param-name>
+               <param-value>WEB-INF/beans.xml</param-value>
+       </context-param>
+
+       <listener>
+               <listener-class>
+                       org.springframework.web.context.ContextLoaderListener
+               </listener-class>
+       </listener>
+
+       <servlet>
+               <servlet-name>CXFServlet</servlet-name>
+               <display-name>CXF Servlet</display-name>
+               <servlet-class>
+                       org.apache.cxf.transport.servlet.CXFServlet
+               </servlet-class>
+               <load-on-startup>1</load-on-startup>
+       </servlet>
+
+       <servlet-mapping>
+               <servlet-name>CXFServlet</servlet-name>
+               <url-pattern>/*</url-pattern>
+       </servlet-mapping>
+</web-app>
+<!-- END SNIPPET: webxml -->
\ No newline at end of file

Propchange: 
incubator/cxf/trunk/maven-plugins/archetypes/cxf-http-basic/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/cxf/trunk/maven-plugins/archetypes/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/maven-plugins/archetypes/pom.xml?view=auto&rev=547005
==============================================================================
--- incubator/cxf/trunk/maven-plugins/archetypes/pom.xml (added)
+++ incubator/cxf/trunk/maven-plugins/archetypes/pom.xml Wed Jun 13 12:14:15 
2007
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.cxf</groupId>
+  <artifactId>maven-archetypes</artifactId>
+  <packaging>pom</packaging>
+  <version>2.0-incubator-SNAPSHOT</version>
+  <name>maven-archetypes</name>
+  <url>http://maven.apache.org</url>
+  <modules>
+    <module>cxf-http-basic</module>
+  </modules>
+</project>
\ No newline at end of file


Reply via email to