-<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>0.13.1-SNAPSHOT</version>
+ <version>1.1.12-SNAPSHOT</version>
</parent>
- <groupId>org.argeo.slc.dist</groupId>
<artifactId>slc</artifactId>
<packaging>pom</packaging>
<name>SLC Node (RPM)</name>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>filter-base</id>
- <phase>process-resources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${basedir}/target/base</outputDirectory>
- <resources>
- <resource>
- <directory>src/main/base</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
<profiles>
<profile>
<id>rpmbuild</id>
</goals>
<configuration>
<name>slc</name>
- <copyright>2011 Argeo</copyright>
<mappings>
<mapping>
<directory>/usr/bin</directory>
</source>
</sources>
</mapping>
+ <!-- Maven (even if not installed) -->
+ <mapping>
+ <directory>/var/lib/slc/.m2</directory>
+ <username>slc</username>
+ <groupname>slc</groupname>
+ <filemode>600</filemode>
+ <directoryIncluded>false</directoryIncluded>
+ <sources>
+ <source>
+ <location>src/main/rpm/var/lib/slc/.m2</location>
+ </source>
+ </sources>
+ </mapping>
</mappings>
<preinstallScriptlet>
<scriptFile>src/main/scripts/preinstall-${rpm.release}</scriptFile>
<requires>
<require>slc-libs</require>
<require>osgi-boot</require>
- <require>java-1.6.0-openjdk</require>
+ <!-- do not require java so that it can be installed on Ubuntu -->
+ <!-- <require>java-1.6.0-openjdk</require> -->
</requires>
</configuration>
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>install</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <copy todir="${rpm.stagingRepository}" verbose="true">
- <fileset dir="${project.build.directory}/rpm"
- includes="*/RPMS/**/*.rpm" />
- <flattenmapper />
- </copy>
- </target>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
</profile>