portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r672022 - in /portals/jetspeed-2/portal/trunk/maven: ./ jetspeed-archetype/ jetspeed-archetype/src/ jetspeed-archetype/src/main/ jetspeed-archetype/src/main/resources/ jetspeed-archetype/src/main/resources/META-INF/ jetspeed-archetype/src/m...
Date Thu, 26 Jun 2008 20:33:37 GMT
Author: taylor
Date: Thu Jun 26 13:33:36 2008
New Revision: 672022

URL: http://svn.apache.org/viewvc?rev=672022&view=rev
Log:
Archetype for custom builds
contribution from Niels van Kampenhout

Added:
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/pom.xml
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/META-INF/
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/META-INF/maven/
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/META-INF/maven/archetype.xml
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/archetype-resources/
    portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/archetype-resources/pom.xml
Modified:
    portals/jetspeed-2/portal/trunk/maven/pom.xml

Added: portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/pom.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/pom.xml?rev=672022&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/pom.xml (added)
+++ portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/pom.xml Thu Jun 26 13:33:36 2008
@@ -0,0 +1,27 @@
+<?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 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.portals.jetspeed-2</groupId>
+  <artifactId>jetspeed-archetype</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>Archetype - jetspeed-archetype</name>
+  <url>http://maven.apache.org</url>
+</project>

Added: portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/META-INF/maven/archetype.xml?rev=672022&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/META-INF/maven/archetype.xml
(added)
+++ portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/META-INF/maven/archetype.xml
Thu Jun 26 13:33:36 2008
@@ -0,0 +1,21 @@
+<?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.
+  
+-->
+<archetype>
+  <id>jetspeed-archetype</id>
+</archetype>

