- <id>sdkWithModules</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <dependencies>
- <dependency>
- <groupId>org.argeo.slc.modules</groupId>
- <artifactId>org.argeo.slc.modules.agent.bundles</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- </dependency>
- <dependency>
- <groupId>org.argeo.slc.modules</groupId>
- <artifactId>org.argeo.slc.modules.server.bundles</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>sdkWithoutModules</id>
- </profile>
- <profile>
- <id>release</id>
- <properties>
- <argeo.p2.repository>/srv/projects/slc/www/sdk</argeo.p2.repository>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.argeo.slc.modules</groupId>
- <artifactId>org.argeo.slc.modules.agent.bundles</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- </dependency>
- <dependency>
- <groupId>org.argeo.slc.modules</groupId>
- <artifactId>org.argeo.slc.modules.server.bundles</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- </dependency>
- </dependencies>
+ <id>rpmbuild</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-argeo</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <includeTypes>jar</includeTypes>
+ <outputDirectory>${project.build.directory}/lib-argeo</outputDirectory>
+ <includeGroupIds>org.argeo.slc</includeGroupIds>
+ <excludeTransitive>true</excludeTransitive>
+ <excludeArtifactIds>org.argeo.slc.dep.minimal</excludeArtifactIds>
+ <includeTypes>jar</includeTypes>
+ <includeScope>runtime</includeScope>
+ <useRepositoryLayout>true</useRepositoryLayout>
+ </configuration>
+ </execution>
+<!-- <execution> -->
+<!-- <id>copy-argeo-self</id> -->
+<!-- <phase>package</phase> -->
+<!-- <goals> -->
+<!-- <goal>copy</goal> -->
+<!-- </goals> -->
+<!-- <configuration> -->
+<!-- <outputDirectory>${project.build.directory}/lib-argeo</outputDirectory> -->
+<!-- <useRepositoryLayout>true</useRepositoryLayout> -->
+<!-- <artifactItems> -->
+<!-- <artifactItem> -->
+<!-- <groupId>${project.groupId}</groupId> -->
+<!-- <artifactId>${project.artifactId}</artifactId> -->
+<!-- <version>${project.version}</version> -->
+<!-- <outputDirectory>${project.build.directory}/lib-argeo</outputDirectory> -->
+<!-- </artifactItem> -->
+<!-- </artifactItems> -->
+<!-- </configuration> -->
+<!-- </execution> -->
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>rpm-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>rpm-argeo</id>
+ <phase>package</phase>
+ <goals>
+ <goal>rpm</goal>
+ </goals>
+ <configuration>
+ <name>slc-platform</name>
+ <mappings>
+ <mapping>
+ <directory>/usr/share/osgi</directory>
+ <username>root</username>
+ <groupname>root</groupname>
+ <filemode>644</filemode>
+ <directoryIncluded>true</directoryIncluded>
+ <sources>
+ <source>
+ <location>${project.build.directory}/lib-argeo</location>
+ <includes>
+ <include>**/*.jar</include>
+ </includes>
+ </source>
+ </sources>
+ </mapping>
+ <mapping>
+ <directory>/usr/share/osgi/org/argeo/slc/${project.artifactId}/${project.version}</directory>
+ <username>root</username>
+ <groupname>root</groupname>
+ <directoryIncluded>false</directoryIncluded>
+ <artifact />
+ </mapping>
+ </mappings>
+ <requires>
+ <require>argeo-cms-platform</require>
+ <require>argeo-cms-sdk-tp</require>
+ <require>slc-agent</require>
+ </requires>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>