]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - dist/slc/pom.xml
[maven-release-plugin] prepare release argeo-slc-2.1.7
[gpl/argeo-slc.git] / dist / slc / pom.xml
index 284ada75a66c15e64121c0bc0e514b0e0c2978ef..f5fd4783b18e68446736ae82a4dcc759a50e4c66 100644 (file)
-<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">
+<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.slc</groupId>
                <artifactId>dist</artifactId>
-               <version>1.1.10-SNAPSHOT</version>
+               <version>2.1.7</version>
        </parent>
        <artifactId>slc</artifactId>
        <packaging>pom</packaging>
-       <name>SLC Node (RPM)</name>
+       <name>SLC Distribution</name>
        <profiles>
+               <profile>
+                       <id>dist</id>
+                       <build>
+                               <plugins>
+                                       <!-- <plugin> -->
+                                       <!-- <groupId>org.apache.maven.plugins</groupId> -->
+                                       <!-- <artifactId>maven-dependency-plugin</artifactId> -->
+                                       <!-- <executions> -->
+                                       <!-- <execution> -->
+                                       <!-- <id>copy-dependencies-dist</id> -->
+                                       <!-- <phase>package</phase> -->
+                                       <!-- <goals> -->
+                                       <!-- <goal>copy-dependencies</goal> -->
+                                       <!-- </goals> -->
+                                       <!-- <configuration> -->
+                                       <!-- <includeTypes>jar</includeTypes> -->
+                                       <!-- <useRepositoryLayout>true</useRepositoryLayout> -->
+                                       <!-- <outputDirectory>${project.build.directory}/modulest</outputDirectory> -->
+                                       <!-- </configuration> -->
+                                       <!-- </execution> -->
+                                       <!-- </executions> -->
+                                       <!-- </plugin> -->
+                                       <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-assembly-plugin</artifactId>
+                                               <configuration>
+                                                       <finalName>argeo-slc-${project.version}</finalName>
+                                                       <appendAssemblyId>false</appendAssemblyId>
+                                                       <descriptors>
+                                                               <descriptor>src/assembly/dist.xml</descriptor>
+                                                       </descriptors>
+                                               </configuration>
+                                               <executions>
+                                                       <execution>
+                                                               <id>assembly-base</id>
+                                                               <phase>package</phase>
+                                                               <goals>
+                                                                       <goal>single</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+                       <dependencies>
+                               <!-- Backend -->
+                               <dependency>
+                                       <groupId>org.argeo.slc</groupId>
+                                       <artifactId>org.argeo.slc.dep.backend</artifactId>
+                                       <version>2.1.7</version>
+                                       <type>pom</type>
+                               </dependency>
+
+                               <!-- SLC Libs -->
+                               <dependency>
+                                       <groupId>org.argeo.slc</groupId>
+                                       <artifactId>org.argeo.slc.lib.jcr</artifactId>
+                                       <version>2.1.1-SNAPSHOT</version>
+                               </dependency>
+                               <dependency>
+                                       <groupId>org.argeo.slc</groupId>
+                                       <artifactId>org.argeo.slc.lib.repo</artifactId>
+                                       <version>2.1.1-SNAPSHOT</version>
+                               </dependency>
+
+                               <!-- Launcher -->
+                               <dependency>
+                                       <groupId>org.argeo.slc</groupId>
+                                       <artifactId>org.argeo.slc.launcher</artifactId>
+                                       <version>2.1.1-SNAPSHOT</version>
+                                       <!-- <type>tar.gz</type> -->
+                                       <!-- <classifier>base</classifier> -->
+                               </dependency>
+                       </dependencies>
+               </profile>
                <profile>
                        <id>rpmbuild</id>
                        <build>
                                <plugins>
+<!--                                   <plugin> -->
+<!--                                           <groupId>org.apache.maven.plugins</groupId> -->
+<!--                                           <artifactId>maven-dependency-plugin</artifactId> -->
+<!--                                           <executions> -->
+<!--                                                   <execution> -->
+<!--                                                           <id>copy-dependencies-rpm</id> -->
+<!--                                                           <phase>package</phase> -->
+<!--                                                           <goals> -->
+<!--                                                                   <goal>copy</goal> -->
+<!--                                                           </goals> -->
+<!--                                                           <configuration> -->
+<!--                                                                   <includeTypes>jar</includeTypes> -->
+<!--                                                                   <stripVersion>true</stripVersion> -->
+<!--                                                                   <outputDirectory>${project.build.directory}/boot</outputDirectory> -->
+<!--                                                                   <artifactItems> -->
+<!--                                                                           <artifactItem> -->
+<!--                                                                                   <groupId>org.argeo.slc</groupId> -->
+<!--                                                                                   <artifactId>org.argeo.slc.launcher</artifactId> -->
+<!--                                                                                   <version>${project.version}</version> -->
+<!--                                                                           </artifactItem> -->
+<!--                                                                   </artifactItems> -->
+<!--                                                           </configuration> -->
+<!--                                                   </execution> -->
+<!--                                           </executions> -->
+<!--                                   </plugin> -->
                                        <plugin>
                                                <groupId>org.codehaus.mojo</groupId>
                                                <artifactId>rpm-maven-plugin</artifactId>
                                                                                                </source>
                                                                                        </sources>
                                                                                </mapping>
+<!--                                                                           <mapping> -->
+<!--                                                                                   <directory>/usr/share/osgi/boot</directory> -->
+<!--                                                                                   <username>root</username> -->
+<!--                                                                                   <groupname>root</groupname> -->
+<!--                                                                                   <filemode>644</filemode> -->
+<!--                                                                                   <directoryIncluded>false</directoryIncluded> -->
+<!--                                                                                   <sources> -->
+<!--                                                                                           <source> -->
+<!--                                                                                                   <location>${project.build.directory}/boot</location> -->
+<!--                                                                                                   <includes> -->
+<!--                                                                                                           <include>org.argeo.slc.launcher.jar</include> -->
+<!--                                                                                                   </includes> -->
+<!--                                                                                           </source> -->
+<!--                                                                                   </sources> -->
+<!--                                                                           </mapping> -->
                                                                                <!-- Maven (even if not installed) -->
                                                                                <mapping>
                                                                                        <directory>/var/lib/slc/.m2</directory>
                                                                                </mapping>
                                                                        </mappings>
                                                                        <preinstallScriptlet>
-                                                                               <scriptFile>src/main/scripts/preinstall-${rpm.release}</scriptFile>
+                                                                               <scriptFile>src/main/scripts/preinstall</scriptFile>
                                                                        </preinstallScriptlet>
                                                                        <postinstallScriptlet>
                                                                                <scriptFile>src/main/scripts/postinstall</scriptFile>
                                                                        </postinstallScriptlet>
                                                                        <preremoveScriptlet>
-                                                                               <scriptFile>src/main/scripts/preremove-${rpm.release}</scriptFile>
+                                                                               <scriptFile>src/main/scripts/preremove</scriptFile>
                                                                        </preremoveScriptlet>
                                                                        <requires>
-                                                                               <require>slc-libs</require>
+                                                                               <require>slc-platform</require>
                                                                                <require>osgi-boot</require>
                                                                                <!-- do not require java so that it can be installed on Ubuntu -->
                                                                                <!-- <require>java-1.6.0-openjdk</require> -->