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 at...@apache.org on 2008/04/18 14:42:36 UTC
svn commit: r649497 - in
/portals/jetspeed-2/portal/trunk/applications/jetspeed-demo: pom.xml src/
src/etc/ src/etc/dbpsml/ src/etc/dbpsml/spring-filter-key.properties
Author: ate
Date: Fri Apr 18 05:42:35 2008
New Revision: 649497
URL: http://svn.apache.org/viewvc?rev=649497&view=rev
Log:
Showcase using the new jetspeed-db:init PageSerializer import feature and how to simply configure/override using a different spring configuration:
// using the following command with the dbpsml profile will copy a overriding spring-filter-key.properties to the jetspeed conf folder containing:
// spring.filter.key=portal.dbPageManager
- mvn install -P dbpsml
// providing the additional demo-dbpsml profile when initializing the database will (in addition to the "standard" demo profile based initialization) also serialize the pages to the database
- mvn jetspeed-db:init -P demo,demo-dbpsml
// then, simply install the demo portal (beware to properly setup your environment properties, e.g. like ${org.apache.jetspeed.server.home})
- mvn jetspeed-deploy:deploy -P demo
Added:
portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/
portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/
portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/dbpsml/
portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/dbpsml/spring-filter-key.properties (with props)
Modified:
portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/pom.xml
Modified: portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/pom.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/pom.xml?rev=649497&r1=649496&r2=649497&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/pom.xml (original)
+++ portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/pom.xml Fri Apr 18 05:42:35 2008
@@ -378,6 +378,60 @@
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>demo-dbpsml</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.portals.jetspeed-2</groupId>
+ <artifactId>jetspeed-db-maven-plugin</artifactId>
+ <version>${org.apache.portals.jetspeed.version}</version>
+ <goals>
+ <goal>init</goal>
+ </goals>
+ <configuration>
+ <psml>
+ <categories>pageSerializer</categories>
+ <filterPropertiesFileName>
+ ${project.build.directory}/${project.build.finalName}/WEB-INF/conf/spring-filter.properties
+ </filterPropertiesFileName>
+ <applicationRootPath>${project.build.directory}/${project.build.finalName}</applicationRootPath>
+ <initProperties>
+ <org.apache.jetspeed.database.user>
+ ${org.apache.jetspeed.production.database.user}
+ </org.apache.jetspeed.database.user>
+ <org.apache.jetspeed.database.password>
+ ${org.apache.jetspeed.production.database.password}
+ </org.apache.jetspeed.database.password>
+ <org.apache.jetspeed.database.url>
+ ${org.apache.jetspeed.production.database.url}
+ </org.apache.jetspeed.database.url>
+ <org.apache.jetspeed.database.driver>
+ ${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>${basedir}/src/etc/dbpsml</directory>
+ <includes>
+ <include>spring-filter-key.properties</include>
+ </includes>
+ <targetPath>../${project.build.finalName}/WEB-INF/conf</targetPath>
+ </resource>
+ </resources>
+ </build>
+ </profile>
</profiles>
</project>
Added: portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/dbpsml/spring-filter-key.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/dbpsml/spring-filter-key.properties?rev=649497&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/dbpsml/spring-filter-key.properties (added)
+++ portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/dbpsml/spring-filter-key.properties Fri Apr 18 05:42:35 2008
@@ -0,0 +1,17 @@
+# 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.
+
+# Use this to override settings in jetspeed.properties
+spring.filter.key=portal.dbPageManager
Propchange: portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/dbpsml/spring-filter-key.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/dbpsml/spring-filter-key.properties
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: portals/jetspeed-2/portal/trunk/applications/jetspeed-demo/src/etc/dbpsml/spring-filter-key.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org