Argeo Office packaged as zip
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 5 May 2018 17:21:36 +0000 (19:21 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 5 May 2018 17:21:36 +0000 (19:21 +0200)
dist/argeo-office/.gitignore [new file with mode: 0644]
dist/argeo-office/assembly/argeo-office-e4-rap.xml [new file with mode: 0644]
dist/argeo-office/base/etc/argeo/conf.d/argeo-office.ini [new file with mode: 0644]
dist/argeo-office/pom.xml [new file with mode: 0644]
dist/pom.xml [new file with mode: 0644]
pom.xml

diff --git a/dist/argeo-office/.gitignore b/dist/argeo-office/.gitignore
new file mode 100644 (file)
index 0000000..b83d222
--- /dev/null
@@ -0,0 +1 @@
+/target/
diff --git a/dist/argeo-office/assembly/argeo-office-e4-rap.xml b/dist/argeo-office/assembly/argeo-office-e4-rap.xml
new file mode 100644 (file)
index 0000000..30733b4
--- /dev/null
@@ -0,0 +1,47 @@
+<assembly
+       xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+       <id>dist</id>
+       <baseDirectory>argeo-office</baseDirectory>
+       <formats>
+               <format>dir</format>
+               <format>zip</format>
+       </formats>
+       <fileSets>
+               <fileSet>
+                       <directory>base</directory>
+                       <outputDirectory></outputDirectory>
+                       <fileMode>0644</fileMode>
+                       <includes>
+                               <include>**</include>
+                       </includes>
+                       <excludes>
+                               <exclude>offline.bat</exclude>
+                       </excludes>
+               </fileSet>
+       </fileSets>
+       <dependencySets>
+               <dependencySet>
+                       <unpack>false</unpack>
+                       <outputFileNameMapping>${artifact.groupId}/${artifact.artifactId}-${artifact.version}.${artifact.extension}</outputFileNameMapping>
+                       <outputDirectory>share/osgi</outputDirectory>
+               </dependencySet>
+               <dependencySet>
+                       <useStrictFiltering>true</useStrictFiltering>
+                       <unpack>true</unpack>
+                       <outputDirectory></outputDirectory>
+                       <includes>
+                               <include>org.argeo.commons:osgi-boot:zip:*:*</include>
+                       </includes>
+               </dependencySet>
+               <dependencySet>
+                       <useStrictFiltering>true</useStrictFiltering>
+                       <unpack>true</unpack>
+                       <outputDirectory></outputDirectory>
+                       <includes>
+                               <include>org.argeo.commons:argeo-node:zip:*:*</include>
+                       </includes>
+               </dependencySet>
+       </dependencySets>
+</assembly>
\ No newline at end of file
diff --git a/dist/argeo-office/base/etc/argeo/conf.d/argeo-office.ini b/dist/argeo-office/base/etc/argeo/conf.d/argeo-office.ini
new file mode 100644 (file)
index 0000000..cbfa365
--- /dev/null
@@ -0,0 +1,5 @@
+argeo.osgi.start.3.suite=\
+org.argeo.suite.cms
+
+argeo.osgi.start.5.suite=\
+org.argeo.suite.e4.rap
diff --git a/dist/argeo-office/pom.xml b/dist/argeo-office/pom.xml
new file mode 100644 (file)
index 0000000..0cf70b9
--- /dev/null
@@ -0,0 +1,107 @@
+<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>org.argeo.suite</groupId>
+               <artifactId>dist</artifactId>
+               <version>0.1.13-SNAPSHOT</version>
+               <relativePath>..</relativePath>
+       </parent>
+       <artifactId>argeo-office</artifactId>
+       <packaging>pom</packaging>
+       <name>Argeo Office</name>
+       <profiles>
+               <profile>
+                       <id>dist</id>
+                       <dependencies>
+                               <dependency>
+                                       <groupId>org.argeo.suite</groupId>
+                                       <artifactId>org.argeo.suite.dep.e4.rap</artifactId>
+                                       <version>0.1.13-SNAPSHOT</version>
+                               </dependency>
+                               <dependency>
+                                       <groupId>org.argeo.commons</groupId>
+                                       <artifactId>osgi-boot</artifactId>
+                                       <type>zip</type>
+                                       <version>${version.argeo-commons}</version>
+                               </dependency>
+                               <dependency>
+                                       <groupId>org.argeo.commons</groupId>
+                                       <artifactId>argeo-node</artifactId>
+                                       <type>zip</type>
+                                       <version>${version.argeo-commons}</version>
+                               </dependency>
+                       </dependencies>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-assembly-plugin</artifactId>
+                                               <configuration>
+                                                       <finalName>argeo-suite-${project.version}</finalName>
+                                                       <appendAssemblyId>false</appendAssemblyId>
+                                                       <descriptors>
+                                                               <descriptor>assembly/argeo-office-e4-rap.xml</descriptor>
+                                                       </descriptors>
+                                               </configuration>
+                                               <executions>
+                                                       <execution>
+                                                               <id>assembly-base</id>
+                                                               <phase>package</phase>
+                                                               <goals>
+                                                                       <goal>single</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+               <profile>
+                       <id>rpmbuild</id>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>rpm-maven-plugin</artifactId>
+                                               <executions>
+                                                       <execution>
+                                                               <id>rpm-node</id>
+                                                               <phase>package</phase>
+                                                               <goals>
+                                                                       <goal>rpm</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <name>argeo-office</name>
+                                                                       <mappings>
+                                                                               <mapping>
+                                                                                       <directory>/etc/node/conf.d</directory>
+                                                                                       <username>root</username>
+                                                                                       <groupname>node</groupname>
+                                                                                       <filemode>640</filemode>
+                                                                                       <configuration>noreplace</configuration>
+                                                                                       <directoryIncluded>false</directoryIncluded>
+                                                                                       <sources>
+                                                                                               <source>
+                                                                                                       <location>base/etc/node/conf.d</location>
+                                                                                                       <includes>
+                                                                                                               <include>*.ini</include>
+                                                                                                               <include>*.txt</include>
+                                                                                                       </includes>
+                                                                                               </source>
+                                                                                       </sources>
+                                                                               </mapping>
+                                                                       </mappings>
+                                                                       <requires>
+                                                                               <require>argeo-suite-e4-rap</require>
+                                                                       </requires>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+       </profiles>
+</project>
diff --git a/dist/pom.xml b/dist/pom.xml
new file mode 100644 (file)
index 0000000..516e3c3
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>org.argeo.suite</groupId>
+               <artifactId>argeo-suite</artifactId>
+               <version>0.1.13-SNAPSHOT</version>
+               <relativePath>..</relativePath>
+       </parent>
+       <artifactId>dist</artifactId>
+       <name>Argeo Suite Distributions</name>
+       <packaging>pom</packaging>
+       <modules>
+               <module>argeo-office</module>
+       </modules>
+</project>
diff --git a/pom.xml b/pom.xml
index 8e388a9b0d8780cae0cf8bd84d36f00ccf3cb271..2af04131d9a9df7e2ff26dd11aa992b566859745 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -28,6 +28,7 @@
                <module>org.argeo.suite.workbench.rap</module>
 
                <module>dep</module>
+               <module>dist</module>
        </modules>
        <properties>
                <version.argeo-suite>0.1.13-SNAPSHOT</version.argeo-suite>