Author: ludovic
Date: 2008-02-25 21:14:25 +0100 (Mon, 25 Feb 2008)
New Revision: 88

Added:
   wysiwyg/standard.pom.xml
   wysiwyg/web.pom.xml
Log:
Added standard and web pom to use with this module

Added: wysiwyg/standard.pom.xml
===================================================================
--- wysiwyg/standard.pom.xml                            (rev 0)
+++ wysiwyg/standard.pom.xml    2008-02-25 20:14:25 UTC (rev 88)
@@ -0,0 +1,265 @@
+<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>
+  <parent>
+    <groupId>com.xpn.xwiki.platform</groupId>
+    <artifactId>xwiki-web</artifactId>
+    <version>1.3-SNAPSHOT</version>
+  </parent>
+  <artifactId>xwiki-web-standard</artifactId>
+  <name>XWiki Platform - Web - Standard</name>
+  <packaging>war</packaging>
+  <description>The standard XWiki WAR</description>
+  <dependencies>
+    <dependency>
+      <groupId>com.xpn.xwiki.platform</groupId>
+      <artifactId>xwiki-core</artifactId>
+      <version>${platform.core.version}</version>
+    </dependency>
+    <!-- Add the GWT JAR so that XWiki Core is GWT-ready and so that the XWiki 
GWT Servlet can
+         be activated by default in web.xml -->
+    <dependency>
+      <groupId>com.xpn.xwiki.platform</groupId>
+      <artifactId>xwiki-web-gwt</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>com.xpn.xwiki.platform</groupId>
+      <artifactId>xwiki-web-wysiwyg</artifactId>
+      <version>${pom.version}</version>
+      <type>zip</type>
+    </dependency>
+    <dependency>
+      <groupId>org.xwiki.platform</groupId>
+      <artifactId>xwiki-core-plexus</artifactId>
+      <version>${platform.core.version}</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <!-- Inject XWiki's configuration -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-remote-resources-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>xwiki-configuration-resources</id>
+            <!-- The remote resources plugin adds its output directory as a 
resource directory
+                 so that the Maven resources plugin copies these resources to 
target/classes.
+                 However copying them to target/classes will make them appear 
in WEB-INF/classes
+                 in the generated WAR since the WAR plugin copies resources in 
target/classes in
+                 WEB-INF/classes. Thus to prevent this we're binding this 
execution to a phase
+                 that comes after the execution of the resources plugin (which 
executes in the
+                 process-resources phase). Thus this remote resources plugin 
will execute just
+                 after the resources plugin and the resources won't be copied, 
which is why we're
+                 adding a webResource configuration element below in the WAR 
plugin's
+                 configuration. -->
+            <phase>process-resources</phase>
+            <goals>
+              <goal>process</goal>
+            </goals>
+            <configuration>
+              <resourceBundles>
+                
<resourceBundle>com.xpn.xwiki.platform.tools:xwiki-configuration-resources:${platform.tool.configuration.version}</resourceBundle>
+              </resourceBundles>
+              <properties>
+                <xwikiDbConnectionUrl>none</xwikiDbConnectionUrl>
+              </properties>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <!-- Unpack the Albatross Skin -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>unpack</goal>
+            </goals>
+            <configuration>
+              <artifactItems>
+                <artifactItem>
+                  <groupId>com.xpn.xwiki.platform.skins</groupId>
+                  <artifactId>xwiki-skin-albatross</artifactId>
+                  <version>${platform.skin.albatross.version}</version>
+                  <type>zip</type>
+                  
<outputDirectory>${project.build.directory}/skin</outputDirectory>
+                </artifactItem>
+                <artifactItem>
+                  <groupId>com.xpn.xwiki.platform.skins</groupId>
+                  <artifactId>xwiki-skin-toucan</artifactId>
+                  <version>${platform.skin.toucan.version}</version>
+                  <type>zip</type>
+                  
<outputDirectory>${project.build.directory}/skin</outputDirectory>
+                </artifactItem>
+              </artifactItems>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <!-- Unpack the wysiwyg editor  -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>unpack</goal>
+            </goals>
+            <configuration>
+              <artifactItems>
+                <artifactItem>
+                  <groupId>com.xpn.xwiki.platform</groupId>
+                  <artifactId>xwiki-web-wysiwyg</artifactId>
+                  <version>${pom.version}</version>
+                  <type>zip</type>
+                  
<outputDirectory>${project.build.directory}/wysiwyg/</outputDirectory>
+                </artifactItem>
+              </artifactItems>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <!-- TODO: Find a way to exclude the LICENSE/NOTICE files from the 
classes/ directory since
+           we're including them in META-INF/ at the root of the WAR -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <configuration>
+          <webResources>
+            <!-- Include Configuration resources -->
+            <resource>
+              
<directory>${project.build.directory}/maven-shared-archive-resources</directory>
+              <targetPath>WEB-INF</targetPath>
+              <includes>
+                <include>hibernate.cfg.xml</include>
+                <include>xwiki.cfg</include>
+              </includes>
+            </resource>
+            <!-- Include License resources -->
+            <resource>
+              
<directory>${project.build.directory}/maven-shared-archive-resources/META-INF</directory>
+              <targetPath>META-INF</targetPath>
+            </resource>
+            <resource>
+              <directory>${basedir}/src/main/webInfResources</directory>
+              <targetPath>WEB-INF</targetPath>
+              <filtering>true</filtering>
+            </resource>
+            <!-- Add the Albatross skin -->
+            <resource>
+              <directory>${project.build.directory}/skin</directory>
+              <targetPath>skins</targetPath>
+              <filtering>false</filtering>
+            </resource>
+            <!-- Add the Wysiwyg editor -->
+            <resource>
+              <directory>${project.build.directory}/wysiwyg</directory>
+              <targetPath>wysiwyg</targetPath>
+              <filtering>false</filtering>
+            </resource>
+          </webResources>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <profiles>
+    <profile>
+      <id>jettyrun</id>      
+      <build>
+        <plugins>
+          <!-- Run 'mvn install -Pjettyrun' to execute xwiki in Jetty. Useful 
for testing.
+               Note: You'll need a database set up and running. If you use the 
HSQLDB profile
+               the database is looked for in database/ so it's very likely 
you'll get an
+               empty wiki. You'll need to import some pages in it using a XAR 
for example. -->
+          <plugin>
+            <groupId>org.mortbay.jetty</groupId>
+            <artifactId>maven-jetty-plugin</artifactId>
+            <configuration>
+              <contextPath>/xwiki</contextPath>
+              
<classesDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF</classesDirectory>
+              
<webAppSourceDirectory>${project.build.directory}/${project.build.finalName}/</webAppSourceDirectory>
+              <scanIntervalSeconds>10</scanIntervalSeconds>
+              <connectors>
+                <connector 
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+                  <port>8080</port>
+                  <maxIdleTime>60000</maxIdleTime>
+                </connector>
+              </connectors>
+            </configuration>
+            <executions>
+              <execution>
+                <phase>package</phase>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+            <!-- Add the database JAR since it's not included in the WAR. The 
Hibernate config
+                 file is automtically added by the remote resources plugin -->
+            <dependencies>
+              <dependency>
+                <groupId>${xwiki.db.jdbc.groupId}</groupId>
+                <artifactId>${xwiki.db.jdbc.artifactId}</artifactId>
+                <version>${xwiki.db.jdbc.version}</version>
+                <scope>runtime</scope>
+              </dependency>
+            </dependencies>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-remote-resources-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>xwiki-configuration-resources</id>
+                <configuration>
+                  <properties>
+                    
<xwikiDbConnectionUrl>${xwiki.db.connection.url}</xwikiDbConnectionUrl>
+                  </properties>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>ci</id>
+      <activation>
+        <!-- This property is automatically defined by the Maven release 
plugin when executing
+             a release. Thus this profile will be automatically enabled when 
releasing -->
+        <property>
+          <name>performRelease</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <!-- Use the build number plugin to add the SVN revision number to 
XWiki's
+               version.properties file so that it's included when displaying 
XWiki's version.
+               Note: This plugin works by making the buildNumber property 
available. We then filter
+               the version.properties file so that the property is replaced by 
its value. -->
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>buildnumber-maven-plugin</artifactId>
+            <version>1.0-beta-1</version>
+            <executions>
+              <execution>
+                <phase>validate</phase>
+                <goals>
+                  <goal>create</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <doCheck>true</doCheck>
+              <doUpdate>true</doUpdate>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>

