You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by rw...@apache.org on 2006/03/31 00:45:56 UTC

svn commit: r390269 - in /portals/jetspeed-2/trunk: app-servers/ maven-archetypes/ maven-archetypes/application/src/archetype/META-INF/ maven-archetypes/component/ maven-archetypes/component/src/archetype/META-INF/ maven-archetypes/component/src/archet...

Author: rwatler
Date: Thu Mar 30 14:45:53 2006
New Revision: 390269

URL: http://svn.apache.org/viewcvs?rev=390269&view=rev
Log:
Maven2 checkpoint: added shared/portal component archetypes and improved deployment implementation to support them

Added:
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/pom.xml   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/META-INF/
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/META-INF/archetype.xml   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/pom.xml   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponent.java   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponentImpl.java   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/TestPortalComponent.java   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/log4j.properties   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/pom.xml   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/META-INF/
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/META-INF/archetype.xml   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/pom.xml   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponent.java   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponentImpl.java   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/TestSharedComponent.java   (with props)
    portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/log4j.properties   (with props)
Modified:
    portals/jetspeed-2/trunk/app-servers/tomcat-build.xml
    portals/jetspeed-2/trunk/maven-archetypes/application/src/archetype/META-INF/archetype.xml
    portals/jetspeed-2/trunk/maven-archetypes/component/pom.xml
    portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/META-INF/archetype.xml
    portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/archetype-resources/pom.xml
    portals/jetspeed-2/trunk/maven-archetypes/pom.xml
    portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/pom.xml
    portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/tomcat-build.xml
    portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/pom.xml

Modified: portals/jetspeed-2/trunk/app-servers/tomcat-build.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/app-servers/tomcat-build.xml?rev=390269&r1=390268&r2=390269&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/app-servers/tomcat-build.xml (original)
+++ portals/jetspeed-2/trunk/app-servers/tomcat-build.xml Thu Mar 30 14:45:53 2006
@@ -135,6 +135,9 @@
             <mapper type="merge" to="jetspeed.xml"/>
         </copy>
 
+        <!-- deploy portal application components -->
+        <antcall target="deploy-components"/>
+
         <!-- deploy portlet and layout applications -->
         <antcall target="deploy-min-apps"/>
         <antcall target="deploy-full-apps"/>
@@ -151,6 +154,9 @@
             <fileset dir="${basedir}/../src/webapp/WEB-INF/templates"/>
         </copy>
 
+        <!-- hot deploy portal application components -->
+        <antcall target="hot-deploy-components"/>
+
         <!-- hot deploy portlet and layout applications -->
         <antcall target="hot-deploy-min-apps"/>
         <antcall target="hot-deploy-full-apps"/>
@@ -309,6 +315,11 @@
         </copy>
     </target>
 
+    <target name="deploy-components">
+        <!-- deploy portal application components -->
+        <antcall target="hot-deploy-components"/>
+    </target>
+
     <target name="deploy-min-apps" if="org.apache.jetspeed.deploy.min.apps">
         <!-- deploy minimal set of portlet and layout applications -->
         <delete dir="${org.apache.jetspeed.server.home}/webapps/j2-admin"/>
@@ -401,6 +412,10 @@
         <copy todir="${org.apache.jetspeed.server.home}/webapps/jetspeed/WEB-INF/pages">
             <fileset dir="${basedir}/../src/webapp/WEB-INF/pages"/>
         </copy>
+    </target>
+
+    <target name="hot-deploy-components">
+        <!-- hot deploy portal application components -->
     </target>
 
     <target name="hot-deploy-full-apps" if="org.apache.jetspeed.deploy.full.apps">

Modified: portals/jetspeed-2/trunk/maven-archetypes/application/src/archetype/META-INF/archetype.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/application/src/archetype/META-INF/archetype.xml?rev=390269&r1=390268&r2=390269&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/application/src/archetype/META-INF/archetype.xml (original)
+++ portals/jetspeed-2/trunk/maven-archetypes/application/src/archetype/META-INF/archetype.xml Thu Mar 30 14:45:53 2006
@@ -18,7 +18,7 @@
         
 <archetype>
 