Added: portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/archetype-resources/pom.xml?rev=672022&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/archetype-resources/pom.xml
(added)
+++ portals/jetspeed-2/portal/trunk/maven/jetspeed-archetype/src/main/resources/archetype-resources/pom.xml
Thu Jun 26 13:33:36 2008
@@ -0,0 +1,426 @@
+#set($dollar = '$')
+<?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 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>
+  <prerequisites>
+    <maven>2.0.9</maven>
+  </prerequisites>
+
+  <groupId>${groupId}</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <version>2.2-SNAPSHOT</version>
+  <name>Jetspeed-2 Portal Application</name>
+  <description>Jetspeed-2 Portal Application</description>
+
+  <packaging>war</packaging>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.portals.jetspeed-2</groupId>
+      <artifactId>jetspeed</artifactId>
+      <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+      <type>war</type>
+      <scope>runtime</scope>
+    </dependency>
+  </dependencies>
+
+  <properties>
+    <portlet-api.version>1.0</portlet-api.version>
+    <org.apache.portals.jetspeed.version>2.2-SNAPSHOT</org.apache.portals.jetspeed.version>
+    <org.apache.pluto.version>1.0.1</org.apache.pluto.version>
+    <org.apache.portals.bridges.common.version>1.0.4</org.apache.portals.bridges.common.version>
+    <portal.context.name>${artifactId}</portal.context.name>
+    <org.apache.jetspeed.server.home>${dollar}{project.build.directory}/${artifactId}-deploy</org.apache.jetspeed.server.home>
+  </properties>
+
+  <build>
+    <finalName>${dollar}{portal.context.name}</finalName>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <artifactId>jetspeed-unpack-maven-plugin</artifactId>
+        <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+        <executions>
+          <execution>
+            <id>unpack-appserver</id>
+            <goals>
+              <goal>unpack</goal>
+            </goals>
+            <phase>process-resources</phase>
+            <configuration>
+              <unpack>
+                <artifact>org.apache.portals.jetspeed-2:jetspeed-portal-resources:jar</artifact>
+                <targetDirectory>${dollar}{project.build.directory}/resources/META-INF</targetDirectory>
+                <resources>
+                  <resource>
+                    <path>conf/tomcat</path>
+                    <include>context.xml</include>
+                  </resource>
+                </resources>
+              </unpack>
+            </configuration>
+          </execution>
+        </executions>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.portals.jetspeed-2</groupId>
+            <artifactId>jetspeed-portal-resources</artifactId>
+            <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <artifactId>jetspeed-deploy-maven-plugin</artifactId>
+        <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+        <executions>
+          <execution>
+            <id>deploy-jetspeed-layouts</id>
+            <goals>
+              <goal>deploy</goal>
+            </goals>
+            <phase>process-resources</phase>
+            <configuration>
+              <targetBaseDir>${dollar}{project.build.directory}/${dollar}{project.build.finalName}</targetBaseDir>
+              <destinations>
+                <local>WEB-INF/deploy/local</local>
+              </destinations>
+              <deployments>
+                <deployment>
+                  <artifact>org.apache.portals.jetspeed-2:jetspeed-layouts:war</artifact>
+                  <destination>local</destination>
+                </deployment>
+              </deployments>
+            </configuration>
+          </execution>
+        </executions>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.portals.jetspeed-2</groupId>
+            <artifactId>jetspeed-layouts</artifactId>
+            <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+            <type>war</type>
+          </dependency>
+        </dependencies>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <version>2.0.2</version>
+        <configuration>
+          <webResources>
+            <resource>
+              <directory>${dollar}{project.build.directory}/resources</directory>
+              <filtering>true</filtering>
+            </resource>
+          </webResources>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+    <profile>
+      <id>${artifactId}</id>
+      <build>
+        <plugins>
+
+          <plugin>
+            <groupId>org.apache.portals.jetspeed-2</groupId>
+            <artifactId>jetspeed-db-maven-plugin</artifactId>
+            <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+            <goals>
+              <goal>init</goal>
+            </goals>
+            <configuration>
+              <connection>
+                <username>${dollar}{org.apache.jetspeed.production.database.user}</username>
+                <password>${dollar}{org.apache.jetspeed.production.database.password}</password>
+                <url>${dollar}{org.apache.jetspeed.production.database.url}</url>
+                <driver>${dollar}{org.apache.jetspeed.production.database.driver}</driver>
+              </connection>
+              <unpack>
+                <artifact>org.apache.portals.jetspeed-2:jetspeed-portal-resources:jar</artifact>
+                <resources>
+                  <resource>
+                    <path>ddl</path>
+                    <include>${dollar}{org.apache.jetspeed.production.database.default.name}/</include>
+                    <destination>db/ddl</destination>
+                  </resource>
+                  <resource>
+                    <path>seed</path>
+                    <destination>db/seed</destination>
+                  </resource>
+                </resources>
+              </unpack>
+              <sql>
+                <scripts>
+                  <script>
+                    <path>
+                      ${dollar}{project.build.directory}/db/ddl/${dollar}{org.apache.jetspeed.production.database.default.name}/drop-schema.sql
</path>
+                    <ignoreErrors>true</ignoreErrors>
+                  </script>
+                  <script>
+                    <path>
+                      ${dollar}{project.build.directory}/db/ddl/${dollar}{org.apache.jetspeed.production.database.default.name}/create-schema.sql
+                    </path>
+                  </script>
+                </scripts>
+              </sql>
+              <seed>
+                <categories>serializer</categories>
+                <filterPropertiesFileName>
+                  ${dollar}{project.build.directory}/${dollar}{project.build.finalName}/WEB-INF/conf/spring-filter.properties
</filterPropertiesFileName>
+                <applicationRootPath>${dollar}{project.build.directory}/${dollar}{project.build.finalName}</applicationRootPath>
+                <files>
+                  <file>${dollar}{project.build.directory}/db/seed/j2-seed.xml</file>
+                </files>
+                <initProperties>
+                  <org.apache.jetspeed.database.user>
+                    ${dollar}{org.apache.jetspeed.production.database.user} </org.apache.jetspeed.database.user>
+                  <org.apache.jetspeed.database.password>
+                    ${dollar}{org.apache.jetspeed.production.database.password} </org.apache.jetspeed.database.password>
+                  <org.apache.jetspeed.database.url> ${dollar}{org.apache.jetspeed.production.database.url}
</org.apache.jetspeed.database.url>
+                  <org.apache.jetspeed.database.driver>
+                    ${dollar}{org.apache.jetspeed.production.database.driver}
+                  </org.apache.jetspeed.database.driver>
+                </initProperties>
+              </seed>
+            </configuration>
+            <dependencies>
+              <dependency>
+                <groupId>org.apache.portals.jetspeed-2</groupId>
+                <artifactId>jetspeed-portal-resources</artifactId>
+                <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+              </dependency>
+              <dependency>
+                <groupId>org.apache.portals.jetspeed-2</groupId>
+                <artifactId>jetspeed-db-tools</artifactId>
+                <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+              </dependency>
+              <dependency>
+                <groupId>${dollar}{org.apache.jetspeed.production.jdbc.driver.groupId}</groupId>
+                <artifactId>${dollar}{org.apache.jetspeed.production.jdbc.driver.artifactId}</artifactId>
+                <version>${dollar}{org.apache.jetspeed.production.jdbc.driver.version}</version>
+              </dependency>
+            </dependencies>
+          </plugin>
+
+          <plugin>
+            <groupId>org.apache.portals.jetspeed-2</groupId>
+            <artifactId>jetspeed-deploy-maven-plugin</artifactId>
+            <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+            <configuration>
+              <targetBaseDir>${dollar}{org.apache.jetspeed.server.home}</targetBaseDir>
+              <portalName>${dollar}{portal.context.name}</portalName>
+              <deployments>
+                <!-- shared/lib -->
+                <deployment>
+                  <artifact>portlet-api:portlet-api:jar</artifact>
+                </deployment>
+                <deployment>
+                  <artifact>org.apache.portals.jetspeed-2:jetspeed-api:jar</artifact>
+                </deployment>
+                <deployment>
+                  <artifact>org.apache.portals.jetspeed-2:jetspeed-commons:jar</artifact>
+                </deployment>
+                <deployment>
+                  <artifact>org.apache.pluto:pluto:jar</artifact>
+                </deployment>
+                <deployment>
+                  <artifact>org.apache.portals.bridges:portals-bridges-common:jar</artifact>
+                </deployment>
+                <deployment>
+                  <artifact>
+                    ${dollar}{org.apache.jetspeed.production.jdbc.driver.groupId}:${dollar}{org.apache.jetspeed.production.jdbc.driver.artifactId}:jar
</artifact>
+                  <destination>system</destination>
+                </deployment>
+                <!-- jetspeed portal expanded -->
+                <deployment>
+                  <artifact>${dollar}{pom.groupId}:${dollar}{pom.artifactId}:war</artifact>
+                  <expand>true</expand>
+                  <targetName>${dollar}{portal.context.name}</targetName>
+                  <delete>./${dollar}{portal.context.name}</delete>
+                </deployment>
+                <!-- admin pa -->
+                <deployment>
+                  <artifact>org.apache.portals.jetspeed-2:j2-admin:war</artifact>
+                  <delete>./j2-admin</delete>
+                </deployment>
+                <!-- demo pa's -->
+                <deployment>
+                  <artifact>org.apache.portals.jetspeed-2:demo:war</artifact>
+                  <delete>./demo</delete>
+                </deployment>
+                <deployment>
+                  <artifact>org.apache.portals.jetspeed-2:rss:war</artifact>
+                  <delete>./rss</delete>
+                </deployment>
+                <deployment>
+                  <artifact>org.apache.portals.bridges:jpetstore:war</artifact>
+                  <infuse>true</infuse>
+                  <delete>./jpetstore</delete>
+                </deployment>
+                <deployment>
+                  <artifact>org.apache.portals.bridges:jsf-demo:war</artifact>
+                  <infuse>true</infuse>
+                  <expand>true</expand>
+                  <delete>./jsf-demo</delete>
+                </deployment>
+              </deployments>
+            </configuration>
+            <dependencies>
+              <!-- shared/lib deps -->
+              <dependency>
+                <groupId>${dollar}{pom.groupId}</groupId>
+                <artifactId>${dollar}{pom.artifactId}</artifactId>
+                <version>${dollar}{pom.version}</version>
+                <type>war</type>
+              </dependency>
+              <dependency>
+                <groupId>portlet-api</groupId>
+                <artifactId>portlet-api</artifactId>
+                <version>${dollar}{portlet-api.version}</version>
+              </dependency>
+              <dependency>
+                <groupId>org.apache.portals.jetspeed-2</groupId>
+                <artifactId>jetspeed-api</artifactId>
+                <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+                <scope>runtime</scope>
+              </dependency>
+              <dependency>
+                <groupId>org.apache.portals.jetspeed-2</groupId>
+                <artifactId>jetspeed-commons</artifactId>
+                <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+              </dependency>
+              <dependency>
+                <groupId>org.apache.pluto</groupId>
+                <artifactId>pluto</artifactId>
+                <version>${dollar}{org.apache.pluto.version}</version>
+              </dependency>
+              <dependency>
+                <groupId>org.apache.portals.bridges</groupId>
+                <artifactId>portals-bridges-common</artifactId>
+                <version>${dollar}{org.apache.portals.bridges.common.version}</version>
+              </dependency>
+              <dependency>
+                <groupId>${dollar}{org.apache.jetspeed.production.jdbc.driver.groupId}</groupId>
+                <artifactId>${dollar}{org.apache.jetspeed.production.jdbc.driver.artifactId}</artifactId>
+                <version>${dollar}{org.apache.jetspeed.production.jdbc.driver.version}</version>
+              </dependency>
+              <!-- j2-admin -->
+              <dependency>
+                <groupId>org.apache.portals.jetspeed-2</groupId>
+                <artifactId>j2-admin</artifactId>
+                <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+                <type>war</type>
+              </dependency>
+              <!-- demo pa's -->
+              <dependency>
+                <groupId>org.apache.portals.jetspeed-2</groupId>
+                <artifactId>rss</artifactId>
+                <version>2.1.3</version>
+                <type>war</type>
+              </dependency>
+              <dependency>
+                <groupId>org.apache.portals.jetspeed-2</groupId>
+                <artifactId>demo</artifactId>
+                <version>2.1.3</version>
+                <type>war</type>
+              </dependency>
+              <dependency>
+                <groupId>org.apache.portals.bridges</groupId>
+                <artifactId>jsf-demo</artifactId>
+                <version>1.0.4</version>
+                <type>war</type>
+              </dependency>
+              <dependency>
+                <groupId>org.apache.portals.bridges</groupId>
+                <artifactId>jpetstore</artifactId>
+                <version>1.0.4</version>
+                <type>war</type>
+              </dependency>
+
+              <!-- plugin own dependencies -->
+              <dependency>
+                <groupId>org.apache.portals.jetspeed-2</groupId>
+                <artifactId>jetspeed-deploy-tools</artifactId>
+                <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+              </dependency>
+            </dependencies>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
+    <profile>
+      <id>${dollar}{artifactId}-dbpsml</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.portals.jetspeed-2</groupId>
+            <artifactId>jetspeed-db-maven-plugin</artifactId>
+            <version>${dollar}{org.apache.portals.jetspeed.version}</version>
+            <goals>
+              <goal>init</goal>
+            </goals>
+            <configuration>
+              <psml>
+                <categories>pageSerializer</categories>
+                <filterPropertiesFileName>
+                  ${dollar}{project.build.directory}/${dollar}{project.build.finalName}/WEB-INF/conf/spring-filter.properties
</filterPropertiesFileName>
+                <applicationRootPath>${dollar}{project.build.directory}/${dollar}{project.build.finalName}</applicationRootPath>
+                <initProperties>
+                  <org.apache.jetspeed.database.user>
+                    ${dollar}{org.apache.jetspeed.production.database.user} </org.apache.jetspeed.database.user>
+                  <org.apache.jetspeed.database.password>
+                    ${dollar}{org.apache.jetspeed.production.database.password} </org.apache.jetspeed.database.password>
+                  <org.apache.jetspeed.database.url> ${dollar}{org.apache.jetspeed.production.database.url}
</org.apache.jetspeed.database.url>
+                  <org.apache.jetspeed.database.driver>
+                    ${dollar}{org.apache.jetspeed.production.database.driver}
+                  </org.apache.jetspeed.database.driver>
+                </initProperties>
+              </psml>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
+    <profile>
+      <id>dbpsml</id>
+      <build>
+        <resources>
+          <resource>
+            <directory>${dollar}{basedir}/src/etc/dbpsml</directory>
+            <includes>
+              <include>spring-filter-key.properties</include>
+            </includes>
+            <targetPath>../${dollar}{project.build.finalName}/WEB-INF/conf</targetPath>
+          </resource>
+        </resources>
+      </build>
+    </profile>
+  </profiles>
+
+</project>

Modified: portals/jetspeed-2/portal/trunk/maven/pom.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/maven/pom.xml?rev=672022&r1=672021&r2=672022&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/maven/pom.xml (original)
+++ portals/jetspeed-2/portal/trunk/maven/pom.xml Thu Jun 26 13:33:36 2008
@@ -40,6 +40,7 @@
         <module>jetspeed-unpack-maven-plugin</module>        
         <module>jetspeed-deploy-maven-plugin</module>
         <module>jetspeed-db-maven-plugin</module>
+        <module>jetspeed-archetype</module>
     </modules>
     
 </project>



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


Mime
View raw message