Added: wysiwyg/web.pom.xml
===================================================================
--- wysiwyg/web.pom.xml                         (rev 0)
+++ wysiwyg/web.pom.xml 2008-02-25 20:14:25 UTC (rev 88)
@@ -0,0 +1,77 @@
+<!--
+ *
+ * See the NOTICE file distributed with this work for additional
+ * information regarding copyright ownership.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *
+-->
+
+<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>
+  <parent>
+    <groupId>com.xpn.xwiki.platform</groupId>
+    <artifactId>xwiki</artifactId>
+    <version>11-SNAPSHOT</version>
+    <relativePath>../xwiki-platform-pom</relativePath>
+  </parent>
+  <artifactId>xwiki-web</artifactId>
+  <version>1.3-SNAPSHOT</version>
+  <name>XWiki Platform - Web - Parent POM</name>
+  <packaging>pom</packaging>
+  <description>Common web resources for all XWiki WARs</description>
+  <scm>
+    
<connection>scm:svn:http://svn.xwiki.org/svnroot/xwiki/xwiki-platform/web/trunk</connection>
+    
<developerConnection>scm:svn:https://svn.xwiki.org/svnroot/xwiki/xwiki-platform/web/trunk</developerConnection>
+    <url>http://svn.xwiki.org/svnroot/xwiki/xwiki-platform/web/trunk</url>
+  </scm>
+  <properties>
+    <!-- Versions of XWiki dependencies used in Platform/Web modules -->
+    
<platform.tool.configuration.version>1.10-SNAPSHOT</platform.tool.configuration.version>
+    <platform.core.version>1.3-SNAPSHOT</platform.core.version>
+    
<platform.skin.albatross.version>1.3-SNAPSHOT</platform.skin.albatross.version>
+    <platform.skin.toucan.version>1.1-SNAPSHOT</platform.skin.toucan.version>
+  </properties>
+  <profiles>
+    <profile>
+      <id>default</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <modules>
+        <module>gwt</module>
+        <module>wysiwyg</module>
+        <module>standard</module>
+      </modules>
+    </profile>
+    <profile>
+      <!-- XWiki Enterprise -->
+      <id>xe</id>
+      <modules>
+        <module>gwt</module>
+        <module>standard</module>
+      </modules>
+    </profile>
+    <profile>
+      <!-- XWiki Enterprise Manager -->
+      <id>xem</id>
+      <modules>
+        <module>gwt</module>
+        <module>standard</module>
+      </modules>
+    </profile>
+  </profiles>
+</project>

_______________________________________________
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to