-    <id>portal-archetype</id>
+    <id>application-archetype</id>
     <allowPartial>true</allowPartial>
 
     <resources>

Modified: portals/jetspeed-2/trunk/maven-archetypes/component/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/component/pom.xml?rev=390269&r1=390268&r2=390269&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/component/pom.xml (original)
+++ portals/jetspeed-2/trunk/maven-archetypes/component/pom.xml Thu Mar 30 14:45:53 2006
@@ -34,9 +34,10 @@
         <relativePath>../pom.xml</relativePath>
     </parent>
     <packaging>jar</packaging>
-    <name>Jetspeed-2 Maven2 Portal Component Archetype</name>
+    <name>Jetspeed-2 Maven2 Component Archetype</name>
     <description>
-        Jetspeed-2 Maven2 Archetype used to generate portal component templates.
+        Jetspeed-2 Maven2 Archetype used to generate component templates to
+        be used by other components and applications.
     </description>
 
     <!-- Project Information -->

Modified: portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/META-INF/archetype.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/META-INF/archetype.xml?rev=390269&r1=390268&r2=390269&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/META-INF/archetype.xml (original)
+++ portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/META-INF/archetype.xml Thu Mar 30 14:45:53 2006
@@ -18,7 +18,7 @@
         
 <archetype>
 
-    <id>portal-archetype</id>
+    <id>component-archetype</id>
     <allowPartial>true</allowPartial>
 
     <resources>

Modified: portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/archetype-resources/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/archetype-resources/pom.xml?rev=390269&r1=390268&r2=390269&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/archetype-resources/pom.xml (original)
+++ portals/jetspeed-2/trunk/maven-archetypes/component/src/archetype/archetype-resources/pom.xml Thu Mar 30 14:45:53 2006
@@ -34,7 +34,7 @@
         <relativePath>../pom.xml</relativePath>
     </parent>
     <packaging>jar</packaging>
-    <name>${artifactId} Portal Component</name>
+    <name>${artifactId} Component</name>
 
     <!-- Dependencies -->
 
@@ -72,72 +72,6 @@
                 <directory>src/test</directory>
             </testResource>
         </testResources>
-
-        <!-- Plugins -->
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>hot-deploy-component</id>
-                        <phase>install</phase>
-                        <configuration>
-                            <tasks>
-                                <ant target="hot-deploy-jar" antfile="build.xml" dir="${basedir}/../../app-servers" inheritall="off">
-                                    <property name="org.apache.jetspeed.deploy.enable"
-                                              value="${org.apache.jetspeed.env.hotdeploy}"/>
-                                    <property name="org.apache.jetspeed.deploy.target"
-                                              value="${org.apache.jetspeed.env.deploy.target}"/>
-                                    <property name="org.apache.jetspeed.server.home"
-                                              value="${org.apache.jetspeed.server.home}"/>
-                                    <property name="org.apache.jetspeed.deploy.groupid"
-                                              value="${pom.groupId}"/>
-                                    <property name="org.apache.jetspeed.deploy.artifactid"
-                                              value="${pom.artifactId}"/>
-                                    <property name="org.apache.jetspeed.deploy.version"
-                                              value="${pom.version}"/>
-                                </ant>
-                            </tasks>
-                        </configuration>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <!--
-                    Bug: All plugin dependencies must be copied to the first instance
-                    of the maven-antrun-plugin run, (e.g. to the root pom), since the
-                    first set of deps sticks for the entire maven2 execution cycle.
-                    Bug: Plugin dependencies are not propagated from pluginManagement.
-                    Bug: Versions must be specified here and not in dependencyManagement.
-
-                    Note: All three ant dependencies are listed to keep nodeps in sync.
-                -->
-                <dependencies>
-                    <dependency>
-                        <groupId>ant</groupId>
-                        <artifactId>ant</artifactId>
-                        <version>${ant.version}</version>
-                    </dependency>
-                    <dependency>
-                        <groupId>ant</groupId>
-                        <artifactId>ant-launcher</artifactId>
-                        <version>${ant.version}</version>
-                    </dependency>
-                    <dependency>
-                        <groupId>ant</groupId>
-                        <artifactId>ant-nodeps</artifactId>
-                        <version>${ant.version}</version>
-                    </dependency>
-                    <dependency>
-                        <groupId>org.apache.maven</groupId>
-                        <artifactId>maven-artifact-ant</artifactId>
-                        <version>${org.apache.maven.artifact.ant.version}</version>
-                    </dependency>
-                </dependencies>
-            </plugin>
-        </plugins>
 
     </build>
 

