--- distribution/pom.xml	Mon Sep 10 13:55:57 CEST 2007
+++ distribution/pom.xml	Mon Sep 10 13:55:57 CEST 2007
@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ *
+ * Copyright 2006-2007, XpertNet SARL, and individual contributors.
+ *
+ * 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.products</groupId>
+    <artifactId>xwiki-enterprise-manager-parent</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  <artifactId>xwiki-enterprise-manager</artifactId>
+  <name>XWiki Products - Enterprise Manager - Distribution</name>
+  <packaging>pom</packaging>
+  <description>XWiki Products - Enterprise Manager - Distribution</description>
+  <dependencies>
+    <dependency>
+      <groupId>com.xpn.xwiki.products</groupId>
+      <artifactId>xwiki-enterprise-manager-web</artifactId>
+      <version>1.0-SNAPSHOT</version>
+      <type>war</type>
+      <classifier>${xwiki.db}</classifier>
+    </dependency>
+    <dependency>
+      <groupId>com.xpn.xwiki.platform</groupId>
+      <artifactId>xwiki-jetty-resources</artifactId>
+      <version>1.4-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptors>
+            <descriptor>src/assemble/application.xml</descriptor>
+          </descriptors>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  <profiles>
+    <profile>
+      <id>hsqldb</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <dependencies>
+        <dependency>
+          <groupId>com.xpn.xwiki.products</groupId>
+          <artifactId>xwiki-enterprise-manager-database</artifactId>
+          <version>${version}</version>
+          <classifier>${xwiki.db}</classifier>
+          <type>zip</type>
+        </dependency>
+      </dependencies>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <configuration>
+              <descriptors>
+                <descriptor>src/assemble/application.xml</descriptor>
+              </descriptors>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>derby</id>
+      <dependencies>
+        <dependency>
+          <groupId>com.xpn.xwiki.products</groupId>
+          <artifactId>xwiki-enterprise-manager-database</artifactId>
+          <version>${version}</version>
+          <classifier>${xwiki.db}</classifier>
+          <type>zip</type>
+        </dependency>
+      </dependencies>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <configuration>
+              <descriptors>
+                <descriptor>src/assemble/application.xml</descriptor>
+              </descriptors>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>pgsql</id>
+    </profile>
+    <profile>
+      <id>mysql</id>
+    </profile>
+  </profiles>
+</project>
\ No newline at end of file
--- distribution/src/assemble/application-no-database.xml	Mon Sep 10 17:35:57 CEST 2007
+++ distribution/src/assemble/application-no-database.xml	Mon Sep 10 17:35:57 CEST 2007
@@ -0,0 +1,78 @@
+<!--
+ *
+ * Copyright 2006-2007, XpertNet SARL, and individual contributors.
+ *
+ * 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.
+ *
+-->
+
+<assembly>
+  <id>${xwiki.db}</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+  <dependencySets>
+    <dependencySet>
+      <!-- This shouldn't be required but there's a bug in version 2.2-beta-1 of the Assembly
+           plugin where the artifact name will be used instead of / if outputFileNameMapping is
+           not specified -->
+      <outputFileNameMapping></outputFileNameMapping>
+      <includes>
+        <include>com.xpn.xwiki.products:xwiki-enterprise-manager-web</include>
+      </includes>
+      <outputDirectory>webapps/xwiki</outputDirectory>
+      <unpack>true</unpack>
+    </dependencySet>
+    <!-- Copy sh files so that we can set their permissions. This is required since the
+         Assembly plugin looses file permissions.
+         See http://jira.codehaus.org/browse/MASSEMBLY-238 -->
+    <dependencySet>
+      <!-- This shouldn't be required but there's a bug in version 2.2-beta-1 of the Assembly
+           plugin where the artifact name will be used instead of / if outputFileNameMapping is
+           not specified -->
+      <outputFileNameMapping></outputFileNameMapping>
+      <includes>
+        <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
+      </includes>
+      <outputDirectory>/</outputDirectory>
+      <unpack>true</unpack>
+      <unpackOptions>
+        <includes>
+          <include>**/*.sh</include>
+        </includes>
+      </unpackOptions>
+      <fileMode>755</fileMode>
+    </dependencySet>
+    <!-- Copy all other files (excluding sh files). See above for details. -->
+    <dependencySet>
+      <!-- This shouldn't be required but there's a bug in version 2.2-beta-1 of the Assembly
+           plugin where the artifact name will be used instead of / if outputFileNameMapping is
+           not specified -->
+      <outputFileNameMapping></outputFileNameMapping>
+      <includes>
+        <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
+      </includes>
+      <outputDirectory>/</outputDirectory>
+      <unpack>true</unpack>
+      <unpackOptions>
+        <excludes>
+          <exclude>**/*.sh</exclude>
+        </excludes>
+      </unpackOptions>
+    </dependencySet>
+  </dependencySets>
+</assembly>
--- distribution/src/assemble/application.xml	Mon Sep 10 17:35:21 CEST 2007
+++ distribution/src/assemble/application.xml	Mon Sep 10 17:35:21 CEST 2007
@@ -0,0 +1,89 @@
+<!--
+ *
+ * Copyright 2006-2007, XpertNet SARL, and individual contributors.
+ *
+ * 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.
+ *
+-->
+
+<assembly>
+  <id>${xwiki.db}</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+  <dependencySets>
+    <dependencySet>
+      <!-- This shouldn't be required but there's a bug in version 2.2-beta-1 of the Assembly
+           plugin where the artifact name will be used instead of / if outputFileNameMapping is
+           not specified -->
+      <outputFileNameMapping></outputFileNameMapping>
+      <includes>
+        <include>com.xpn.xwiki.products:xwiki-enterprise-manager-web</include>
+      </includes>
+      <outputDirectory>webapps/xwiki</outputDirectory>
+      <unpack>true</unpack>
+    </dependencySet>
+    <!-- Copy sh files so that we can set their permissions. This is required since the
+         Assembly plugin looses file permissions.
+         See http://jira.codehaus.org/browse/MASSEMBLY-238 -->
+    <dependencySet>
+      <!-- This shouldn't be required but there's a bug in version 2.2-beta-1 of the Assembly
+           plugin where the artifact name will be used instead of / if outputFileNameMapping is
+           not specified -->
+      <outputFileNameMapping></outputFileNameMapping>
+      <includes>
+        <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
+      </includes>
+      <outputDirectory>/</outputDirectory>
+      <unpack>true</unpack>
+      <unpackOptions>
+        <includes>
+          <include>**/*.sh</include>
+        </includes>
+      </unpackOptions>
+      <fileMode>755</fileMode>
+    </dependencySet>
+    <!-- Copy all other files (excluding sh files). See above for details. -->
+    <dependencySet>
+      <!-- This shouldn't be required but there's a bug in version 2.2-beta-1 of the Assembly
+           plugin where the artifact name will be used instead of / if outputFileNameMapping is
+           not specified -->
+      <outputFileNameMapping></outputFileNameMapping>
+      <includes>
+        <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
+      </includes>
+      <outputDirectory>/</outputDirectory>
+      <unpack>true</unpack>
+      <unpackOptions>
+        <excludes>
+          <exclude>**/*.sh</exclude>
+        </excludes>
+      </unpackOptions>
+    </dependencySet>
+    <dependencySet>
+      <!-- This shouldn't be required but there's a bug in version 2.2-beta-1 of the Assembly
+           plugin where the artifact name will be used instead of / if outputFileNameMapping is
+           not specified -->
+      <outputFileNameMapping></outputFileNameMapping>
+      <includes>
+        <include>com.xpn.xwiki.products:xwiki-enterprise-manager-database</include>
+      </includes>
+      <outputDirectory>/database</outputDirectory>
+      <unpack>true</unpack>
+    </dependencySet>
+  </dependencySets>
+</assembly>