Modified: portals/jetspeed-2/trunk/maven-archetypes/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/pom.xml?rev=390269&r1=390268&r2=390269&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/pom.xml (original)
+++ portals/jetspeed-2/trunk/maven-archetypes/pom.xml Thu Mar 30 14:45:53 2006
@@ -47,9 +47,11 @@
         <module>portal-resources</module>
         <module>portal</module>
 
-        <!-- Portal Element Archetypes -->
+        <!-- Portal Application/Component Archetypes -->
         <module>application</module>
         <module>component</module>
+        <module>shared-component</module>
+        <module>portal-component</module>
 
     </modules>
 

Added: portals/jetspeed-2/trunk/maven-archetypes/portal-component/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal-component/pom.xml?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal-component/pom.xml (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal-component/pom.xml Thu Mar 30 14:45:53 2006
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed 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.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>portal-component-archetype</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>maven-archetypes</artifactId>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Maven2 Portal Component Archetype</name>
+    <description>
+        Jetspeed-2 Maven2 Archetype used to generate component templates to
+        be injected/installed as a library in the portal application itself.
+    </description>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/maven-archetypes/component</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/maven-archetypes/component</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/maven-archetypes/component/</url>
+    </scm>
+
+</project>

Propchange: portals/jetspeed-2/trunk/maven-archetypes/portal-component/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/META-INF/archetype.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/META-INF/archetype.xml?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/META-INF/archetype.xml (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/META-INF/archetype.xml Thu Mar 30 14:45:53 2006
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed 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.
+-->
+        
+<archetype>
+
+    <id>portal-component-archetype</id>
+    <allowPartial>true</allowPartial>
+
+    <resources>
+        <resource>pom.xml</resource>
+    </resources>
+    <sources>
+        <source>src/java/PortalComponent.java</source>
+        <source>src/java/PortalComponentImpl.java</source>
+    </sources>
+    <testSources>
+        <source>src/test/TestPortalComponent.java</source>
+    </testSources>
+    <testResources>
+        <resource>src/test/log4j.properties</resource>
+    </testResources>
+
+</archetype>

Propchange: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/META-INF/archetype.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/pom.xml?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/pom.xml (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/pom.xml Thu Mar 30 14:45:53 2006
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed 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.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>${groupId}</groupId>
+    <version>${version}</version>
+    <artifactId>${artifactId}</artifactId>
+    <parent>
+        <groupId>${groupId}</groupId>
+        <version>${version}</version>
+        <artifactId>portal-components</artifactId>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>${artifactId} Portal Component</name>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Build Configuration -->
+
+    <build>
+
+        <!-- J2 Standard Directories -->
+        <sourceDirectory>src/java</sourceDirectory>
+        <testSourceDirectory>src/test</testSourceDirectory>
+
+        <!-- Resources -->
+        <resources>
+            <resource>
+                <directory>src/java</directory>
+            </resource>
+        </resources>
+
+        <!-- Test Resources -->
+        <testResources>
+            <testResource>
+                <directory>src/java</directory>
+            </testResource>
+            <testResource>
+                <directory>src/test</directory>
+            </testResource>
+        </testResources>
+
+        <!-- Plugins -->
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>hot-deploy-portal-component</id>
+                        <phase>install</phase>
+                        <configuration>
+                            <tasks>
+                                <ant target="hot-deploy-jar" antfile="build.xml" dir="${basedir}/../../app-servers" inheritall="off">
+                                    <property name="org.apache.jetspeed.deploy.enable"
+                                              value="${org.apache.jetspeed.env.hotdeploy}"/>
+                                    <property name="org.apache.jetspeed.deploy.target"
+                                              value="${org.apache.jetspeed.env.deploy.target}"/>
+                                    <property name="org.apache.jetspeed.server.home"
+                                              value="${org.apache.jetspeed.server.home}"/>
+                                    <property name="org.apache.jetspeed.deploy.groupid"
+                                              value="${pom.groupId}"/>
+                                    <property name="org.apache.jetspeed.deploy.artifactid"
+                                              value="${pom.artifactId}"/>
+                                    <property name="org.apache.jetspeed.deploy.version"
+                                              value="${pom.version}"/>
+                                </ant>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <!--
+                    Bug: All plugin dependencies must be copied to the first instance
+                    of the maven-antrun-plugin run, (e.g. to the root pom), since the
+                    first set of deps sticks for the entire maven2 execution cycle.
+                    Bug: Plugin dependencies are not propagated from pluginManagement.
+                    Bug: Versions must be specified here and not in dependencyManagement.
+
+                    Note: All three ant dependencies are listed to keep nodeps in sync.
+                -->
+                <dependencies>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant</artifactId>
+                        <version>${ant.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant-launcher</artifactId>
+                        <version>${ant.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant-nodeps</artifactId>
+                        <version>${ant.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>org.apache.maven</groupId>
+                        <artifactId>maven-artifact-ant</artifactId>
+                        <version>${org.apache.maven.artifact.ant.version}</version>
+                    </dependency>
+                </dependencies>
+            </plugin>
+        </plugins>
+
+    </build>
+
+</project>

Propchange: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponent.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponent.java?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponent.java (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponent.java Thu Mar 30 14:45:53 2006
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * Licensed 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.
+ */
+package ${groupId};
+
+/**
+ * PortalComponent
+ *
+ * @author <a href="mailto:"></a>
+ * @version $Id:$
+ */
+public interface PortalComponent
+{
+}

Propchange: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponentImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponentImpl.java?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponentImpl.java (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponentImpl.java Thu Mar 30 14:45:53 2006
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * Licensed 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.
+ */
+package ${groupId};
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import ${groupId}.PortalComponent;
+
+/**
+ * PortalComponentImpl
+ *
+ * @author <a href="mailto:"></a>
+ * @version $Id:$
+ */
+public class PortalComponentImpl implements PortalComponent
+{
+    /**
+     * Class specific log instance.
+     */
+    private final static Log log = LogFactory.getLog(PortalComponentImpl.class);
+
+    /**
+     * PortalComponentImpl constructor.
+     */
+    public PortalComponentImpl()
+    {
+    }
+}

Propchange: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/java/PortalComponentImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/TestPortalComponent.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/TestPortalComponent.java?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/TestPortalComponent.java (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/TestPortalComponent.java Thu Mar 30 14:45:53 2006
@@ -0,0 +1,83 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * Licensed 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.
+ */
+package ${groupId};
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import ${groupId}.PortalComponentImpl;
+
+/**
+ * TestPortalComponent
+ *
+ * @author <a href="mailto:"></a>
+ * @version $Id:$
+ */
+public class TestPortalComponent extends TestCase
+{
+    /**
+     * Class specific log instance.
+     */
+    private final static Log log = LogFactory.getLog(TestPortalComponent.class);
+
+    /**
+     * Main test runner entry point.
+     */
+    public static void main(String args[])
+    {
+        junit.awtui.TestRunner.main(new String[]{TestPortalComponent.class.getName()});
+    }
+    
+    /**
+     * Test suite configuration for test*() methods in this class.
+     */
+    public static Test suite()
+    {
+        return new TestSuite(TestPortalComponent.class);
+    }
+    
+    /**
+     * Setup protocol method.
+     */
+    protected void setUp() throws Exception
+    {
+        super.setUp();        
+    }
+
+    /**
+     * Cleanup protocol method.
+     */
+    protected void tearDown() throws Exception
+    {
+        super.tearDown();        
+    }
+
+    /**
+     * Unit test method.
+     */
+    public void testPortalComponent() throws Exception
+    {
+        log.info("TestPortalComponent start...");
+
+        log.info("TestPortalComponent testing: " + PortalComponentImpl.class.getName());
+
+        log.info("TestPortalComponent done.");
+    }
+}

Propchange: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/TestPortalComponent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/log4j.properties
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/log4j.properties?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/log4j.properties (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/log4j.properties Thu Mar 30 14:45:53 2006
@@ -0,0 +1,41 @@
+# Copyright 2006 The Apache Software Foundation
+#
+# Licensed 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.
+
+# ------------------------------------------------------------------------
+#
+# Logging Configuration
+#
+# $Id:$
+#
+# ------------------------------------------------------------------------
+
+#
+# Default root logger 
+#
+log4j.rootLogger = INFO, console
+
+#
+# Component logger
+#
+log4j.category.${groupId} = DEBUG, console
+log4j.additivity.${groupId} = false
+
+#
+# Console
+#
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+
+# Pattern to output the caller's file name and line number.
+log4j.appender.console.layout.ConversionPattern=%5p: %c - %m%n

Propchange: portals/jetspeed-2/trunk/maven-archetypes/portal-component/src/archetype/archetype-resources/src/test/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/pom.xml?rev=390269&r1=390268&r2=390269&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/pom.xml (original)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/pom.xml Thu Mar 30 14:45:53 2006
@@ -171,7 +171,7 @@
         <!-- Build Dependencies -->
         <dependency>
             <groupId>${pom.groupId}</groupId>
-            <artifactId>${artifactId}-etc</artifactId>
+            <artifactId>portal-etc</artifactId>
             <type>pom</type>
         </dependency>
         <dependency>

Modified: portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/tomcat-build.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/tomcat-build.xml?rev=390269&r1=390268&r2=390269&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/tomcat-build.xml (original)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/app-servers/tomcat-build.xml Thu Mar 30 14:45:53 2006
@@ -127,6 +127,9 @@
             <mapper type="merge" to="${artifactId}.xml"/>
         </copy>
 
+        <!-- deploy portal application components -->
+        <antcall target="deploy-components"/>
+
         <!-- deploy portlet and layout applications -->
         <antcall target="deploy-apps"/>
 
@@ -161,6 +164,9 @@
             </fileset>
         </copy>
 
+        <!-- hot deploy portal application components -->
+        <antcall target="hot-deploy-components"/>
+
         <!-- hot deploy portlet and layout applications -->
         <antcall target="hot-deploy-apps"/>
 
@@ -209,7 +215,7 @@
         <!-- copy only the artifact and ignore dependencies using mapper -->
         <copy todir="${org.apache.jetspeed.server.home}/webapps/${artifactId}/WEB-INF/lib">
             <fileset refid="component.dependencies.id"/>
-            <mapper type="regexp" from=".*[/\\]([^/\\]*${org.apache.jetspeed.deploy.artifactid})-${org.apache.jetspeed.deploy.version}.jar" to="\1.jar"/>
+            <mapper type="regexp" from=".*[/\\]([^/\\]*${org.apache.jetspeed.deploy.artifactid}-${org.apache.jetspeed.deploy.version}).jar" to="\1.jar"/>
         </copy>
     </target>
 
@@ -299,6 +305,11 @@
         </copy>
     </target>
 
+    <target name="deploy-components">
+        <!-- deploy portal application components -->
+        <antcall target="hot-deploy-components"/>
+    </target>
+
     <target name="deploy-apps">
         <!-- deploy portlet and layout applications -->
         <delete dir="${org.apache.jetspeed.server.home}/webapps/j2-admin"/>
@@ -342,6 +353,10 @@
             <param name="org.apache.jetspeed.deploy.artifactid" value="portlet-api"/>
             <param name="org.apache.jetspeed.deploy.version" value="${portlet-api.version}"/>
         </antcall>
+    </target>
+
+    <target name="hot-deploy-components">
+        <!-- hot deploy portal application components -->
     </target>
 
     <target name="hot-deploy-apps">

Modified: portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/pom.xml?rev=390269&r1=390268&r2=390269&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/pom.xml (original)
+++ portals/jetspeed-2/trunk/maven-archetypes/portal/src/archetype/archetype-resources/pom.xml Thu Mar 30 14:45:53 2006
@@ -175,7 +175,7 @@
             <!-- Subprojects -->
             <dependency>
                 <groupId>${pom.groupId}</groupId>
-                <artifactId>${artifactId}-etc</artifactId>
+                <artifactId>portal-etc</artifactId>
                 <type>pom</type>
                 <version>${pom.version}</version>
             </dependency>

Added: portals/jetspeed-2/trunk/maven-archetypes/shared-component/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/shared-component/pom.xml?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/shared-component/pom.xml (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/shared-component/pom.xml Thu Mar 30 14:45:53 2006
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed 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.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>shared-component-archetype</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>maven-archetypes</artifactId>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Maven2 Shared Component Archetype</name>
+    <description>
+        Jetspeed-2 Maven2 Archetype used to generate component templates to
+        be installed as a shared library for all portlet/web applications.
+    </description>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/maven-archetypes/component</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/maven-archetypes/component</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/maven-archetypes/component/</url>
+    </scm>
+
+</project>

Propchange: portals/jetspeed-2/trunk/maven-archetypes/shared-component/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/META-INF/archetype.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/META-INF/archetype.xml?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/META-INF/archetype.xml (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/META-INF/archetype.xml Thu Mar 30 14:45:53 2006
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed 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.
+-->
+        
+<archetype>
+
+    <id>shared-component-archetype</id>
+    <allowPartial>true</allowPartial>
+
+    <resources>
+        <resource>pom.xml</resource>
+    </resources>
+    <sources>
+        <source>src/java/SharedComponent.java</source>
+        <source>src/java/SharedComponentImpl.java</source>
+    </sources>
+    <testSources>
+        <source>src/test/TestSharedComponent.java</source>
+    </testSources>
+    <testResources>
+        <resource>src/test/log4j.properties</resource>
+    </testResources>
+
+</archetype>

Propchange: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/META-INF/archetype.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/pom.xml?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/pom.xml (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/pom.xml Thu Mar 30 14:45:53 2006
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed 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.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>${groupId}</groupId>
+    <version>${version}</version>
+    <artifactId>${artifactId}</artifactId>
+    <parent>
+        <groupId>${groupId}</groupId>
+        <version>${version}</version>
+        <artifactId>portal-components</artifactId>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>${artifactId} Shared Component</name>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Build Configuration -->
+
+    <build>
+
+        <!-- J2 Standard Directories -->
+        <sourceDirectory>src/java</sourceDirectory>
+        <testSourceDirectory>src/test</testSourceDirectory>
+
+        <!-- Resources -->
+        <resources>
+            <resource>
+                <directory>src/java</directory>
+            </resource>
+        </resources>
+
+        <!-- Test Resources -->
+        <testResources>
+            <testResource>
+                <directory>src/java</directory>
+            </testResource>
+            <testResource>
+                <directory>src/test</directory>
+            </testResource>
+        </testResources>
+
+        <!-- Plugins -->
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>hot-deploy-shared-component</id>
+                        <phase>install</phase>
+                        <configuration>
+                            <tasks>
+                                <ant target="hot-deploy-shared-jar" antfile="build.xml" dir="${basedir}/../../app-servers" inheritall="off">
+                                    <property name="org.apache.jetspeed.deploy.enable"
+                                              value="${org.apache.jetspeed.env.hotdeploy}"/>
+                                    <property name="org.apache.jetspeed.deploy.target"
+                                              value="${org.apache.jetspeed.env.deploy.target}"/>
+                                    <property name="org.apache.jetspeed.server.home"
+                                              value="${org.apache.jetspeed.server.home}"/>
+                                    <property name="org.apache.jetspeed.deploy.groupid"
+                                              value="${pom.groupId}"/>
+                                    <property name="org.apache.jetspeed.deploy.artifactid"
+                                              value="${pom.artifactId}"/>
+                                    <property name="org.apache.jetspeed.deploy.version"
+                                              value="${pom.version}"/>
+                                </ant>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <!--
+                    Bug: All plugin dependencies must be copied to the first instance
+                    of the maven-antrun-plugin run, (e.g. to the root pom), since the
+                    first set of deps sticks for the entire maven2 execution cycle.
+                    Bug: Plugin dependencies are not propagated from pluginManagement.
+                    Bug: Versions must be specified here and not in dependencyManagement.
+
+                    Note: All three ant dependencies are listed to keep nodeps in sync.
+                -->
+                <dependencies>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant</artifactId>
+                        <version>${ant.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant-launcher</artifactId>
+                        <version>${ant.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant-nodeps</artifactId>
+                        <version>${ant.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>org.apache.maven</groupId>
+                        <artifactId>maven-artifact-ant</artifactId>
+                        <version>${org.apache.maven.artifact.ant.version}</version>
+                    </dependency>
+                </dependencies>
+            </plugin>
+        </plugins>
+
+    </build>
+
+</project>

Propchange: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponent.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponent.java?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponent.java (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponent.java Thu Mar 30 14:45:53 2006
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * Licensed 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.
+ */
+package ${groupId};
+
+/**
+ * SharedComponent
+ *
+ * @author <a href="mailto:"></a>
+ * @version $Id:$
+ */
+public interface SharedComponent
+{
+}

Propchange: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponentImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponentImpl.java?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponentImpl.java (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponentImpl.java Thu Mar 30 14:45:53 2006
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * Licensed 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.
+ */
+package ${groupId};
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import ${groupId}.SharedComponent;
+
+/**
+ * SharedComponentImpl
+ *
+ * @author <a href="mailto:"></a>
+ * @version $Id:$
+ */
+public class SharedComponentImpl implements SharedComponent
+{
+    /**
+     * Class specific log instance.
+     */
+    private final static Log log = LogFactory.getLog(SharedComponentImpl.class);
+
+    /**
+     * SharedComponentImpl constructor.
+     */
+    public SharedComponentImpl()
+    {
+    }
+}

Propchange: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/java/SharedComponentImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/TestSharedComponent.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/TestSharedComponent.java?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/TestSharedComponent.java (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/TestSharedComponent.java Thu Mar 30 14:45:53 2006
@@ -0,0 +1,83 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ * 
+ * Licensed 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.
+ */
+package ${groupId};
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import ${groupId}.SharedComponentImpl;
+
+/**
+ * TestSharedComponent
+ *
+ * @author <a href="mailto:"></a>
+ * @version $Id:$
+ */
+public class TestSharedComponent extends TestCase
+{
+    /**
+     * Class specific log instance.
+     */
+    private final static Log log = LogFactory.getLog(TestSharedComponent.class);
+
+    /**
+     * Main test runner entry point.
+     */
+    public static void main(String args[])
+    {
+        junit.awtui.TestRunner.main(new String[]{TestSharedComponent.class.getName()});
+    }
+    
+    /**
+     * Test suite configuration for test*() methods in this class.
+     */
+    public static Test suite()
+    {
+        return new TestSuite(TestSharedComponent.class);
+    }
+    
+    /**
+     * Setup protocol method.
+     */
+    protected void setUp() throws Exception
+    {
+        super.setUp();        
+    }
+
+    /**
+     * Cleanup protocol method.
+     */
+    protected void tearDown() throws Exception
+    {
+        super.tearDown();        
+    }
+
+    /**
+     * Unit test method.
+     */
+    public void testSharedComponent() throws Exception
+    {
+        log.info("TestSharedComponent start...");
+
+        log.info("TestSharedComponent testing: " + SharedComponentImpl.class.getName());
+
+        log.info("TestSharedComponent done.");
+    }
+}

Propchange: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/TestSharedComponent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/log4j.properties
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/log4j.properties?rev=390269&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/log4j.properties (added)
+++ portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/log4j.properties Thu Mar 30 14:45:53 2006
@@ -0,0 +1,41 @@
+# Copyright 2006 The Apache Software Foundation
+#
+# Licensed 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.
+
+# ------------------------------------------------------------------------
+#
+# Logging Configuration
+#
+# $Id:$
+#
+# ------------------------------------------------------------------------
+
+#
+# Default root logger 
+#
+log4j.rootLogger = INFO, console
+
+#
+# Component logger
+#
+log4j.category.${groupId} = DEBUG, console
+log4j.additivity.${groupId} = false
+
+#
+# Console
+#
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+
+# Pattern to output the caller's file name and line number.
+log4j.appender.console.layout.ConversionPattern=%5p: %c - %m%n

Propchange: portals/jetspeed-2/trunk/maven-archetypes/shared-component/src/archetype/archetype-resources/src/test/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org